client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs
changeset 4 cf756528609e
parent 0 249d70e7b32d
child 27 f292db96b050
--- a/client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs	Wed Nov 18 17:01:49 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs	Thu Nov 19 12:12:55 2009 +0100
@@ -36,15 +36,24 @@
 
         string _title = String.Empty;
 
+
         /// <summary>
         /// Title of the toolbar item
         /// </summary>
-        public string Title
+    
+        public String Title
         {
-            get { return _title; }
-            set { _title = value; }
+            get { return (String)GetValue(TitleProperty);}
+            set { SetValue(TitleProperty, value); _title = value; }
         }
 
+        // Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
+        public static readonly DependencyProperty TitleProperty =
+            DependencyProperty.Register("Title", typeof(String), typeof(ButtonHeaderControl),    null);
+
+
+
+     
 
         /// <summary>
         /// The transition color when we hover over the button