|
57 | 57 | <Setter.Value>
|
58 | 58 | <DataTemplate>
|
59 | 59 | <StackPanel Orientation="Horizontal">
|
60 |
| - <TextBlock VerticalAlignment="Center"> |
61 |
| - <TextBlock.Text> |
62 |
| - <MultiBinding Converter="{StaticResource TabFileNameConverter}"> |
63 |
| - <Binding Path="Document.FileName"/> |
64 |
| - <Binding Path="Document.Modified"/> |
65 |
| - </MultiBinding> |
66 |
| - </TextBlock.Text> |
| 60 | + <TextBlock VerticalAlignment="Center" AutomationProperties.AutomationId="TabName"> |
| 61 | + <TextBlock.Text> |
| 62 | + <MultiBinding Converter="{StaticResource TabFileNameConverter}"> |
| 63 | + <Binding Path="Document.FileName"/> |
| 64 | + <Binding Path="Document.Modified"/> |
| 65 | + </MultiBinding> |
| 66 | + </TextBlock.Text> |
67 | 67 | </TextBlock>
|
68 | 68 | <Button Command="{Binding DataContext.FileService.CloseCommand, ElementName=rootContainer}" Content="{StaticResource CloseSmallImage}"
|
69 |
| - Visibility="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TabItem}}, |
70 |
| - Converter={StaticResource BoolToVisibilityConverter}}" |
71 |
| - Width="16" Height="16" BorderThickness="0" |
72 |
| - MinWidth="0" MinHeight="0" Padding="0" Margin="7,0,0,0"> |
| 69 | + Visibility="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TabItem}}, Converter={StaticResource BoolToVisibilityConverter}}" |
| 70 | + Width="16" Height="16" BorderThickness="0" MinWidth="0" MinHeight="0" Padding="0" Margin="7,0,0,0" AutomationProperties.AutomationId="CloseButton"> |
73 | 71 | <Button.Template>
|
74 | 72 | <ControlTemplate TargetType="{x:Type Button}">
|
75 | 73 | <ContentPresenter Margin="{TemplateBinding Control.Padding}"
|
76 |
| - HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" |
77 |
| - VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" |
78 |
| - SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" |
79 |
| - ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" |
80 |
| - RecognizesAccessKey="True" |
81 |
| - Content="{TemplateBinding ContentControl.Content}"/> |
| 74 | + HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" |
| 75 | + SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" |
| 76 | + RecognizesAccessKey="True" Content="{TemplateBinding ContentControl.Content}"/> |
82 | 77 | </ControlTemplate>
|
83 | 78 | </Button.Template>
|
84 | 79 | </Button>
|
|
0 commit comments