1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
<Style x:Key="TabControlStyle" TargetType="{x:Type TabControl}" >
<Setter Property="SnapsToDevicePixels" Value="true"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabControl}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- l'entête du TabControl with=28-->
<Border Grid.Row="0"
Height="23">
<TabPanel IsItemsHost="True"
Panel.ZIndex="1"
VerticalAlignment="Bottom">
</TabPanel>
</Border>
<!-- le core du TabControl -->
<Border Grid.Row="1"
CornerRadius="0,6,6,6"
BorderThickness="3"
BorderBrush="{DynamicResource BlueGradientUp}">
<Border BorderBrush="{StaticResource GrayEmbre}"
CornerRadius="0,3,3,3"
BorderThickness="0,0,2,2">
<ContentPresenter ContentSource="SelectedContent"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"/>
</Border>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style> |
Partager