Archives // wpf

WPF TreeView with Multi Select

November 22, 2015 // wpf // 2 Comments

The WPF TreeView is very powerful, but out of the box it doesn’t support selecting multiple items at once.  By multiple selection I mean holding down the control key or shift key to select a set of items, similar to […]

INotifyPropertyChanged (3 of 3) – without the reversed notifications

April 8, 2013 // wpf // 8 Comments

Welcome back for part 3 in this INotifyPropertyChanged series. This time we’ll be taking a look at reversed notifications which are another code smell with this pattern. Reversed notifications What do I mean by reversed notifications? When you have a […]

INotifyPropertyChanged (2 of 3) – without the backing fields

April 6, 2013 // wpf // 8 Comments

Welcome back for part 2 in this INotifyPropertyChanged series. This time we’ll be taking a look at the backing fields that are a common smell to this pattern. Backing fields To prevent raising notifications when a property is not really […]

INotifyPropertyChanged (1 of 3) – without the strings

April 5, 2013 // wpf // 3 Comments

If you’ve worked with WPF, you’ve probably encountered INotifyPropertyChanged.  It is a great notification mechanism, but it has a few common code smells we’ll iron out over this three part series. String based The default way of raising a notification […]