Tigraine

Daniel Hoelbling-Inzko talks about programming

Useful Resharper Live Template for WPF development

Posted by Daniel Hölbling on April 29, 2010

While 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:

image

Download it here: wpfprop.xml

Filed under net, programmierung, wpf
comments powered by Disqus

My Photography business

Projects

dynamic css for .NET

Archives

more