BaseUserControl.cs 550 B

123456789101112131415161718192021
  1. using System.ComponentModel;
  2. using System.Windows.Controls;
  3. namespace MediaBrowser.UI.Controls
  4. {
  5. /// <summary>
  6. /// Provides a base class for all user controls
  7. /// </summary>
  8. public abstract class BaseUserControl : UserControl
  9. {
  10. public event PropertyChangedEventHandler PropertyChanged;
  11. public virtual void OnPropertyChanged(string name)
  12. {
  13. if (PropertyChanged != null)
  14. {
  15. PropertyChanged(this, new PropertyChangedEventArgs(name));
  16. }
  17. }
  18. }
  19. }