Convert Auto property to notification property (MVVM to WPF)

Is there any way to convert the Auto property to automatically notify the property?

INotifyPropertyChanged

Or any other way for MVVM in WPF

 public string Filename { get; set; } 

For

 string _Filename; public string Filename { get { return _Filename; } set { if (PropertyChanged != null) { _Filename = value; PropertyChanged(this, new PropertyChangedEventArgs("Filename")); } } } 
+8
c # properties visual-studio wpf mvvm
source share
1 answer

Here is a kindofmagic project that is close to what you need.

This is an MSBuild task that processes your assemblies and adds PropertyChanged calls to properties decorated with some [Magic] attribute. I used it a bit and is very useful.

+4
source share

All Articles