I have a DataGrid in C # WPF, and I need to change the color of some cells according to a condition. For example I have the Inventory column and if the Inventory is less than a specific value I put the color of it in red. how can I do this, retr...
I need to create checklists that depend on previous entries and processing. How do I create these checklists dynamically in WPF? (a code snippet, please).
I have ListBox where the data source is ObservableCollection<string> .
I would like the items that started with "WARNING" to have the red font.
I would be able to do this using a DataTemplate , a Converter a...
I made a small application to extract a .zip file. It works, but when I run on three other machines, it does not work there. The error is this:
An error occurred while creating ZIP file
Object reference not set to an instance of an...
I'm using wpf for the first time, as is the declaration of a textbox field in which I have a text (Ex: "Login") and when I click on it it adds up and is just the pointer for me to start typing ?
If you did not understand how this text is hot...
See the code in How to change the color of a DataGrid row in C #?
He is painting the entire line, as far as that is concerned, what happens and that when I give a scroll the painted line deregulates.
Example: I painted line # 1 when sc...
I need the value of <version> to be returned to a variable in a WPF application. The XML file is on the server and contains:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Application>
<Version>1.2.3.5</Versio...
I'm working with the MVVM pattern, so far so good, I have a PessoaViewlModel class.
In it I have a property IEnumerable<Municipio> Municipios , which shows me all the municipalities, according to UF(Unidade federa...
I created a window JanelaUm , every time I click on button this window is displayed.
no code-behind of JanelaUm I have event window_KeyDown with the following code:
if (e.Key == Key.Escape)
this.Close()...