aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI.Controls/BaseUserControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.UI.Controls/BaseUserControl.cs')
-rw-r--r--MediaBrowser.UI.Controls/BaseUserControl.cs21
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));
+ }
+ }
+ }
+}