.NET     Console.WriteLine( "All Things .NET" );
.NET Nerd Blog Home
9.15.2007

 
INotifyPropertyChanged in base class
Thanks to Josh Smith for pointing out a couple of good thoughts on supporting INotifyPropertyChanged in a base class.
  • Cache PropertyChangedEventArgs so there's only one per property name
  • Verify property name (in debug mode) since it's just a string - in case dev fat fingered the name (of course dev should be using code snippets to create the property, right?)
  • Do some setter post processing

A base class which implements INotifyPropertyChanged � Josh Smith on WPF


Comments: Post a Comment

Powered by Blogger