95 lines
4.9 KiB
XML
95 lines
4.9 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora">
|
|
|
|
|
|
|
|
<!--TabControl-->
|
|
<Style x:Key="styleSubMenuRootTabControl"
|
|
TargetType="{x:Type TabControl}"
|
|
BasedOn="{StaticResource MahApps.Styles.TabControl.Aurora}">
|
|
<Setter Property="Padding" Value="2"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Style>
|
|
|
|
<Style x:Key="styleSubPatternTabControl"
|
|
TargetType="{x:Type TabControl}"
|
|
BasedOn="{StaticResource MahApps.Styles.TabControl.Aurora}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Margin" Value="5, 0, 0, 0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
</Style>
|
|
|
|
<!--TabItem-->
|
|
<Style x:Key="stylePlusTabItem" TargetType="TabItem">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid Background="{TemplateBinding Background}">
|
|
<Image Style="{StaticResource styleImgClose}" Margin="7,0,0,0"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_add.png"/>
|
|
<ContentPresenter ContentSource="Header"/>
|
|
</Grid>
|
|
<!--<Border Background="{TemplateBinding Background}"
|
|
CornerRadius="7,7,0,0"
|
|
BorderThickness="1,1,1,0"
|
|
Padding="10,5,10,5">
|
|
<ContentPresenter ContentSource="Header"/>
|
|
</Border>-->
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Opacity" Value="0.8"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AuroraVision.TabControl.Selected.Foreground}"/>
|
|
<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.BackgroundSelected}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter Property="FontWeight" Value="Medium"/>
|
|
<Setter Property="FontSize" Value="15"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AuroraVision.TabControl.UnSelected.Foreground}"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--TabItem-->
|
|
<Style x:Key="styleSubMenuRootTabItem" TargetType="TabItem">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Border Background="{TemplateBinding Background}"
|
|
CornerRadius="7,7,0,0"
|
|
BorderThickness="1,1,1,0"
|
|
Padding="10,5,10,5">
|
|
<ContentPresenter ContentSource="Header"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Opacity" Value="0.8"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AuroraVision.TabControl.Selected.Foreground}"/>
|
|
<Setter Property="Background" Value="{DynamicResource AuroraVision.TabControl.Selected.Background}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter Property="FontWeight" Value="Medium"/>
|
|
<Setter Property="FontSize" Value="15"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AuroraVision.TabControl.UnSelected.Foreground}"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary> |