client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs
equal
deleted
inserted
replaced
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 |