|
11 | 11 | </Trigger>
|
12 | 12 | <Trigger Property="IsEnabled" Value="false">
|
13 | 13 | <Setter Property="Foreground"
|
14 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 14 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
15 | 15 | </Trigger>
|
16 | 16 | <Trigger Property="IsEnabled" Value="true">
|
17 | 17 | <Setter Property="Cursor" Value="Hand" />
|
|
29 | 29 | </Trigger>
|
30 | 30 | <Trigger Property="IsEnabled" Value="false">
|
31 | 31 | <Setter Property="Foreground"
|
32 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 32 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
33 | 33 | </Trigger>
|
34 | 34 | <Trigger Property="IsEnabled" Value="true">
|
35 | 35 | <Setter Property="Cursor" Value="Hand" />
|
|
47 | 47 | </Trigger>
|
48 | 48 | <Trigger Property="IsEnabled" Value="false">
|
49 | 49 | <Setter Property="Foreground"
|
50 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 50 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
51 | 51 | </Trigger>
|
52 | 52 | <Trigger Property="IsEnabled" Value="true">
|
53 | 53 | <Setter Property="Cursor" Value="Hand" />
|
|
65 | 65 | </Trigger>
|
66 | 66 | <Trigger Property="IsEnabled" Value="false">
|
67 | 67 | <Setter Property="Foreground"
|
68 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 68 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
69 | 69 | </Trigger>
|
70 | 70 | <Trigger Property="IsEnabled" Value="true">
|
71 | 71 | <Setter Property="Cursor" Value="Hand" />
|
|
83 | 83 | </Trigger>
|
84 | 84 | <Trigger Property="IsEnabled" Value="false">
|
85 | 85 | <Setter Property="Foreground"
|
86 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 86 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
87 | 87 | </Trigger>
|
88 | 88 | <Trigger Property="IsEnabled" Value="true">
|
89 | 89 | <Setter Property="Cursor" Value="Hand" />
|
|
101 | 101 | </Trigger>
|
102 | 102 | <Trigger Property="IsEnabled" Value="false">
|
103 | 103 | <Setter Property="Foreground"
|
104 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 104 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
105 | 105 | </Trigger>
|
106 | 106 | <Trigger Property="IsEnabled" Value="true">
|
107 | 107 | <Setter Property="Cursor" Value="Hand" />
|
|
119 | 119 | </Trigger>
|
120 | 120 | <Trigger Property="IsEnabled" Value="false">
|
121 | 121 | <Setter Property="Foreground"
|
122 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 122 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
123 | 123 | </Trigger>
|
124 | 124 | <Trigger Property="IsEnabled" Value="true">
|
125 | 125 | <Setter Property="Cursor" Value="Hand" />
|
|
137 | 137 | </Trigger>
|
138 | 138 | <Trigger Property="IsEnabled" Value="false">
|
139 | 139 | <Setter Property="Foreground"
|
140 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 140 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
141 | 141 | </Trigger>
|
142 | 142 | <Trigger Property="IsEnabled" Value="true">
|
143 | 143 | <Setter Property="Cursor" Value="Hand" />
|
|
155 | 155 | </Trigger>
|
156 | 156 | <Trigger Property="IsEnabled" Value="false">
|
157 | 157 | <Setter Property="Foreground"
|
158 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 158 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
159 | 159 | </Trigger>
|
160 | 160 | <Trigger Property="IsEnabled" Value="true">
|
161 | 161 | <Setter Property="Cursor" Value="Hand" />
|
|
173 | 173 | </Trigger>
|
174 | 174 | <Trigger Property="IsEnabled" Value="false">
|
175 | 175 | <Setter Property="Foreground"
|
176 |
| - Value="{DynamicResource PrimaryHueLightBrush}" /> |
| 176 | + Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" /> |
177 | 177 | </Trigger>
|
178 | 178 | <Trigger Property="IsEnabled" Value="true">
|
179 | 179 | <Setter Property="Cursor" Value="Hand" />
|
|
0 commit comments