|
@@ -306,25 +306,27 @@
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
<Setter Property="ToolTip" Value="{Binding ToolTip}" />
|
|
|
<Setter Property="Padding" Value="6,1" />
|
|
|
- <Setter Property="Margin" Value="0" />
|
|
|
- <Setter Property="Template">
|
|
|
+ <Setter Property="Margin" Value="0" />
|
|
|
+ <Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
|
<Grid SnapsToDevicePixels="true">
|
|
|
<Border
|
|
|
x:Name="Bd"
|
|
|
Background="{TemplateBinding Background}"
|
|
|
- CornerRadius="2.5 2.5 0 0"
|
|
|
BorderBrush="{Binding Background, RelativeSource={RelativeSource Self}}"
|
|
|
BorderThickness="0,0,0,2" />
|
|
|
- <ContentPresenter
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Image Margin="5" Width="50" Stretch="UniformToFill" Height="40" Source="{Binding }"/>
|
|
|
+ <ContentPresenter
|
|
|
x:Name="Content"
|
|
|
HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
|
|
VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
|
|
ContentSource="Header"
|
|
|
RecognizesAccessKey="True"
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
- </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="Selector.IsSelected" Value="true">
|
|
|
<Setter Property="Panel.ZIndex" Value="1" />
|