/ Published in: C#

This class can be used as a base class for ViewModel-classes used in a MVVM design pattern.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public class ViewModelBase : INotifyPropertyChanged { #region INotifyPropertyChanged Members public event PropertyChangedEventHandler PropertyChanged; public void NotifyChanged(string propertyName) { if (string.IsNullOrEmpty(propertyName)) if (PropertyChanged != null) } #endregion }
Comments
