Using validation rules to disable a button
Hi, I know that in WPF, I could bind a button's IsEnabled property with some TextBox to receive the Validation.HasError result as its IsEnabled value. This does work for simple TextBox. But in my case, I have a DataGrid for user to do the input.…
How to sort ListView by selected column?
Source thread: how to sort list view with different dataTemplate (int, bool, string, ...), answered by Alex Li-MSFT. I have a ListView control and I want to sort all the items in the list when user click on specific column header, how to achieve it? …
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
When ValidationStep set to UpdatedValue, the invalid red border won't go off
Hi guys. I'm using ValidationRules to do the data check on UI. When I set the ValidationStep to UpdatedValue, it works weird. When the input is incorrect, the control shows a red border as normally. However, after I changed the value correctly, the…
Async ProcessBar not working
Source thread: Async ProgressBar not working, answered by Peter Fleischer. I'm trying to set up an async read of a bunch of files with a ProgressBar, but it doesn't work. Here is my MainWindow: Class MainWindow Dim TheProgress…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)