Useful Resharper Live Template for WPF development
April 29, 2010 by Daniel HoelblingWhile doing some work in WPF for a customer project I found myself writing far too often code like this:
private bool isSelected;
public bool IsSelected
{
get { return isSelected; }
set
{
isSelected = value;
OnPropertyChanged("IsSelected");
}
}
Auto-properties simply don’t work with INotifyPropertyChanged so you have to do all the grunt work over again .. Thank god there is Resharper!
It’s said lazyness is a virtue on a programmer, so I made this little Live Template that will create all that code with you only having to fill in type and name of your property:
Download it here: wpfprop.xml