24,964 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

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.…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-02-29T07:50:28.677+00:00
Fanhua Kong 241 Reputation points
commented 2020-03-08T07:03:57.013+00:00
Fanhua Kong 241 Reputation points
2 answers One of the answers was accepted by the question author.

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? …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-02-25T08:03:30.603+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
answered 2020-03-03T09:11:14.01+00:00
Peter Fleischer (former MVP) 19,316 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-02-28T11:54:04.897+00:00
Fanhua Kong 241 Reputation points
accepted 2020-02-29T09:02:11.687+00:00
Fanhua Kong 241 Reputation points
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-02-25T07:55:08.207+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
answered 2020-02-25T08:00:07.347+00:00
Alex Li-MSFT 1,096 Reputation points