From 767cdc1f6f6a63ce997fc9476911e2c361f9d402 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 20:33:05 -0500 Subject: Pushing missing changes --- MediaBrowser.UI.Controls/BaseUserControl.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 MediaBrowser.UI.Controls/BaseUserControl.cs (limited to 'MediaBrowser.UI.Controls/BaseUserControl.cs') diff --git a/MediaBrowser.UI.Controls/BaseUserControl.cs b/MediaBrowser.UI.Controls/BaseUserControl.cs new file mode 100644 index 000000000..e47fc84cf --- /dev/null +++ b/MediaBrowser.UI.Controls/BaseUserControl.cs @@ -0,0 +1,21 @@ +using System.ComponentModel; +using System.Windows.Controls; + +namespace MediaBrowser.UI.Controls +{ + /// + /// Provides a base class for all user controls + /// + public abstract class BaseUserControl : UserControl + { + public event PropertyChangedEventHandler PropertyChanged; + + public virtual void OnPropertyChanged(string name) + { + if (PropertyChanged != null) + { + PropertyChanged(this, new PropertyChangedEventArgs(name)); + } + } + } +} -- cgit v1.2.3