|
77 | 77 | <!-- TextBlock added so that screen readers don't try to read Icon -->
|
78 | 78 | <TextBlock Grid.Column="0"
|
79 | 79 | Grid.ColumnSpan="3"
|
80 |
| - Width="{Binding Width, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
81 |
| - Height="{Binding Height, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 80 | + Width="{TemplateBinding Width}" |
| 81 | + Height="{TemplateBinding Height}" |
82 | 82 | Margin="-10"
|
83 | 83 | FontSize="1"
|
84 | 84 | Opacity="0"
|
85 |
| - Text="{Binding AutomationProperties.Name, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 85 | + Text="{TemplateBinding AutomationProperties.Name}" |
86 | 86 | Background="Black"/>
|
87 | 87 | </Grid>
|
88 | 88 |
|
|
194 | 194 | <!-- TextBlock added so that screen readers don't try to read Icon -->
|
195 | 195 | <TextBlock Grid.Column="0"
|
196 | 196 | Grid.ColumnSpan="3"
|
197 |
| - Width="{Binding Width, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
198 |
| - Height="{Binding Height, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 197 | + Width="{TemplateBinding Width}" |
| 198 | + Height="{TemplateBinding Height}" |
199 | 199 | Margin="-10"
|
200 | 200 | FontSize="1"
|
201 | 201 | Opacity="0"
|
202 |
| - Text="{Binding AutomationProperties.Name, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 202 | + Text="{TemplateBinding AutomationProperties.Name}" |
203 | 203 | Background="Black"/>
|
204 | 204 | </Grid>
|
205 | 205 | </Border>
|
|
288 | 288 | <!-- TextBlock added so that screen readers don't try to read Icon -->
|
289 | 289 | <TextBlock Grid.Column="0"
|
290 | 290 | Grid.ColumnSpan="5"
|
291 |
| - Width="{Binding Width, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
292 |
| - Height="{Binding Height, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 291 | + Width="{TemplateBinding Width}" |
| 292 | + Height="{TemplateBinding Height}" |
293 | 293 | Margin="-10"
|
294 | 294 | FontSize="1"
|
295 | 295 | Opacity="0"
|
296 |
| - Text="{Binding AutomationProperties.Name, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 296 | + Text="{TemplateBinding AutomationProperties.Name}" |
297 | 297 | Background="Black"/>
|
298 | 298 | </Grid>
|
299 | 299 | </Border>
|
|
369 | 369 | <!-- Fix double narration from mousing over the button and then the associated text -->
|
370 | 370 | <TextBlock Grid.Column="0"
|
371 | 371 | Grid.ColumnSpan="3"
|
372 |
| - Width="{Binding Width, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
373 |
| - Height="{Binding Height, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 372 | + Width="{TemplateBinding Width}" |
| 373 | + Height="{TemplateBinding Height}" |
374 | 374 | Margin="-10"
|
375 | 375 | FontSize="1"
|
376 | 376 | Opacity="0"
|
377 |
| - Text="{Binding AutomationProperties.Name, RelativeSource={RelativeSource AncestorType={x:Type MenuItem}}}" |
| 377 | + Text="{TemplateBinding AutomationProperties.Name}" |
378 | 378 | Background="Black"/>
|
379 | 379 | </Grid>
|
380 | 380 | </Border>
|
|
0 commit comments