diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
| commit | 767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch) | |
| tree | 49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.UI.Controls/BaseUserControl.cs | |
| parent | 845554722efaed872948a9e0f7202e3ef52f1b6e (diff) | |
Pushing missing changes
Diffstat (limited to 'MediaBrowser.UI.Controls/BaseUserControl.cs')
| -rw-r--r-- | MediaBrowser.UI.Controls/BaseUserControl.cs | 21 |
1 files changed, 21 insertions, 0 deletions
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 +{ + /// <summary> + /// Provides a base class for all user controls + /// </summary> + public abstract class BaseUserControl : UserControl + { + public event PropertyChangedEventHandler PropertyChanged; + + public virtual void OnPropertyChanged(string name) + { + if (PropertyChanged != null) + { + PropertyChanged(this, new PropertyChangedEventArgs(name)); + } + } + } +} |
