Questions tagged as 'wpf'

1
answer

Communication between forms

I have a form that has a text editing component ( RichTextBox ) and I create a search form (Find / famous CTRL + F). My question is how do I make a "talk" with the other. For example, type something to search the search form and mark the f...
asked by 28.12.2015 / 15:39
0
answers

Edit XML through the Node of a TreeView WPF - C #

I'm having a question, I have a code that dynamically creates a TreeView through a C # code. TreeView was created in WPF. My goal is to create a function that opens a XML item and created a TreeView , and then it is possi...
asked by 25.08.2015 / 20:48
0
answers

Animation with dependency property

I am studying dependency properties in WPF. In all the articles I read the use of this feature in the animations is mentioned, but I could not find any applications. What is the advantage of using a dependency property if I can do the animati...
asked by 27.07.2015 / 16:44
1
answer

Edit default ErroTemplate layout

I've implemented the IDataErrorInfo interface, which is working as shown below. I have not created my ErrorTemplate , which is being used is the .NET standard. I would like to know if there is somewhere the XAML code of this error t...
asked by 28.05.2015 / 16:01
2
answers

How do I change the contents of a UserControl by using a button on another UserControl?

A window with a grid, and with two content areas, "ContentArea" and "ContentMenu". "ContentArea" starts blank, "ContentMenu" starts with the Navigation buttons, which make "ContentArea" change its content. In each of these "ContentXXXX" you a...
asked by 12.12.2016 / 23:08
2
answers

How to make a TextBox accept only the letters S and N?

I'm studying about TextBox in C # and I have no idea how to do this function.     
asked by 06.04.2018 / 14:01
1
answer

How does "DependencyProperty" work?

I'm trying to understand the dependency properties feature. I have read some tutorials in msdn but the feature is still obscure for me. Example: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sy...
asked by 03.01.2017 / 17:46
1
answer

Block if you enter only one word in a TextBox

I work with C # - WPF and I have a field where the client can enter their full name. I would like to validate where it can not enter only the first name if it does not open a blocking message. That is, he would need to enter at least two names....
asked by 28.04.2015 / 14:47
2
answers

How to change the color of a row in the DataGrid in C #?

When I select a row in the DataGrid and then a button is clicked, the color of the selected row changes, I use Visual Studio 2013 and it's Wpf application.     
asked by 02.11.2014 / 15:54
1
answer

Opening cash drawer

I'm trying to send a command to open my cash drawer automatically by my application, but without success so far. I contacted the manufacturer of the drawer and printer (non-fiscal) Bematech and they indicated a download with a dll that I have to...
asked by 16.07.2014 / 15:50