using System.ComponentModel; namespace Server_Dashboard { /// /// Base View Model all the other view models inherit from /// Makes me write the INotifyPropertyChanged only once /// public class BaseViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged = (sender, e) => { }; protected void OnPropertyChanged(string prop) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(prop)); } } }