Tags: WPF

Convert Silverlight to WPF and WPF DataGrid in C#

Benjamin Perkins C#

Here is an example of a conversion from a Silverlight project that reads data and loads it to a DataGrid to a WPF project. Please read my previous post which covers the creation of the Silverlight project used in this example. Difference #1 Silverlight is built as a UserControl which is converted from your XAML […]

Read More →

Progress Bar, Multithread in WPF using C#

Benjamin Perkins C#

I created a video a while ago that discussed how to implement a progress bar in a windows form application. It used the System.Thread class library and the the BackgroundWorker class. With the release of .NET 4, there is a new. easier way to implement this. In this example, I have added the progress bar […]

Read More →

TextChanged vs. SelectionChange events in WPF

Benjamin Perkins C#

I made the mistake of using the SelectionChange event on a textbox while implementing some filtering on a DataGrid. What happened, when using SelectionChanged, was that each time the textbox received focus I was executing the filter. Even initially when there was nothing to filter. My logic was checking if the contents of the textbox […]

Read More →