diff -r 1f1614b65397 -r cf756528609e client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs --- 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; + /// /// Title of the toolbar item /// - 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); + + + + /// /// The transition color when we hover over the button