client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs
changeset 4 cf756528609e
parent 0 249d70e7b32d
child 27 f292db96b050
equal deleted inserted replaced
3:1f1614b65397 4:cf756528609e
    34 
    34 
    35         }
    35         }
    36 
    36 
    37         string _title = String.Empty;
    37         string _title = String.Empty;
    38 
    38 
       
    39 
    39         /// <summary>
    40         /// <summary>
    40         /// Title of the toolbar item
    41         /// Title of the toolbar item
    41         /// </summary>
    42         /// </summary>
    42         public string Title
    43     
       
    44         public String Title
    43         {
    45         {
    44             get { return _title; }
    46             get { return (String)GetValue(TitleProperty);}
    45             set { _title = value; }
    47             set { SetValue(TitleProperty, value); _title = value; }
    46         }
    48         }
    47 
    49 
       
    50         // Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
       
    51         public static readonly DependencyProperty TitleProperty =
       
    52             DependencyProperty.Register("Title", typeof(String), typeof(ButtonHeaderControl),    null);
       
    53 
       
    54 
       
    55 
       
    56      
    48 
    57 
    49         /// <summary>
    58         /// <summary>
    50         /// The transition color when we hover over the button
    59         /// The transition color when we hover over the button
    51         /// </summary>
    60         /// </summary>
    52         public Color TransitionColor
    61         public Color TransitionColor