Add Simplicity to ViewModelBase

2 replies. Last post: June 22, 2016 3:10 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jimmy TungolMember

Guys,

For the love of everything simple, can you please... pretty please implement a simplified version of OnPropertyChanged(string propertyName) method? Even if I wanted to add an extension method to ViewModelBase (e.g. public static bool SetProperty<T>(this ViewModelBase viewmodel, ref T reference, T value, Expression<Func<T>> property)), I couldn't... because OnPropertyChanged is protected and cannot be used from an extension method. However, if you can implement the code below or something similar, that would be very much appreciated. Moreso, if attributes can be implemented, much better.

Take a look at this link. Much like the DevExpress' MVVM Framework for WPF, so I guess this is something that should also be useful on Crosslight products too.

All times are GMT -5. The time now is 1:53 PM.
Previous Next