首次上传
This commit is contained in:
@@ -0,0 +1,755 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
|
||||
xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Style x:Key="ButtonFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle
|
||||
Margin="2"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Login_Btn" TargetType="{x:Type Button}">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Color_BG_Button}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Color_BD_Button}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="17" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Color_FG_Button}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border
|
||||
x:Name="border"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid>
|
||||
<Border BorderBrush="{DynamicResource Color_BD_Button_InnerGrow}" BorderThickness="1">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="Highlight"
|
||||
Background="{DynamicResource Color_BG_Button_Highlight}"
|
||||
BorderThickness="1"
|
||||
Opacity="0">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<TextBlock
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
Text="{TemplateBinding Content}">
|
||||
<TextBlock.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="3"
|
||||
ShadowDepth="2"
|
||||
Color="#FF008A40" />
|
||||
</TextBlock.Effect>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="0.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="0.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#ADADAD" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SysBtnStyle" TargetType="{x:Type Button}">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Color_BG_LoginButton}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Color_BD_LoginButton}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Color_FG_Button_Window}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border
|
||||
x:Name="Bd"
|
||||
Background="{DynamicResource Color_BG_WindowButton}"
|
||||
BorderBrush="{DynamicResource Color_BD_WindowButton}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<Border BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}" BorderThickness="1">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="Highlight"
|
||||
Background="{DynamicResource Color_BG_WindowButton_Highlight}"
|
||||
BorderThickness="1"
|
||||
Opacity="0">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsKeyboardFocused" Value="true" />
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#ADADAD" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SysCloseBtnStyle" TargetType="{x:Type Button}">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Color_BG_LoginButton}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Color_BD_LoginButton}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Color_FG_Button_Window}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border
|
||||
x:Name="Bd"
|
||||
Background="{DynamicResource Color_BG_WindowButton}"
|
||||
BorderBrush="{DynamicResource Color_BD_WindowButton}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<Border BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}" BorderThickness="1">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="Highlight"
|
||||
Background="{DynamicResource Color_BG_WindowButton_Highlight}"
|
||||
BorderThickness="1"
|
||||
Opacity="0">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsKeyboardFocused" Value="true" />
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#ADADAD" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<RadialGradientBrush x:Key="highLight">
|
||||
<GradientStop Offset="1" Color="#FF64D7FF" />
|
||||
<GradientStop Offset="0.2" Color="White" />
|
||||
</RadialGradientBrush>
|
||||
|
||||
<SolidColorBrush x:Key="OnOffButton_Off" Color="Gray" />
|
||||
<SolidColorBrush x:Key="OnOffButton_BD" Color="#FF004900" />
|
||||
<RadialGradientBrush x:Key="OnOffButton_BG">
|
||||
<GradientStop Offset="0.25" Color="#FF003F0F" />
|
||||
<GradientStop Offset="1" Color="#FF067421" />
|
||||
</RadialGradientBrush>
|
||||
<RadialGradientBrush x:Key="OnOffButton_BG_Highlight">
|
||||
<GradientStop Offset="0" Color="#FF89FFA6" />
|
||||
<GradientStop Offset="1" Color="#FF00FF3F" />
|
||||
</RadialGradientBrush>
|
||||
<RadialGradientBrush x:Key="OnOffButton_BG_Unable">
|
||||
<GradientStop Offset="0" Color="#FF939393" />
|
||||
<GradientStop Offset="1" Color="#FFCACACA" />
|
||||
</RadialGradientBrush>
|
||||
|
||||
<Style x:Key="Lamp-Button" TargetType="{x:Type controls:SwitchButton}">
|
||||
<Setter Property="Width" Value="16" />
|
||||
<Setter Property="Height" Value="16" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:SwitchButton}">
|
||||
<Grid>
|
||||
<Ellipse
|
||||
x:Name="BG"
|
||||
Fill="{DynamicResource OnOffButton_Off}"
|
||||
Stroke="{DynamicResource OnOffButton_BD}"
|
||||
StrokeThickness="1" />
|
||||
<Ellipse
|
||||
x:Name="Highlight"
|
||||
Margin="1"
|
||||
Fill="{DynamicResource OnOffButton_BG_Highlight}"
|
||||
Visibility="Collapsed">
|
||||
<Ellipse.Effect>
|
||||
<BlurEffect Radius="5" />
|
||||
</Ellipse.Effect>
|
||||
</Ellipse>
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Content=""
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="ON" Value="True">
|
||||
<Setter TargetName="Highlight" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="ON" Value="False">
|
||||
<Setter TargetName="Highlight" Property="Visibility" Value="Collapsed" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsDefaulted" Value="True" />
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="BG" Property="Fill" Value="{DynamicResource OnOffButton_BG_Unable}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<LinearGradientBrush x:Key="OperatioNButton_BG_Outer" StartPoint="0.85,0.864" EndPoint="0.238,0.239">
|
||||
<GradientStop Offset="0" Color="#FF3D3D3D" />
|
||||
<GradientStop Offset="1" Color="White" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="OperatioNButton_BD_Outer" StartPoint="1.192,1.066" EndPoint="0.104,0.195">
|
||||
<GradientStop Offset="0" Color="#FF5C5C5C" />
|
||||
<GradientStop Offset="1" Color="#FFE0E0E0" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="OperatioNButton_BD_Inner" StartPoint="0.155,0.138" EndPoint="1.141,1.123">
|
||||
<GradientStop Offset="0" Color="Black" />
|
||||
<GradientStop Offset="1" Color="White" />
|
||||
</LinearGradientBrush>
|
||||
<RadialGradientBrush x:Key="OperatioNButton_BG" GradientOrigin="0.234,0.241">
|
||||
<GradientStop Offset="0" Color="#FF004911" />
|
||||
<GradientStop Offset="1" Color="#FF001D07" />
|
||||
</RadialGradientBrush>
|
||||
<RadialGradientBrush x:Key="OperatioNButton_BG_Highlight" GradientOrigin="0.234,0.241">
|
||||
<GradientStop Offset="0" Color="#FF9EFFB6" />
|
||||
<GradientStop Offset="1" Color="#FF00D633" />
|
||||
</RadialGradientBrush>
|
||||
<LinearGradientBrush x:Key="OperatioNButton_BG_Outer_Unable" StartPoint="1.192,1.066" EndPoint="0.104,0.195">
|
||||
<GradientStop Offset="0" Color="Black" />
|
||||
<GradientStop Offset="1" Color="#FFD0D0D0" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="OperatioNButton_BD_Outer_Unable" Color="#FF939393" />
|
||||
<LinearGradientBrush x:Key="OperatioNButton_BD_Inner_Unable" StartPoint="0.155,0.138" EndPoint="1.141,1.123">
|
||||
<GradientStop Offset="0" Color="Black" />
|
||||
<GradientStop Offset="1" Color="#FFD0D0D0" />
|
||||
</LinearGradientBrush>
|
||||
<RadialGradientBrush x:Key="OperatioNButton_BG_Unable" GradientOrigin="0.234,0.241">
|
||||
<GradientStop Offset="0" Color="#FF858585" />
|
||||
<GradientStop Offset="1" Color="#FF4E4E4E" />
|
||||
</RadialGradientBrush>
|
||||
|
||||
<Style x:Key="OperationButton" TargetType="{x:Type controls:SwitchButton}">
|
||||
<Setter Property="Width" Value="18" />
|
||||
<Setter Property="Height" Value="18" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:SwitchButton}">
|
||||
<Grid>
|
||||
<Ellipse
|
||||
x:Name="BG"
|
||||
Fill="{DynamicResource OperatioNButton_BG_Outer}"
|
||||
Stroke="{DynamicResource OperatioNButton_BD_Outer}"
|
||||
StrokeThickness="0.5" />
|
||||
<Ellipse
|
||||
x:Name="Inner_BG"
|
||||
Margin="2"
|
||||
Fill="{DynamicResource OperatioNButton_BD_Inner}" />
|
||||
<Ellipse
|
||||
x:Name="Close"
|
||||
Margin="3"
|
||||
Cursor="Hand"
|
||||
Fill="{DynamicResource OperatioNButton_BG}" />
|
||||
<Ellipse
|
||||
x:Name="Open"
|
||||
Margin="3"
|
||||
Cursor="Hand"
|
||||
Fill="{DynamicResource OperatioNButton_BG_Highlight}"
|
||||
Visibility="Collapsed">
|
||||
<Ellipse.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="3"
|
||||
ShadowDepth="0"
|
||||
Color="White" />
|
||||
</Ellipse.Effect>
|
||||
</Ellipse>
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Content=""
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="ON" Value="True">
|
||||
<Setter TargetName="Open" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="ON" Value="False">
|
||||
<Setter TargetName="Open" Property="Visibility" Value="Collapsed" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsDefaulted" Value="True" />
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="BG" Property="Fill" Value="{DynamicResource OperatioNButton_BG_Outer_Unable}" />
|
||||
<Setter TargetName="BG" Property="Stroke" Value="{DynamicResource OperatioNButton_BD_Outer_Unable}" />
|
||||
<Setter TargetName="Inner_BG" Property="Fill" Value="{DynamicResource OperatioNButton_BD_Inner_Unable}" />
|
||||
<Setter TargetName="Close" Property="Fill" Value="{DynamicResource OperatioNButton_BG_Unable}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Normal Button style -->
|
||||
|
||||
<SolidColorBrush x:Key="Button_BG" Color="#FF6398CC" />
|
||||
<SolidColorBrush x:Key="Button_BD" Color="#FFC6D8EC" />
|
||||
<SolidColorBrush x:Key="Button_BD_Shadow" Color="#FF284775" />
|
||||
<SolidColorBrush x:Key="Button_BG_MouseOver" Color="#FF4FCBFF" />
|
||||
<SolidColorBrush x:Key="Button_BG_Press" Color="#FF5A89D4" />
|
||||
<SolidColorBrush x:Key="Button_BG_Unable" Color="#FFD2D2D2" />
|
||||
<SolidColorBrush x:Key="Button_BD_Unable" Color="#FFF3F3F3" />
|
||||
<SolidColorBrush x:Key="Button_BD_Shadow_Unable" Color="#FF9D9D9D" />
|
||||
|
||||
<Style TargetType="{x:Type Button}">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="Background" Value="{StaticResource Button_BG}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource Button_BD}" />
|
||||
<Setter Property="BorderThickness" Value="1,1,0,0" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="6,3" />
|
||||
<Setter Property="MinWidth" Value="40" />
|
||||
<Setter Property="MinHeight" Value="20" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="Border.CornerRadius" Value="4" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border
|
||||
x:Name="Inner_BD"
|
||||
Padding="5,1"
|
||||
BorderBrush="{StaticResource Button_BD_Shadow}"
|
||||
BorderThickness="0,0,1,1"
|
||||
CornerRadius="3">
|
||||
<ContentPresenter
|
||||
x:Name="contentpresenter"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_MouseOver}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Press}" />
|
||||
<Setter TargetName="BG" Property="Margin" Value="1" />
|
||||
<Setter Property="FontSize" Value="13" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}" />
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}" />
|
||||
<Setter TargetName="Inner_BD" Property="BorderBrush" Value="{StaticResource Button_BD_Shadow_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Color_Button" TargetType="{x:Type Button}">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="Background" Value="Black" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource Button_BD}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="Border.CornerRadius" Value="0" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Grid>
|
||||
<Rectangle Fill="Gray" />
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="Inner_BG"
|
||||
Background="White"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
Opacity="0" />
|
||||
<ContentPresenter
|
||||
x:Name="contentpresenter"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="0"
|
||||
Direction="135"
|
||||
ShadowDepth="1"
|
||||
Color="White" />
|
||||
</ContentPresenter.Effect>
|
||||
</ContentPresenter>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="Inner_BG" Property="Opacity" Value="0.4" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="Inner_BG" Property="Opacity" Value="0.4" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}" />
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}" />
|
||||
<Setter TargetName="Inner_BG" Property="Background" Value="{StaticResource Button_InnerBG_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
<Setter TargetName="contentpresenter" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect
|
||||
BlurRadius="0"
|
||||
Direction="135"
|
||||
Opacity="0"
|
||||
ShadowDepth="1"
|
||||
Color="White" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Top Button -->
|
||||
|
||||
<SolidColorBrush x:Key="TopButton_BD" Color="#FFB2BACF" />
|
||||
<SolidColorBrush x:Key="TopButton_BG" Color="#FF2F457E" />
|
||||
|
||||
<LinearGradientBrush x:Key="TopButton_InnerBG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#00D1DEED" />
|
||||
<GradientStop Offset="1" Color="#008EABD0" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="TopButton_BG_MouseOver" Color="#FF4F71B6" />
|
||||
<LinearGradientBrush x:Key="TopButton_InnerBG_MouseOver" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#00D1E7ED" />
|
||||
<GradientStop Offset="1" Color="#0043BFE9" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="TopButton_BD_Highlight" Color="White" />
|
||||
<SolidColorBrush x:Key="TopButton_BG_Press" Color="#FF4F71B6" />
|
||||
<LinearGradientBrush x:Key="TopButton_InnerBG_Press" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#00D8E7F5" />
|
||||
<GradientStop Offset="1" Color="#00A3C7E9" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="FG_Button_Unable" Color="#FF757575" />
|
||||
<SolidColorBrush x:Key="TopButton_BG_Unable" Color="#FFD4D4D4" />
|
||||
<SolidColorBrush x:Key="TopButton_BD_Unable" Color="WhiteSmoke" />
|
||||
<SolidColorBrush x:Key="TopButton_InnerBG_Unable" Color="#FFA7A8AA" />
|
||||
<SolidColorBrush x:Key="TopButton_Shadow" Color="#FF162858" />
|
||||
<SolidColorBrush x:Key="TopButton_BG_Highlight" Color="#FF4F71B6" />
|
||||
|
||||
<Style x:Key="TopButton" TargetType="{x:Type Button}">
|
||||
<Setter Property="Height" Value="38" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="Background" Value="{StaticResource TopButton_BG}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TopButton_BD}" />
|
||||
<Setter Property="BorderThickness" Value="1,1,0,0" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="Border.CornerRadius" Value="5" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border
|
||||
x:Name="border"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border
|
||||
x:Name="border_shadow"
|
||||
BorderBrush="{DynamicResource TextBox_Top_Shadow}"
|
||||
BorderThickness="0,0,1,1"
|
||||
CornerRadius="5">
|
||||
<ContentPresenter
|
||||
x:Name="contentpresenter"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource TopButton_BD_Highlight}" />
|
||||
<Setter TargetName="border" Property="Background" Value="{StaticResource TopButton_BG_Highlight}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource TopButton_BD_Highlight}" />
|
||||
<Setter TargetName="border" Property="Background" Value="{StaticResource TopButton_BG_Highlight}" />
|
||||
<Setter Property="FontSize" Value="15" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource TopButton_BD_Unable}" />
|
||||
<Setter TargetName="border" Property="Background" Value="{StaticResource TopButton_BG_Unable}" />
|
||||
<Setter TargetName="border_shadow" Property="BorderBrush" Value="{StaticResource TopButton_InnerBG_Unable}" />
|
||||
<Setter Property="Foreground" Value="{StaticResource FG_Button_Unable}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Logout Button -->
|
||||
|
||||
<SolidColorBrush x:Key="TopMenuButton_BD" Color="#FFBBD8E5" />
|
||||
<LinearGradientBrush x:Key="TopMenuButton_BG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF5E5E5E" />
|
||||
<GradientStop Offset="1" Color="#FF474B4E" />
|
||||
<GradientStop Offset="0.5" Color="#FF242424" />
|
||||
<GradientStop Offset="0.75" Color="#FF1F1F1F" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="TopMenuButton_BG_Highlight" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF0076B2" />
|
||||
<GradientStop Offset="1" Color="#FF0076B2" />
|
||||
<GradientStop Offset="0.5" Color="#FF00466A" />
|
||||
<GradientStop Offset="0.75" Color="#FF00466A" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="TopMenuButton_BD_Highlight" Color="#FFF0FAFF" />
|
||||
<LinearGradientBrush x:Key="TopMenuButton_BG_Unable" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FFAFAFAF" />
|
||||
<GradientStop Offset="1" Color="#FFAFAFAF" />
|
||||
<GradientStop Offset="0.5" Color="#FF6C6C6C" />
|
||||
<GradientStop Offset="0.25" Color="#FF7A7A7A" />
|
||||
<GradientStop Offset="0.75" Color="#FF7A7A7A" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="TopMenuButton_BD_Unable" Color="#FFB6B6B6" />
|
||||
|
||||
<LinearGradientBrush x:Key="LogoutBtn_InnerBG_MouseOver" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF75D5ED" />
|
||||
<GradientStop Offset="1" Color="#FF03B5E2" />
|
||||
<GradientStop Offset="0.49" Color="#FF45C8E9" />
|
||||
<GradientStop Offset="0.5" Color="#FF00A0C8" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="LogoutBtn_BG_MouseOver" Color="#FF005C8D" />
|
||||
<SolidColorBrush x:Key="LogoutBtn_BD" Color="#FF9FBADE" />
|
||||
<LinearGradientBrush x:Key="LogoutBtn_InnerBG_Press" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FFBCE5EF" />
|
||||
<GradientStop Offset="1" Color="#FF02C5F5" />
|
||||
<GradientStop Offset="0.49" Color="#FF73D5ED" />
|
||||
<GradientStop Offset="0.5" Color="#FF02C5F5" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="LogoutBtn_BG_Press" Color="#FF02A6D0" />
|
||||
<LinearGradientBrush x:Key="LogoutBtn_InnerBG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF7EA5CD" />
|
||||
<GradientStop Offset="1" Color="#FF305F9D" />
|
||||
<GradientStop Offset="0.495" Color="#FF4D83B8" />
|
||||
<GradientStop Offset="0.5" Color="#FF27549D" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="LogoutBtn_BG" Color="#FF2C4566" />
|
||||
<SolidColorBrush x:Key="LogoutBtn_Shadow" Color="#FF0C1F39" />
|
||||
|
||||
<Style
|
||||
x:Key="Logout_Button"
|
||||
BasedOn="{StaticResource TopButton}"
|
||||
TargetType="{x:Type Button}" />
|
||||
|
||||
<!-- Login Button -->
|
||||
|
||||
<SolidColorBrush x:Key="Login_Btn_BD_Highlight" Color="#FF84ADEB" />
|
||||
<SolidColorBrush x:Key="Login_Btn_BD_Shadow" Color="#FF1E385B" />
|
||||
<SolidColorBrush x:Key="Login_Btn_BG" Color="#FF4781D3" />
|
||||
<SolidColorBrush x:Key="Login_Btn_BD_MouseOver_Highlight" Color="#FFA1E7FF" />
|
||||
<SolidColorBrush x:Key="Login_Btn_BG_MouseOver" Color="DeepSkyBlue" />
|
||||
<SolidColorBrush x:Key="Login_Btn_BD_MouseOver_Shadow" Color="#FF005B7A" />
|
||||
<SolidColorBrush x:Key="Login_Btn_BG_Press" Color="#FF85E0FF" />
|
||||
|
||||
<Style x:Key="Login_Button" TargetType="{x:Type Button}">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="24" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="Border.CornerRadius" Value="5" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{StaticResource Login_Btn_BG}"
|
||||
BorderBrush="{StaticResource Login_Btn_BD_Highlight}"
|
||||
BorderThickness="2,2,0,0"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border
|
||||
x:Name="Inner_BD"
|
||||
BorderBrush="{StaticResource Login_Btn_BD_Shadow}"
|
||||
BorderThickness="0,0,2,2"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}">
|
||||
<ContentPresenter
|
||||
x:Name="contentpresenter"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="0"
|
||||
Direction="315"
|
||||
ShadowDepth="1.5" />
|
||||
</ContentPresenter.Effect>
|
||||
</ContentPresenter>
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Login_Btn_BG_MouseOver}" />
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Login_Btn_BD_MouseOver_Highlight}" />
|
||||
<Setter TargetName="Inner_BD" Property="BorderBrush" Value="{StaticResource Login_Btn_BD_MouseOver_Shadow}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Login_Btn_BG_Press}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}" />
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}" />
|
||||
<Setter TargetName="Inner_BD" Property="BorderBrush" Value="{StaticResource Button_BD_Shadow_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
<Setter TargetName="contentpresenter" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect
|
||||
BlurRadius="0"
|
||||
Direction="315"
|
||||
Opacity="0"
|
||||
ShadowDepth="1"
|
||||
Color="White" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,332 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<SolidColorBrush x:Key="DataGrid_Header_BG" Color="#FF366393" />
|
||||
<SolidColorBrush x:Key="DataGrid_Header_BD_Highlight" Color="#FFB3B9D1" />
|
||||
<SolidColorBrush x:Key="DataGrid_Header_BD" Color="#FF233661" />
|
||||
<SolidColorBrush x:Key="DataGrid_Header_BG_MouseOver" Color="#FF57A3D4" />
|
||||
<SolidColorBrush x:Key="DataGrid_FG_Highlight" Color="#FF233863" />
|
||||
<SolidColorBrush x:Key="DataGrid_BG_First" Color="#FFEEEEEE" />
|
||||
<SolidColorBrush x:Key="DataGrid_BG_Second" Color="#FFDEDEDE" />
|
||||
<SolidColorBrush x:Key="DataGrid_BG_Selected" Color="#FF5493CD" />
|
||||
<SolidColorBrush x:Key="DataGrid_BG_Selected_EDITOR" Color="Transparent" />
|
||||
<SolidColorBrush x:Key="DataGrid_Cell_BD" Color="Gray" />
|
||||
<SolidColorBrush x:Key="DataGrid_ArrowBG" Color="White" />
|
||||
<SolidColorBrush x:Key="DataGrid_BG_Highlight" Color="#262C3D6D" />
|
||||
<SolidColorBrush x:Key="DataGrid_Header_FG" Color="White" />
|
||||
<Style TargetType="{x:Type DataGrid}">
|
||||
<Setter Property="Background" Value="{x:Null}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected" />
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
||||
<Setter Property="VerticalGridLinesBrush" Value="{DynamicResource DataGrid_Cell_BD}" />
|
||||
<Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource DataGrid_Cell_BD}" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGrid}">
|
||||
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
|
||||
<ScrollViewer.Template>
|
||||
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
||||
<Border BorderBrush="Black" BorderThickness="0,0,1,0" />
|
||||
<Grid Grid.Row="1">
|
||||
<Border
|
||||
Background="{DynamicResource DataGrid_BG_First}"
|
||||
BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
||||
BorderThickness="1,0,1,1">
|
||||
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
<ScrollBar
|
||||
x:Name="PART_VerticalScrollBar"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Maximum="{TemplateBinding ScrollableHeight}"
|
||||
Orientation="Vertical"
|
||||
ViewportSize="{TemplateBinding ViewportHeight}"
|
||||
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
|
||||
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ScrollBar
|
||||
x:Name="PART_HorizontalScrollBar"
|
||||
Grid.Column="1"
|
||||
Maximum="{TemplateBinding ScrollableWidth}"
|
||||
Orientation="Horizontal"
|
||||
ViewportSize="{TemplateBinding ViewportWidth}"
|
||||
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
|
||||
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</ScrollViewer.Template>
|
||||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsGrouping" Value="true" />
|
||||
<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
||||
</MultiTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<BooleanToVisibilityConverter x:Key="bool2VisibilityConverter" />
|
||||
|
||||
<Style x:Key="RowHeaderGripperStyle" TargetType="{x:Type Thumb}">
|
||||
<Setter Property="Height" Value="8" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Cursor" Value="SizeNS" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Thumb}">
|
||||
<Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type DataGridRowHeader}">
|
||||
<Setter Property="BorderBrush" Value="{x:Null}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Background" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridRowHeader}">
|
||||
<Grid>
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ContentPresenter
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Control
|
||||
SnapsToDevicePixels="false"
|
||||
Template="{Binding ValidationErrorTemplate, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}"
|
||||
Visibility="{Binding (Validation.HasError), Converter={StaticResource bool2VisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Thumb
|
||||
x:Name="PART_TopHeaderGripper"
|
||||
VerticalAlignment="Top"
|
||||
Style="{StaticResource RowHeaderGripperStyle}" />
|
||||
<Thumb
|
||||
x:Name="PART_BottomHeaderGripper"
|
||||
VerticalAlignment="Bottom"
|
||||
Style="{StaticResource RowHeaderGripperStyle}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type DataGridRow}">
|
||||
<Style.Triggers>
|
||||
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_BG_First}" />
|
||||
</Trigger>
|
||||
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_BG_Second}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type DataGridColumnHeadersPresenter}">
|
||||
<Setter Property="MinHeight" Value="24" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource DataGrid_Header_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_Header_BG}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridColumnHeadersPresenter}">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="1">
|
||||
<ItemsPresenter />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
|
||||
<Setter Property="Width" Value="8" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Cursor" Value="SizeWE" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Thumb}">
|
||||
<Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource DataGrid_Header_BD_Highlight}" />
|
||||
<Setter Property="BorderThickness" Value="1,1,0,0" />
|
||||
<Setter Property="Padding" Value="5,1" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_Header_BG}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="MinHeight" Value="24" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border BorderBrush="{DynamicResource DataGrid_Header_BD}" BorderThickness="0,0,1,0">
|
||||
<Grid>
|
||||
<Path
|
||||
x:Name="Arrow"
|
||||
Width="8"
|
||||
Height="4"
|
||||
Margin="0,2,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Data="M0,0 L1,0 0.5,1 z"
|
||||
Fill="{DynamicResource DataGrid_ArrowBG}"
|
||||
RenderTransformOrigin="0.5,0.4"
|
||||
Stretch="Fill"
|
||||
Visibility="Collapsed" />
|
||||
<ContentPresenter
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Thumb
|
||||
x:Name="PART_RightHeaderGripper"
|
||||
HorizontalAlignment="Right"
|
||||
Style="{StaticResource ColumnHeaderGripperStyle}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="SortDirection" Value="Ascending">
|
||||
<Setter TargetName="Arrow" Property="Visibility" Value="Visible" />
|
||||
<Setter TargetName="Arrow" Property="RenderTransform">
|
||||
<Setter.Value>
|
||||
<RotateTransform Angle="180" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_Header_BG_MouseOver}" />
|
||||
</Trigger>
|
||||
<Trigger Property="SortDirection" Value="Descending">
|
||||
<Setter TargetName="Arrow" Property="Visibility" Value="Visible" />
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_Header_BG_MouseOver}" />
|
||||
</Trigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsMouseOver" Value="True" />
|
||||
<Condition Property="SortDirection" Value="{x:Null}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Background" Value="{DynamicResource DataGrid_Header_BG_MouseOver}" />
|
||||
</MultiTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<SolidColorBrush x:Key="{x:Static DataGrid.FocusBorderBrushKey}" Color="#FF000000" />
|
||||
<!--
|
||||
<Style TargetType="{x:Type DataGridCellsPresenter}">
|
||||
<Setter Property="Height" Value="24"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource DataGrid_Cell_BD}"/>
|
||||
<Setter Property="BorderThickness" Value="0,0,0,1"/>
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridCellsPresenter}">
|
||||
<Grid>
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"/>
|
||||
<ItemsPresenter Margin="0"/>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type DataGridCell}">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource DataGrid_Cell_BD}"/>
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Height" Value="24"/>
|
||||
<Setter Property="Margin" Value="0"/>
|
||||
<Setter Property="Padding" Value="3,1"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
||||
<Border x:Name="BG" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" SnapsToDevicePixels="True" Cursor="Hand">
|
||||
<Grid>
|
||||
<Rectangle x:Name="Highlight" Fill="{DynamicResource DataGrid_BG_Highlight}" Opacity="0"/>
|
||||
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="Opacity" TargetName="Highlight" Value="1"/>
|
||||
</Trigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsSelected" Value="true"/>
|
||||
<Condition Property="Selector.IsSelectionActive" Value="false"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Opacity" TargetName="Highlight" Value="1"/>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsMouseOver" Value="True" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Opacity" TargetName="Highlight" Value="1"/>
|
||||
</MultiTrigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>-->
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,252 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="ExpanderHeaderFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border>
|
||||
<Rectangle
|
||||
Margin="0"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="Black"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<SolidColorBrush x:Key="Expander_Header_BG" Color="#FF439BD8" />
|
||||
<SolidColorBrush x:Key="Expander_Header_BD" Color="Black" />
|
||||
<SolidColorBrush x:Key="Expander_Header_BG_HighLight" Color="#FFD6E4FF" />
|
||||
<SolidColorBrush x:Key="Expander_InnerHighlight" Color="#FF9FCDED" />
|
||||
<SolidColorBrush x:Key="Expander_InnerShadow" Color="#FF003A62" />
|
||||
<SolidColorBrush x:Key="Expander_BG_MouseOver" Color="#FF227BB8" />
|
||||
|
||||
<Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="MinWidth" Value="100" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Expander_Header_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Expander_Header_BG}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="Border.CornerRadius" Value="5" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Grid Background="Transparent" Cursor="Hand">
|
||||
<Border
|
||||
x:Name="OuterBorder"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="0"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}">
|
||||
<Border
|
||||
x:Name="InnerBD_Highlight"
|
||||
BorderBrush="{DynamicResource Expander_InnerHighlight}"
|
||||
BorderThickness="2,2,0,0"
|
||||
CornerRadius="4">
|
||||
<Border
|
||||
x:Name="InnerBD_Shadow"
|
||||
Padding="3"
|
||||
BorderBrush="{DynamicResource Expander_InnerShadow}"
|
||||
BorderThickness="0,0,2,2"
|
||||
CornerRadius="4">
|
||||
<Grid SnapsToDevicePixels="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="17" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0">
|
||||
<Ellipse
|
||||
Width="15"
|
||||
Height="15"
|
||||
Stroke="{DynamicResource Expander_InnerHighlight}"
|
||||
StrokeThickness="1" />
|
||||
<Rectangle
|
||||
x:Name="Path1"
|
||||
Width="9"
|
||||
Height="2"
|
||||
Fill="White" />
|
||||
<Rectangle
|
||||
x:Name="Path2"
|
||||
Width="2"
|
||||
Height="9"
|
||||
Fill="White" />
|
||||
</Grid>
|
||||
<ContentPresenter
|
||||
Grid.Column="1"
|
||||
Margin="15,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
</Border>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="Path2" Property="Visibility" Value="Collapsed" />
|
||||
<Setter TargetName="OuterBorder" Property="Border.CornerRadius" Value="5,5,0,0" />
|
||||
<Setter TargetName="InnerBD_Highlight" Property="Border.CornerRadius" Value="4,4,0,0" />
|
||||
<Setter TargetName="InnerBD_Shadow" Property="Border.CornerRadius" Value="4,4,0,0" />
|
||||
<Setter TargetName="InnerBD_Shadow" Property="BorderThickness" Value="0,0,2,0" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource Expander_BG_MouseOver}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource Expander_BG_MouseOver}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Expander_Header_BG}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Expander_Header_BD}" />
|
||||
<Setter Property="Border.CornerRadius" Value="2" />
|
||||
<Setter Property="Opacity" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Grid Background="Transparent" Cursor="Hand">
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="-90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Grid Margin="0,5" SnapsToDevicePixels="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="17" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
x:Name="OuterBorder"
|
||||
Grid.Column="0"
|
||||
Width="15"
|
||||
Height="15"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Background="{DynamicResource Expander_Header_BG}"
|
||||
BorderBrush="{DynamicResource Expander_Header_BD}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="2">
|
||||
<Grid>
|
||||
<Rectangle
|
||||
x:Name="Path1"
|
||||
Width="9"
|
||||
Height="2"
|
||||
Fill="White">
|
||||
<Rectangle.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="-90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Rectangle.LayoutTransform>
|
||||
</Rectangle>
|
||||
<Rectangle
|
||||
x:Name="Path2"
|
||||
Width="2"
|
||||
Height="9"
|
||||
Fill="White">
|
||||
<Rectangle.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="-90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Rectangle.LayoutTransform>
|
||||
</Rectangle>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Grid.Column="1"
|
||||
Margin="5,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="Path2" Property="Visibility" Value="Collapsed" />
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource Expander_Header_BG_HighLight}" />
|
||||
<Setter TargetName="Path1" Property="Fill" Value="Black" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true" />
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource Expander_Header_BG_HighLight}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type Expander}">
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Expander}">
|
||||
<Grid>
|
||||
<DockPanel>
|
||||
<ToggleButton
|
||||
x:Name="HeaderSite"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Content="{TemplateBinding Header}"
|
||||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
||||
DockPanel.Dock="Top"
|
||||
FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
||||
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Style="{StaticResource ExpanderDownHeaderStyle}" />
|
||||
<ContentPresenter
|
||||
x:Name="ExpandSite"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
DockPanel.Dock="Bottom"
|
||||
Focusable="false"
|
||||
Visibility="Collapsed" />
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="true">
|
||||
<Setter TargetName="ExpandSite" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="ExpandDirection" Value="Right">
|
||||
<Setter TargetName="ExpandSite" Property="DockPanel.Dock" Value="Right" />
|
||||
<Setter TargetName="HeaderSite" Property="DockPanel.Dock" Value="Left" />
|
||||
<Setter TargetName="HeaderSite" Property="Style" Value="{StaticResource ExpanderRightHeaderStyle}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,157 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:themes="clr-namespace:MECF.Framework.UI.Client.Themes"
|
||||
mc:Ignorable="d">
|
||||
<Style TargetType="GroupBox">
|
||||
<Setter Property="FontSize" Value="20" />
|
||||
<Setter Property="BorderBrush" Value="Black" />
|
||||
</Style>
|
||||
|
||||
|
||||
|
||||
<themes:CenterBorderGapMaskConverter x:Key="BorderGapMaskConverter" />
|
||||
|
||||
|
||||
<Style x:Key="GroupboxWithoutWhiteBorder" TargetType="{x:Type GroupBox}">
|
||||
<Setter Property="BorderBrush" Value="#D5DFE5" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GroupBox}">
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="6" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="6" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="6" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.RowSpan="3"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="4"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="4" />
|
||||
<Border
|
||||
Name="Header"
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Padding="3,1,3,0">
|
||||
<ContentPresenter
|
||||
ContentSource="Header"
|
||||
RecognizesAccessKey="true"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.RowSpan="3"
|
||||
Grid.ColumnSpan="4"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="3">
|
||||
<Border.OpacityMask>
|
||||
<MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
|
||||
<Binding ElementName="Header" Path="ActualWidth" />
|
||||
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
|
||||
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
|
||||
</MultiBinding>
|
||||
</Border.OpacityMask>
|
||||
</Border>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style x:Key="GroupboxWithoutWhiteBorder2" TargetType="{x:Type GroupBox}">
|
||||
<Setter Property="BorderBrush" Value="#D5DFE5" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontSize" Value="20" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GroupBox}">
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="6" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="6" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="6" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.RowSpan="3"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="4"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="4" />
|
||||
<Border
|
||||
x:Name="Header"
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="2"
|
||||
Padding="3,1,3,0"
|
||||
HorizontalAlignment="Center"
|
||||
Grid.ZIndex="2">
|
||||
<ContentPresenter
|
||||
ContentSource="Header"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.RowSpan="3"
|
||||
Grid.ColumnSpan="4"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="3">
|
||||
<Border.OpacityMask>
|
||||
<MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
|
||||
<Binding ElementName="Header" Path="ActualWidth" />
|
||||
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
|
||||
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
|
||||
</MultiBinding>
|
||||
</Border.OpacityMask>
|
||||
<!--<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
|
||||
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
|
||||
</Border>-->
|
||||
</Border>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,170 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Style TargetType="{x:Type ListBox}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
|
||||
<Setter Property="VerticalContentAlignment" Value="top" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ListBox}">
|
||||
<Border x:Name="Bd" SnapsToDevicePixels="true">
|
||||
<ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false">
|
||||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false" />
|
||||
<Trigger Property="IsGrouping" Value="true">
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type ListBoxItem}">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Rectangle.StrokeThickness" Value="3" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
||||
<Border x:Name="Bd" SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Rectangle
|
||||
x:Name="Highlight"
|
||||
Opacity="0"
|
||||
StrokeThickness="{TemplateBinding Rectangle.StrokeThickness}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter TargetName="Highlight" Property="Stroke" Value="Orange" />
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Sepcial_ListBoxItem" TargetType="{x:Type ListBoxItem}">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
||||
<Border
|
||||
x:Name="Bd"
|
||||
Background="{TemplateBinding Background}"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="Highlight"
|
||||
Background="{DynamicResource Listview_BG_Highlight}"
|
||||
BorderBrush="Black"
|
||||
BorderThickness="0"
|
||||
Opacity="0" />
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
<Setter TargetName="Highlight" Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter TargetName="Highlight" Property="Margin" Value="0,0,1,1" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="0.8" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="ListBox.AlternationIndex" Value="0">
|
||||
<Setter Property="Background" Value="{DynamicResource Listview_BG_First}" />
|
||||
</Trigger>
|
||||
<Trigger Property="ListBox.AlternationIndex" Value="1">
|
||||
<Setter Property="Background" Value="{DynamicResource Listview_BG_Second}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
|
||||
|
||||
<Style x:Key="NoSelection_ListBoxItem" TargetType="{x:Type ListBoxItem}">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Rectangle.StrokeThickness" Value="3" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
||||
<Border x:Name="Bd" SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Rectangle
|
||||
x:Name="Highlight"
|
||||
Opacity="0"
|
||||
StrokeThickness="{TemplateBinding Rectangle.StrokeThickness}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter TargetName="Highlight" Property="Stroke" Value="Transparent" />
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,274 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<SolidColorBrush x:Key="Listview_Header_BD" Color="#FF233661" />
|
||||
<SolidColorBrush x:Key="Listview_Header_FG" Color="White" />
|
||||
<SolidColorBrush x:Key="Listview_Header_BG_Mouseover" Color="#FF57A3D4" />
|
||||
<SolidColorBrush x:Key="Listview_Header_BD_Highlight" Color="#FFB3B9D1" />
|
||||
<SolidColorBrush x:Key="Listview_FG_Highlight" Color="#FF233863" />
|
||||
<SolidColorBrush x:Key="Listview_BG_Highlight" Color="#FF3399FF" />
|
||||
<SolidColorBrush x:Key="Listview_BG_First" Color="#FFEEEEEE" />
|
||||
<SolidColorBrush x:Key="Listview_BG_Second" Color="#FFDEDEDE" />
|
||||
<SolidColorBrush x:Key="Listview_Header_BG" Color="#FF2F457F" />
|
||||
|
||||
<SolidColorBrush x:Key="Listview_Content_BD" Color="#FF999999" />
|
||||
|
||||
<!-- Listview ColumnHeader ControlTemplate -->
|
||||
|
||||
<Style TargetType="{x:Type GridViewColumnHeader}">
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Listview_Header_FG}" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="MinHeight" Value="24" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
|
||||
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{DynamicResource Listview_Header_BG}"
|
||||
BorderBrush="{DynamicResource Listview_Header_BD_Highlight}"
|
||||
BorderThickness="1,1,0,0"
|
||||
Cursor="Hand">
|
||||
<Border
|
||||
x:Name="Inner_BD"
|
||||
BorderBrush="{DynamicResource Listview_Header_BD}"
|
||||
BorderThickness="0,0,1,0"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<ContentPresenter
|
||||
x:Name="HeaderContent"
|
||||
Margin="5,1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
<Thumb
|
||||
x:Name="PART_HeaderGripper"
|
||||
Width="8"
|
||||
Margin="0,0,-4,0"
|
||||
HorizontalAlignment="Right"
|
||||
Style="{DynamicResource Thumb-ListViewItem}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Listview_Header_BG_Mouseover}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Listview_FG_Highlight}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="OnlyGripper_GridViewColumnHeader" TargetType="{x:Type GridViewColumnHeader}">
|
||||
<Setter Property="MinHeight" Value="24" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
|
||||
<Grid x:Name="Grid" SnapsToDevicePixels="true">
|
||||
<ContentPresenter
|
||||
x:Name="OnlyGripper_HeaderContent"
|
||||
Margin="5,0"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Thumb
|
||||
Width="10"
|
||||
Margin="-5,0"
|
||||
HorizontalAlignment="Right"
|
||||
Style="{DynamicResource Thumb-ListViewItem}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- listview Item Style -->
|
||||
|
||||
<Style TargetType="{x:Type ListViewItem}">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="TextBlock.TextAlignment" Value="Left" />
|
||||
<Setter Property="MinHeight" Value="24" />
|
||||
<Setter Property="MinWidth" Value="50" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ListViewItem}">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="Gray"
|
||||
BorderThickness="0,0,0,1"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="Highlight"
|
||||
Background="{DynamicResource Listview_BG_Highlight}"
|
||||
BorderBrush="Black"
|
||||
BorderThickness="0"
|
||||
Opacity="0" />
|
||||
<GridViewRowPresenter Columns="{TemplateBinding GridView.ColumnCollection}" Content="{TemplateBinding Content}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
<Setter TargetName="Highlight" Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter TargetName="Highlight" Property="Margin" Value="0,-1" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="0.8" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="ListView.AlternationIndex" Value="0">
|
||||
<Setter Property="Background" Value="{DynamicResource Listview_BG_First}" />
|
||||
</Trigger>
|
||||
<Trigger Property="ListView.AlternationIndex" Value="1">
|
||||
<Setter Property="Background" Value="{DynamicResource Listview_BG_Second}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!-- listview Style -->
|
||||
|
||||
<Style x:Key="ListView-ScrollViewer" TargetType="{x:Type ScrollViewer}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="CanContentScroll" Value="False" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="TopBG"
|
||||
MinHeight="24"
|
||||
Background="{DynamicResource Listview_Header_BG}"
|
||||
BorderBrush="{DynamicResource Listview_Header_BD}"
|
||||
BorderThickness="1" />
|
||||
<ScrollViewer
|
||||
Focusable="False"
|
||||
HorizontalScrollBarVisibility="Hidden"
|
||||
VerticalScrollBarVisibility="Hidden">
|
||||
<ScrollViewer.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</ScrollViewer.LayoutTransform>
|
||||
<GridViewHeaderRowPresenter
|
||||
AllowsColumnReorder="{Binding TemplatedParent.View.AllowsColumnReorder, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
ColumnHeaderContainerStyle="{Binding TemplatedParent.View.ColumnHeaderContainerStyle, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
ColumnHeaderContextMenu="{Binding TemplatedParent.View.ColumnHeaderContextMenu, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
ColumnHeaderTemplate="{Binding TemplatedParent.View.ColumnHeaderTemplate, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
ColumnHeaderToolTip="{Binding TemplatedParent.View.ColumnHeaderToolTip, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Columns="{Binding TemplatedParent.View.Columns, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Border
|
||||
Background="{DynamicResource Listview_BG_First}"
|
||||
BorderBrush="{DynamicResource Listview_Content_BD}"
|
||||
BorderThickness="1,0,1,1">
|
||||
<ScrollContentPresenter
|
||||
Name="PART_ScrollContentPresenter"
|
||||
CanContentScroll="{TemplateBinding CanContentScroll}"
|
||||
CanHorizontallyScroll="False"
|
||||
CanVerticallyScroll="False"
|
||||
Content="{TemplateBinding Content}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
KeyboardNavigation.DirectionalNavigation="Local" />
|
||||
</Border>
|
||||
</Grid>
|
||||
<ScrollBar
|
||||
x:Name="PART_HorizontalScrollBar"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Maximum="{TemplateBinding ScrollableWidth}"
|
||||
Minimum="0"
|
||||
Orientation="Horizontal"
|
||||
ViewportSize="{TemplateBinding ViewportWidth}"
|
||||
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
|
||||
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<ScrollBar
|
||||
x:Name="PART_VerticalScrollBar"
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
MinWidth="0"
|
||||
Maximum="{TemplateBinding ScrollableHeight}"
|
||||
Minimum="0"
|
||||
ViewportSize="{TemplateBinding ViewportHeight}"
|
||||
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
|
||||
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<DockPanel
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
LastChildFill="False" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Thumb-ListViewItem" TargetType="{x:Type Thumb}">
|
||||
<Setter Property="Width" Value="8" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Thumb}">
|
||||
<Border Padding="{TemplateBinding Padding}" Background="Transparent">
|
||||
<Rectangle
|
||||
Width="1"
|
||||
HorizontalAlignment="Center"
|
||||
Opacity="1" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type ListView}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle" Value="True" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ListView}">
|
||||
<Border Name="Border">
|
||||
<ScrollViewer Style="{DynamicResource ListView-ScrollViewer}">
|
||||
<ItemsPresenter Grid.Row="0" />
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,570 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Geometry x:Key="UpArrow">M 0,4 L 3.5,0 L 7,4 Z</Geometry>
|
||||
|
||||
<MenuScrollingVisibilityConverter x:Key="MenuScrollingVisibilityConverter" />
|
||||
|
||||
<Geometry x:Key="DownArrow">M 0,0 L 3.5,4 L 7,0 Z</Geometry>
|
||||
|
||||
<Style
|
||||
x:Key="MenuScrollButton"
|
||||
BasedOn="{x:Null}"
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
<Setter Property="ClickMode" Value="Hover" />
|
||||
<Setter Property="MinWidth" Value="0" />
|
||||
<Setter Property="MinHeight" Value="0" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
||||
<DockPanel Background="Transparent" SnapsToDevicePixels="true">
|
||||
<Rectangle
|
||||
x:Name="R1"
|
||||
Width="1"
|
||||
DockPanel.Dock="Right"
|
||||
Fill="Transparent" />
|
||||
<Rectangle
|
||||
x:Name="B1"
|
||||
Height="1"
|
||||
DockPanel.Dock="Bottom"
|
||||
Fill="Transparent" />
|
||||
<Rectangle
|
||||
x:Name="L1"
|
||||
Width="1"
|
||||
DockPanel.Dock="Left"
|
||||
Fill="Transparent" />
|
||||
<Rectangle
|
||||
x:Name="T1"
|
||||
Height="1"
|
||||
DockPanel.Dock="Top"
|
||||
Fill="Transparent" />
|
||||
<ContentPresenter
|
||||
x:Name="ContentContainer"
|
||||
Margin="2,2,2,2"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</DockPanel>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="R1" Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" />
|
||||
<Setter TargetName="B1" Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" />
|
||||
<Setter TargetName="L1" Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" />
|
||||
<Setter TargetName="T1" Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" />
|
||||
<Setter TargetName="ContentContainer" Property="Margin" Value="3,3,1,1" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="{ComponentResourceKey ResourceId=MenuScrollViewer,
|
||||
TypeInTargetAssembly={x:Type FrameworkElement}}"
|
||||
BasedOn="{x:Null}"
|
||||
TargetType="{x:Type ScrollViewer}">
|
||||
<Setter Property="HorizontalScrollBarVisibility" Value="Hidden" />
|
||||
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="1" Grid.Column="0">
|
||||
<ScrollContentPresenter Margin="{TemplateBinding Padding}" />
|
||||
</Border>
|
||||
<RepeatButton
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Command="{x:Static ScrollBar.LineUpCommand}"
|
||||
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Focusable="false"
|
||||
Style="{StaticResource MenuScrollButton}">
|
||||
<RepeatButton.Visibility>
|
||||
<MultiBinding
|
||||
Converter="{StaticResource MenuScrollingVisibilityConverter}"
|
||||
ConverterParameter="0"
|
||||
FallbackValue="Visibility.Collapsed">
|
||||
<Binding Path="ComputedVerticalScrollBarVisibility" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
<Binding Path="VerticalOffset" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
<Binding Path="ExtentHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
<Binding Path="ViewportHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
</MultiBinding>
|
||||
</RepeatButton.Visibility>
|
||||
<Path Data="{StaticResource UpArrow}" Fill="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}" />
|
||||
</RepeatButton>
|
||||
<RepeatButton
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Command="{x:Static ScrollBar.LineDownCommand}"
|
||||
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Focusable="false"
|
||||
Style="{StaticResource MenuScrollButton}">
|
||||
<RepeatButton.Visibility>
|
||||
<MultiBinding
|
||||
Converter="{StaticResource MenuScrollingVisibilityConverter}"
|
||||
ConverterParameter="100"
|
||||
FallbackValue="Visibility.Collapsed">
|
||||
<Binding Path="ComputedVerticalScrollBarVisibility" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
<Binding Path="VerticalOffset" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
<Binding Path="ExtentHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
<Binding Path="ViewportHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
||||
</MultiBinding>
|
||||
</RepeatButton.Visibility>
|
||||
<Path Data="{StaticResource DownArrow}" Fill="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}" />
|
||||
</RepeatButton>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<ControlTemplate x:Key="{ComponentResourceKey ResourceId=SubmenuContent, TypeInTargetAssembly={x:Type FrameworkElement}}" TargetType="{x:Type ContentControl}">
|
||||
<Border
|
||||
MinWidth="{TemplateBinding ActualWidth}"
|
||||
Padding="5,0"
|
||||
Background="{DynamicResource Color_BG_SubMenuBG}"
|
||||
BorderBrush="{DynamicResource Color_BD_SubMenu}"
|
||||
BorderThickness="1"
|
||||
SnapsToDevicePixels="True">
|
||||
<ContentPresenter Margin="0,5" HorizontalAlignment="Left" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{ComponentResourceKey ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="OnMouseOver">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="0" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,1,0"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="1" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="OnMouseOut">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="1" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,0,1"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="0" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{DynamicResource Color_BG_Menu}"
|
||||
BorderBrush="{DynamicResource Color_BD_Menu}"
|
||||
BorderThickness="1"
|
||||
Cursor="Hand">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="10"
|
||||
ShadowDepth="0"
|
||||
Color="#FFC6E9FF" />
|
||||
</Border.Effect>
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="Highlight"
|
||||
Background="{DynamicResource Color_BG_Menu_Highlight}"
|
||||
Opacity="0">
|
||||
<Border.Effect>
|
||||
<BlurEffect />
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
x:Name="contentPresenter"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Popup
|
||||
x:Name="PART_Popup"
|
||||
Grid.Column="1"
|
||||
MinWidth="150"
|
||||
AllowsTransparency="true"
|
||||
Focusable="false"
|
||||
HorizontalOffset="1"
|
||||
IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Placement="Bottom"
|
||||
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
||||
VerticalOffset="2">
|
||||
<ContentControl
|
||||
x:Name="SubMenuBorder"
|
||||
IsTabStop="false"
|
||||
Template="{DynamicResource {ComponentResourceKey ResourceId=SubmenuContent,
|
||||
TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
||||
<ScrollViewer CanContentScroll="true" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
||||
<ItemsPresenter
|
||||
Margin="2"
|
||||
Cursor="Hand"
|
||||
Grid.IsSharedSizeScope="true"
|
||||
KeyboardNavigation.DirectionalNavigation="Cycle"
|
||||
KeyboardNavigation.TabNavigation="Cycle"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</ContentControl>
|
||||
</Popup>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
||||
<Setter TargetName="PART_Popup" Property="PopupAnimation" Value="None" />
|
||||
</Trigger>
|
||||
<Trigger Property="Icon" Value="{x:Null}" />
|
||||
<Trigger Property="IsChecked" Value="true" />
|
||||
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true" />
|
||||
<Trigger Property="IsHighlighted" Value="true">
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard x:Name="OnMouseOut_BeginStoryboard1" Storyboard="{StaticResource OnMouseOut}" />
|
||||
</Trigger.ExitActions>
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard x:Name="OnMouseOver_BeginStoryboard" Storyboard="{StaticResource OnMouseOver}" />
|
||||
</Trigger.EnterActions>
|
||||
</Trigger>
|
||||
<DataTrigger Binding="{Binding Selected}" Value="True">
|
||||
<Setter TargetName="Highlight" Property="Opacity" Value="1" />
|
||||
</DataTrigger>
|
||||
<Trigger Property="IsKeyboardFocused" Value="true" />
|
||||
<Trigger Property="IsSubmenuOpen" Value="true" />
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<SolidColorBrush x:Key="Menu_Main_BD" Color="#FF043963" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG" Color="#FF346294" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG_Highlight" Color="#FF91B0CF" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG_Outer" Color="#FFCACACA" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG_Outer_Red" Color="#FFFF0000" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BD_Highlight" Color="#FF88A0CE" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BD_Shadow" Color="#FF111A2B" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG_Inner" Color="#FF346294" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG_Outer_Highlight" Color="#FF91B0CD" />
|
||||
<SolidColorBrush x:Key="Menu_Main_BG_Inner_Highlight" Color="#FF1A2730" />
|
||||
|
||||
<ControlTemplate x:Key="SubMunu_ShowOnTop" TargetType="{x:Type MenuItem}">
|
||||
<Grid x:Name="MainBG" SnapsToDevicePixels="true">
|
||||
<Border
|
||||
Background="{DynamicResource Menu_Main_BG_Outer}"
|
||||
BorderBrush="{DynamicResource Menu_Main_BD}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="5">
|
||||
<Grid>
|
||||
<Rectangle
|
||||
x:Name="InnerBG"
|
||||
Height="10"
|
||||
VerticalAlignment="Center"
|
||||
Fill="{DynamicResource Menu_Main_BG_Inner}" />
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Margin="2"
|
||||
Background="{DynamicResource Menu_Main_BG}"
|
||||
CornerRadius="3">
|
||||
<ContentPresenter
|
||||
x:Name="contentPresenter"
|
||||
Margin="5,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Popup
|
||||
x:Name="PART_Popup"
|
||||
Grid.Column="1"
|
||||
MinWidth="150"
|
||||
AllowsTransparency="true"
|
||||
Focusable="false"
|
||||
HorizontalOffset="0"
|
||||
IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Placement="Top"
|
||||
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
||||
VerticalOffset="-2">
|
||||
<ContentControl
|
||||
x:Name="SubMenuBorder"
|
||||
IsTabStop="false"
|
||||
Template="{DynamicResource {ComponentResourceKey ResourceId=SubmenuContent,
|
||||
TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
||||
<ScrollViewer CanContentScroll="true" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
||||
<ItemsPresenter
|
||||
Margin="2"
|
||||
Cursor="Hand"
|
||||
Grid.IsSharedSizeScope="true"
|
||||
KeyboardNavigation.DirectionalNavigation="Cycle"
|
||||
KeyboardNavigation.TabNavigation="Cycle"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</ContentControl>
|
||||
</Popup>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
||||
<Setter TargetName="PART_Popup" Property="PopupAnimation" Value="None" />
|
||||
</Trigger>
|
||||
<Trigger Property="Icon" Value="{x:Null}" />
|
||||
<Trigger Property="IsChecked" Value="true" />
|
||||
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true" />
|
||||
<Trigger Property="IsHighlighted" Value="true">
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Menu_Main_BG_Highlight}" />
|
||||
<Setter TargetName="InnerBG" Property="Fill" Value="{DynamicResource Menu_Main_BG_Highlight}" />
|
||||
</Trigger>
|
||||
<DataTrigger Binding="{Binding Selected}" Value="True">
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Menu_Main_BG_Highlight}" />
|
||||
<Setter TargetName="InnerBG" Property="Fill" Value="{DynamicResource Menu_Main_BG_Inner_Highlight}" />
|
||||
<Setter TargetName="BG" Property="Margin" Value="3" />
|
||||
<Setter TargetName="MainBG" Property="Margin" Value="-3" />
|
||||
</DataTrigger>
|
||||
<Trigger Property="IsKeyboardFocused" Value="true" />
|
||||
<Trigger Property="IsSubmenuOpen" Value="true" />
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="SubMunu_ShowOnTop_Red" TargetType="{x:Type MenuItem}">
|
||||
<Grid x:Name="MainBG" SnapsToDevicePixels="true">
|
||||
<Border
|
||||
Background="{DynamicResource Menu_Main_BG_Outer_Red}"
|
||||
BorderBrush="{DynamicResource Menu_Main_BD}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="5">
|
||||
<Grid>
|
||||
<Rectangle
|
||||
x:Name="InnerBG"
|
||||
Height="10"
|
||||
VerticalAlignment="Center"
|
||||
Fill="{DynamicResource Menu_Main_BG_Inner}" />
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Margin="2"
|
||||
Background="{DynamicResource Menu_Main_BG}"
|
||||
CornerRadius="3">
|
||||
<ContentPresenter
|
||||
x:Name="contentPresenter"
|
||||
Margin="5,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Popup
|
||||
x:Name="PART_Popup"
|
||||
Grid.Column="1"
|
||||
MinWidth="150"
|
||||
AllowsTransparency="true"
|
||||
Focusable="false"
|
||||
HorizontalOffset="0"
|
||||
IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Placement="Top"
|
||||
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
||||
VerticalOffset="-2">
|
||||
<ContentControl
|
||||
x:Name="SubMenuBorder"
|
||||
IsTabStop="false"
|
||||
Template="{DynamicResource {ComponentResourceKey ResourceId=SubmenuContent,
|
||||
TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
||||
<ScrollViewer CanContentScroll="true" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
||||
<ItemsPresenter
|
||||
Margin="2"
|
||||
Cursor="Hand"
|
||||
Grid.IsSharedSizeScope="true"
|
||||
KeyboardNavigation.DirectionalNavigation="Cycle"
|
||||
KeyboardNavigation.TabNavigation="Cycle"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</ContentControl>
|
||||
</Popup>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
||||
<Setter TargetName="PART_Popup" Property="PopupAnimation" Value="None" />
|
||||
</Trigger>
|
||||
<Trigger Property="Icon" Value="{x:Null}" />
|
||||
<Trigger Property="IsChecked" Value="true" />
|
||||
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true" />
|
||||
<Trigger Property="IsHighlighted" Value="true">
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Menu_Main_BG_Highlight}" />
|
||||
<Setter TargetName="InnerBG" Property="Fill" Value="{DynamicResource Menu_Main_BG_Highlight}" />
|
||||
</Trigger>
|
||||
<DataTrigger Binding="{Binding Selected}" Value="True">
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Menu_Main_BG_Highlight}" />
|
||||
<Setter TargetName="InnerBG" Property="Fill" Value="{DynamicResource Menu_Main_BG_Inner_Highlight}" />
|
||||
<Setter TargetName="BG" Property="Margin" Value="3" />
|
||||
<Setter TargetName="MainBG" Property="Margin" Value="-3" />
|
||||
</DataTrigger>
|
||||
<Trigger Property="IsKeyboardFocused" Value="true" />
|
||||
<Trigger Property="IsSubmenuOpen" Value="true" />
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="SubMenu_ShowOnBottom" TargetType="{x:Type MenuItem}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="10" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="10" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Path
|
||||
x:Name="Left_Part"
|
||||
Margin="0,0,-3,0"
|
||||
Data="M11.5,34.5 L10,34.5 0.5,0.5 11.5,0.5"
|
||||
Fill="{DynamicResource SubMenu_BG}"
|
||||
Stretch="Fill"
|
||||
Stroke="{DynamicResource SubMenu_BD_Shadow}" />
|
||||
<Path
|
||||
x:Name="Right_Part"
|
||||
Grid.Column="2"
|
||||
Margin="-3,0,0,0"
|
||||
Data="M11.5,34.5 L10,34.5 0.5,0.5 11.5,0.5"
|
||||
Fill="{DynamicResource SubMenu_BG}"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Stretch="Fill"
|
||||
Stroke="{DynamicResource SubMenu_BD_Shadow}">
|
||||
<Path.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform ScaleX="-1" ScaleY="1" />
|
||||
<SkewTransform AngleX="0" AngleY="0" />
|
||||
<RotateTransform Angle="0" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Path.RenderTransform>
|
||||
</Path>
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Grid.Column="1"
|
||||
Background="{DynamicResource SubMenu_BG}"
|
||||
BorderBrush="{DynamicResource SubMenu_BD_Shadow}"
|
||||
BorderThickness="0,1"
|
||||
Cursor="Hand">
|
||||
<ContentPresenter
|
||||
x:Name="contentPresenter"
|
||||
Margin="6,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<Rectangle
|
||||
x:Name="Top_Highlight"
|
||||
Grid.ColumnSpan="3"
|
||||
Height="1"
|
||||
Margin="1,1"
|
||||
VerticalAlignment="Top"
|
||||
Fill="{DynamicResource SubMenu_BD_Highlight}" />
|
||||
<Rectangle
|
||||
x:Name="Bottom_Shadow"
|
||||
Grid.Column="1"
|
||||
Height="1"
|
||||
Margin="1,1"
|
||||
VerticalAlignment="Bottom"
|
||||
Fill="{DynamicResource SubMenu_BD_Shadow}" />
|
||||
<Path
|
||||
x:Name="Left_Highlight"
|
||||
Margin="1,1,-2.5,1"
|
||||
Data="M0,0 L1,0 11.5,35 10.5,35 z"
|
||||
Fill="{DynamicResource SubMenu_BD_Highlight}"
|
||||
Stretch="Fill" />
|
||||
<Path
|
||||
x:Name="Right_Shadow"
|
||||
Grid.Column="2"
|
||||
Margin="-2.5,1,1,1"
|
||||
Data="M0,0 L1,0 -9.5,33 -10.5,33 z"
|
||||
Fill="{DynamicResource SubMenu_BD_Shadow}"
|
||||
Stretch="Fill" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Selected}" Value="True">
|
||||
<Setter Property="Panel.ZIndex" Value="100" />
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource SubMenu_BG_Select}" />
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{DynamicResource SubMenu_BD_Shadow_Select}" />
|
||||
<Setter TargetName="Left_Part" Property="Fill" Value="{DynamicResource SubMenu_BG_Select}" />
|
||||
<Setter TargetName="Left_Part" Property="Stroke" Value="{DynamicResource SubMenu_BD_Shadow_Select}" />
|
||||
<Setter TargetName="Right_Part" Property="Fill" Value="{DynamicResource SubMenu_BG_Select}" />
|
||||
<Setter TargetName="Right_Part" Property="Stroke" Value="{DynamicResource SubMenu_BD_Shadow_Select}" />
|
||||
<Setter TargetName="Top_Highlight" Property="Fill" Value="{DynamicResource SubMenu_BD_Shadow_Highlight}" />
|
||||
<Setter TargetName="Left_Highlight" Property="Fill" Value="{DynamicResource SubMenu_BD_Shadow_Highlight}" />
|
||||
<Setter TargetName="Bottom_Shadow" Property="Fill" Value="{DynamicResource SubMenu_BD_Shadow_Select}" />
|
||||
<Setter TargetName="Right_Shadow" Property="Fill" Value="{DynamicResource SubMenu_BD_Shadow_Select}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource SubMenu_FG_Select}" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
</DataTrigger>
|
||||
<Trigger Property="IsHighlighted" Value="True">
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource SubMenu_BG_Select}" />
|
||||
<Setter TargetName="Left_Part" Property="Fill" Value="{DynamicResource SubMenu_BG_Select}" />
|
||||
<Setter TargetName="Right_Part" Property="Fill" Value="{DynamicResource SubMenu_BG_Select}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource SubMenu_FG_Select}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<Style x:Key="BottomSubMenu" TargetType="MenuItem">
|
||||
<Setter Property="Command" Value="{Binding DataContext.MenuItemClickCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
|
||||
<Setter Property="CommandParameter" Value="{Binding}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource SubMenu_FG}" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="MinWidth" Value="150" />
|
||||
<Setter Property="Height" Value="32" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="FontWeight" Value="Normal" />
|
||||
<Setter Property="Margin" Value="-3,0" />
|
||||
<Setter Property="Template" Value="{StaticResource SubMenu_ShowOnBottom}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="MainMenu" TargetType="MenuItem">
|
||||
<Setter Property="Command" Value="{Binding DataContext.MainMenuItemClickCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
|
||||
<Setter Property="CommandParameter" Value="{Binding}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="FontWeight" Value="Normal" />
|
||||
<Setter Property="MinWidth" Value="130" />
|
||||
<Setter Property="Margin" Value="0,0,30,0" />
|
||||
<Setter Property="Height" Value="40" />
|
||||
<Setter Property="Template" Value="{StaticResource SubMunu_ShowOnTop}" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding IsAlarm}" Value="True">
|
||||
<Setter Property="Template" Value="{StaticResource SubMunu_ShowOnTop_Red}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,474 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<SolidColorBrush x:Key="ScrollBar_BD" Color="#FF243664" />
|
||||
<SolidColorBrush x:Key="ScrollBar_BG" Color="#FF2F457F" />
|
||||
|
||||
<SolidColorBrush x:Key="ScrollBar_InnerHighlight" Color="#FF9FCDED" />
|
||||
<SolidColorBrush x:Key="ScrollBar_InnerShadow" Color="#FF003A62" />
|
||||
<SolidColorBrush x:Key="ScrollBar_BG_MouseOver" Color="#FF227BB8" />
|
||||
|
||||
<SolidColorBrush x:Key="ScrollBar_ArrowBG" Color="White" />
|
||||
<SolidColorBrush x:Key="ScrollBar_BD_Unable" Color="#FF868686" />
|
||||
<LinearGradientBrush x:Key="ScrollBar_BG_Unable" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FFB1B1B1" />
|
||||
<GradientStop Offset="1" Color="#FFDADADA" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="ScrollBar_InnerHighlight_Unable" Color="#FFD8D8D8" />
|
||||
<SolidColorBrush x:Key="ScrollBar_InnerShadow_Unable" Color="#FF6C6C6C" />
|
||||
|
||||
<Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle" Value="True" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ScrollBar_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource ScrollBar_BG}" />
|
||||
<Setter Property="Border.CornerRadius" Value="3" />
|
||||
<Setter Property="Focusable" Value="false" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="OnMouseOver">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HighLight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="0" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,1,0"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="1" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="OnMouseOut">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HighLight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="1" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,0,1"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="0" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Grid x:Name="BG" Cursor="Hand">
|
||||
<Border
|
||||
x:Name="OuterBorder"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}">
|
||||
<Border
|
||||
x:Name="InnerBD_Highlight"
|
||||
BorderBrush="{DynamicResource ScrollBar_InnerHighlight}"
|
||||
BorderThickness="1,1,0,0"
|
||||
CornerRadius="2">
|
||||
<Border
|
||||
x:Name="InnerBD_Shadow"
|
||||
BorderBrush="{DynamicResource ScrollBar_InnerShadow}"
|
||||
BorderThickness="0,0,1,1"
|
||||
CornerRadius="2" />
|
||||
</Border>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="HighLight"
|
||||
Margin="2"
|
||||
Background="{DynamicResource ScrollBar_BG_MouseOver}"
|
||||
CornerRadius="2"
|
||||
Opacity="0" />
|
||||
<Path
|
||||
x:Name="path"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Fill="{DynamicResource ScrollBar_ArrowBG}">
|
||||
<Path.Effect>
|
||||
<DropShadowEffect BlurRadius="0" ShadowDepth="1" />
|
||||
</Path.Effect>
|
||||
</Path>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard x:Name="OnMouseOut_BeginStoryboard" Storyboard="{StaticResource OnMouseOut}" />
|
||||
</Trigger.ExitActions>
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnMouseOver}" />
|
||||
</Trigger.EnterActions>
|
||||
<Setter TargetName="path" Property="Fill" Value="#CCFFFFFF" />
|
||||
<Setter TargetName="path" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect BlurRadius="0" ShadowDepth="2" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="HighLight" Property="Opacity" Value="1" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource ScrollBar_BG_Unable}" />
|
||||
<Setter TargetName="InnerBD_Highlight" Property="BorderBrush" Value="{DynamicResource ScrollBar_InnerHighlight_Unable}" />
|
||||
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource ScrollBar_BD_Unable}" />
|
||||
<Setter TargetName="InnerBD_Shadow" Property="BorderBrush" Value="{DynamicResource ScrollBar_InnerShadow_Unable}" />
|
||||
<Setter TargetName="path" Property="Fill" Value="#FF999999" />
|
||||
<Setter TargetName="path" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect
|
||||
BlurRadius="0"
|
||||
Opacity="0"
|
||||
ShadowDepth="1" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Focusable" Value="false" />
|
||||
<Setter Property="IsTabStop" Value="false" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
||||
<Rectangle
|
||||
Width="{TemplateBinding Width}"
|
||||
Height="{TemplateBinding Height}"
|
||||
Fill="{TemplateBinding Background}" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Focusable" Value="false" />
|
||||
<Setter Property="IsTabStop" Value="false" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
||||
<Rectangle
|
||||
Width="{TemplateBinding Width}"
|
||||
Height="{TemplateBinding Height}"
|
||||
Fill="{TemplateBinding Background}" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ScrollBarVerticalThumb" TargetType="{x:Type Thumb}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="IsTabStop" Value="False" />
|
||||
<Setter Property="Focusable" Value="False" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ScrollBar_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource ScrollBar_BG}" />
|
||||
<Setter Property="Border.CornerRadius" Value="0" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Thumb}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="OnMouseOver">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HighLight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="0" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,1,0"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="1" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="OnMouseOut">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HighLight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="1" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,0,1"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="0" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Grid x:Name="BG" Cursor="Hand">
|
||||
<Border
|
||||
x:Name="OuterBorder"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}">
|
||||
<Border
|
||||
x:Name="InnerBD_Highlight"
|
||||
BorderBrush="{DynamicResource ScrollBar_InnerHighlight}"
|
||||
BorderThickness="1,1,0,0">
|
||||
<Border
|
||||
x:Name="InnerBD_Shadow"
|
||||
BorderBrush="{DynamicResource ScrollBar_InnerShadow}"
|
||||
BorderThickness="0,0,1,1" />
|
||||
</Border>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="HighLight"
|
||||
Margin="2"
|
||||
Background="{DynamicResource ScrollBar_BG_MouseOver}"
|
||||
CornerRadius="2"
|
||||
Opacity="0" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard x:Name="OnMouseOut_BeginStoryboard" Storyboard="{StaticResource OnMouseOut}" />
|
||||
</Trigger.ExitActions>
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnMouseOver}" />
|
||||
</Trigger.EnterActions>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource ScrollBar_BG_Unable}" />
|
||||
<Setter TargetName="InnerBD_Highlight" Property="BorderBrush" Value="{DynamicResource ScrollBar_InnerHighlight_Unable}" />
|
||||
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource ScrollBar_BD_Unable}" />
|
||||
<Setter TargetName="InnerBD_Shadow" Property="BorderBrush" Value="{DynamicResource ScrollBar_InnerShadow_Unable}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ScrollBarHorizontalThumb" TargetType="{x:Type Thumb}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="IsTabStop" Value="False" />
|
||||
<Setter Property="Focusable" Value="False" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ScrollBar_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource ScrollBar_BG}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Thumb}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="OnMouseOver">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HighLight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="0" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,1,0"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="1" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="OnMouseOut">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HighLight" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="1" />
|
||||
<SplineDoubleKeyFrame
|
||||
KeySpline="0,0,0,1"
|
||||
KeyTime="0:0:0.2"
|
||||
Value="0" />
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Grid x:Name="BG" Cursor="Hand">
|
||||
<Border
|
||||
x:Name="OuterBorder"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}">
|
||||
<Border
|
||||
x:Name="InnerBD_Highlight"
|
||||
BorderBrush="{DynamicResource ScrollBar_InnerHighlight}"
|
||||
BorderThickness="1,1,0,0">
|
||||
<Border
|
||||
x:Name="InnerBD_Shadow"
|
||||
BorderBrush="{DynamicResource ScrollBar_InnerShadow}"
|
||||
BorderThickness="0,0,1,1" />
|
||||
</Border>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="HighLight"
|
||||
Margin="1"
|
||||
Background="{DynamicResource ScrollBar_BG_MouseOver}"
|
||||
Opacity="0" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard x:Name="OnMouseOut_BeginStoryboard" Storyboard="{StaticResource OnMouseOut}" />
|
||||
</Trigger.ExitActions>
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnMouseOver}" />
|
||||
</Trigger.EnterActions>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource ScrollBar_BG_Unable}" />
|
||||
<Setter TargetName="InnerBD_Highlight" Property="BorderBrush" Value="{DynamicResource ScrollBar_InnerHighlight_Unable}" />
|
||||
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource ScrollBar_BD_Unable}" />
|
||||
<Setter TargetName="InnerBD_Shadow" Property="BorderBrush" Value="{DynamicResource ScrollBar_InnerShadow_Unable}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition MaxHeight="22" />
|
||||
<RowDefinition Height="0.00001*" />
|
||||
<RowDefinition MaxHeight="22" />
|
||||
</Grid.RowDefinitions>
|
||||
<RepeatButton
|
||||
Grid.Row="0"
|
||||
Height="21"
|
||||
VerticalAlignment="Top"
|
||||
Command="ScrollBar.LineUpCommand"
|
||||
Content="M 0 4 L 8 4 L 4 0 Z"
|
||||
Style="{StaticResource ScrollBarLineButton}" />
|
||||
<Track
|
||||
Name="PART_Track"
|
||||
Grid.Row="1"
|
||||
Height="{TemplateBinding Height}"
|
||||
IsDirectionReversed="true"
|
||||
Maximum="{TemplateBinding Maximum}"
|
||||
Minimum="{TemplateBinding Minimum}"
|
||||
Value="{TemplateBinding Value}">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton Command="ScrollBar.PageUpCommand" Style="{StaticResource VerticalScrollBarPageButton}" />
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb Style="{StaticResource ScrollBarVerticalThumb}" />
|
||||
</Track.Thumb>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton Command="ScrollBar.PageDownCommand" Style="{StaticResource VerticalScrollBarPageButton}" />
|
||||
</Track.IncreaseRepeatButton>
|
||||
</Track>
|
||||
<RepeatButton
|
||||
Grid.Row="3"
|
||||
Height="21"
|
||||
VerticalAlignment="Bottom"
|
||||
Command="ScrollBar.LineDownCommand"
|
||||
Content="M 0 0 L 4 4 L 8 0 Z"
|
||||
Style="{StaticResource ScrollBarLineButton}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition MaxWidth="22" />
|
||||
<ColumnDefinition Width="0.00001*" />
|
||||
<ColumnDefinition MaxWidth="22" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<RepeatButton
|
||||
Grid.Column="0"
|
||||
Width="21"
|
||||
HorizontalAlignment="Left"
|
||||
Command="ScrollBar.LineLeftCommand"
|
||||
Content="M 4 0 L 4 8 L 0 4 Z"
|
||||
Style="{StaticResource ScrollBarLineButton}" />
|
||||
<Track
|
||||
Name="PART_Track"
|
||||
Grid.Column="1"
|
||||
Width="{TemplateBinding Width}"
|
||||
IsDirectionReversed="False"
|
||||
Maximum="{TemplateBinding Maximum}"
|
||||
Minimum="{TemplateBinding Minimum}"
|
||||
Value="{TemplateBinding Value}">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton Command="ScrollBar.PageLeftCommand" Style="{StaticResource HorizontalScrollBarPageButton}" />
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb Style="{StaticResource ScrollBarHorizontalThumb}" />
|
||||
</Track.Thumb>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton Command="ScrollBar.PageRightCommand" Style="{StaticResource HorizontalScrollBarPageButton}" />
|
||||
</Track.IncreaseRepeatButton>
|
||||
</Track>
|
||||
<RepeatButton
|
||||
Grid.Column="3"
|
||||
Width="21"
|
||||
HorizontalAlignment="Right"
|
||||
Command="ScrollBar.LineRightCommand"
|
||||
Content="M 0 0 L 4 4 L 0 8 Z"
|
||||
Style="{StaticResource ScrollBarLineButton}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Orientation" Value="Horizontal">
|
||||
<Setter Property="Width" Value="Auto" />
|
||||
<Setter Property="Height" Value="20" />
|
||||
<Setter Property="Margin" Value="0,1" />
|
||||
<Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
|
||||
</Trigger>
|
||||
<Trigger Property="Orientation" Value="Vertical">
|
||||
<Setter Property="Width" Value="20" />
|
||||
<Setter Property="Height" Value="Auto" />
|
||||
<Setter Property="Margin" Value="1,0" />
|
||||
<Setter Property="Template" Value="{StaticResource VerticalScrollBar}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type ScrollViewer}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="True" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Rectangle
|
||||
x:Name="Corner"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Fill="{x:Null}" />
|
||||
<ScrollContentPresenter
|
||||
x:Name="PART_ScrollContentPresenter"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
CanContentScroll="{TemplateBinding CanContentScroll}"
|
||||
CanHorizontallyScroll="False"
|
||||
CanVerticallyScroll="False"
|
||||
Content="{TemplateBinding Content}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||
<ScrollBar
|
||||
x:Name="PART_VerticalScrollBar"
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
AutomationProperties.AutomationId="VerticalScrollBar"
|
||||
Cursor="Arrow"
|
||||
Maximum="{TemplateBinding ScrollableHeight}"
|
||||
Minimum="0"
|
||||
ViewportSize="{TemplateBinding ViewportHeight}"
|
||||
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
|
||||
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<ScrollBar
|
||||
x:Name="PART_HorizontalScrollBar"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
AutomationProperties.AutomationId="HorizontalScrollBar"
|
||||
Cursor="Arrow"
|
||||
Maximum="{TemplateBinding ScrollableWidth}"
|
||||
Minimum="0"
|
||||
Orientation="Horizontal"
|
||||
ViewportSize="{TemplateBinding ViewportWidth}"
|
||||
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
|
||||
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,335 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<!-- 通用TabControl样式 -->
|
||||
<Style x:Key="LargeTab" TargetType="{x:Type TabControl}">
|
||||
<!--<Setter Property="Background" Value="#FFC5D0D8"/>-->
|
||||
<Setter Property="Background" Value="#669ACC" />
|
||||
<Setter Property="FontFamily" Value="Arial,SimSun" />
|
||||
|
||||
</Style>
|
||||
|
||||
<!-- 通用TabItem样式 -->
|
||||
<Style TargetType="TabItem">
|
||||
<Setter Property="FrameworkElement.FocusVisualStyle">
|
||||
<Setter.Value>
|
||||
<Style TargetType="Control">
|
||||
<Style.Resources>
|
||||
<ResourceDictionary />
|
||||
</Style.Resources>
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border>
|
||||
<Rectangle StrokeThickness="0" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- 通用TabControl样式 -->
|
||||
<Style TargetType="{x:Type TabControl}">
|
||||
<Setter Property="Background" Value="#FF91B0CD" />
|
||||
<Setter Property="FontFamily" Value="Arial,SimSun" />
|
||||
<Setter Property="FontSize" Value="17" />
|
||||
<Setter Property="ItemContainerStyle">
|
||||
<Setter.Value>
|
||||
<Style>
|
||||
<Setter Property="Control.Height" Value="24" />
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabItem}">
|
||||
<Grid Margin="0,0,-10,0">
|
||||
<Path
|
||||
Data="M190 0 L 0 0 L 10 23 L 170 23 L 190 0"
|
||||
Fill="{TemplateBinding Background}"
|
||||
Stroke="Black"
|
||||
StrokeThickness="1" />
|
||||
<ContentPresenter
|
||||
Margin="10,3,10,0"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Trigger.Setters>
|
||||
<Setter Property="Background" Value="#FF91B0CD" />
|
||||
<Setter Property="Panel.ZIndex" Value="1" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="False">
|
||||
<Trigger.Setters>
|
||||
<Setter Property="Background" Value="#FF2F457F" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabControl}">
|
||||
<Grid
|
||||
ClipToBounds="True"
|
||||
KeyboardNavigation.TabNavigation="Local"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="25" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel
|
||||
Name="HeaderPanel"
|
||||
Grid.Row="1"
|
||||
Margin="0,0,0,0"
|
||||
Panel.ZIndex="1"
|
||||
Background="#FF346294"
|
||||
IsItemsHost="True"
|
||||
KeyboardNavigation.TabIndex="1"
|
||||
Orientation="Horizontal" />
|
||||
<Border
|
||||
Name="ContentPanel"
|
||||
Grid.Row="0"
|
||||
Background="{TemplateBinding Panel.Background}"
|
||||
BorderBrush="{TemplateBinding Border.BorderBrush}"
|
||||
BorderThickness="{TemplateBinding Border.BorderThickness}"
|
||||
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||
KeyboardNavigation.TabIndex="2"
|
||||
KeyboardNavigation.TabNavigation="Local">
|
||||
<ContentPresenter
|
||||
Name="PART_SelectedContentHost"
|
||||
Margin="{TemplateBinding Control.Padding}"
|
||||
Content="{TemplateBinding TabControl.SelectedContent}"
|
||||
ContentSource="SelectedContent"
|
||||
ContentStringFormat="{TemplateBinding TabControl.SelectedContentStringFormat}"
|
||||
ContentTemplate="{TemplateBinding TabControl.SelectedContentTemplate}"
|
||||
SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- 设置TabControl模版样式 -->
|
||||
<ControlTemplate x:Key="TabStackPanelControlTemplate" TargetType="{x:Type TabControl}">
|
||||
<Grid
|
||||
ClipToBounds="True"
|
||||
KeyboardNavigation.TabNavigation="Local"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Name="ColumnDefinition0" Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Name="RowDefinition0" />
|
||||
<RowDefinition Name="RowDefinition1" Height="25" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel
|
||||
Name="HeaderPanel"
|
||||
Grid.Row="1"
|
||||
Margin="0,0,0,0"
|
||||
Panel.ZIndex="1"
|
||||
Background="#2c4746"
|
||||
IsItemsHost="True"
|
||||
KeyboardNavigation.TabIndex="1"
|
||||
Orientation="Horizontal" />
|
||||
<Border
|
||||
Name="ContentPanel"
|
||||
Grid.Row="0"
|
||||
BorderBrush="{TemplateBinding Border.BorderBrush}"
|
||||
BorderThickness="{TemplateBinding Border.BorderThickness}"
|
||||
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||
KeyboardNavigation.TabIndex="2"
|
||||
KeyboardNavigation.TabNavigation="Local">
|
||||
<ContentPresenter
|
||||
Name="PART_SelectedContentHost"
|
||||
Margin="{TemplateBinding Control.Padding}"
|
||||
Content="{TemplateBinding TabControl.SelectedContent}"
|
||||
ContentSource="SelectedContent"
|
||||
ContentStringFormat="{TemplateBinding TabControl.SelectedContentStringFormat}"
|
||||
ContentTemplate="{TemplateBinding TabControl.SelectedContentTemplate}"
|
||||
SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
<!-- SmartProcess -->
|
||||
<Style x:Key="TabItemSmartProcess" TargetType="{x:Type TabItem}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabItem}">
|
||||
<Grid>
|
||||
<Border
|
||||
Name="Border"
|
||||
Background="#FFC2E4F6"
|
||||
BorderBrush="Gray"
|
||||
BorderThickness="1,1,1,1"
|
||||
CornerRadius="6,6,0,0">
|
||||
<ContentPresenter
|
||||
x:Name="ContentSite"
|
||||
Margin="12,2,12,2"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header" />
|
||||
</Border>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter TargetName="Border" Property="Background" Value="#FFC2E4F6" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="False">
|
||||
<Setter TargetName="Border" Property="Background" Value="Transparent" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- 设置选项卡大小 -->
|
||||
<Style x:Key="ChromeLargeTab" TargetType="{x:Type TabControl}">
|
||||
<Setter Property="Background" Value="#FFC5D0D8" />
|
||||
<Setter Property="FontSize" Value="17" />
|
||||
<Setter Property="ItemContainerStyle">
|
||||
<Setter.Value>
|
||||
<Style>
|
||||
<Setter Property="Control.Height" Value="24" />
|
||||
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabItem}">
|
||||
<!-- "M60 0 L 0 0 L 10 23 L 45 23 L 60 0" -->
|
||||
<Grid Margin="0,0,-10,0">
|
||||
<Path
|
||||
Data="M120 0 L 0 0 L 10 23 L 90 23 L 120 0"
|
||||
Fill="{TemplateBinding Background}"
|
||||
Stroke="Black"
|
||||
StrokeThickness="1" />
|
||||
<ContentPresenter
|
||||
Margin="10,3,10,0"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Trigger.Setters>
|
||||
<Setter Property="Background" Value="#FFCBD8D8" />
|
||||
<Setter Property="Panel.ZIndex" Value="1" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="False">
|
||||
<Trigger.Setters>
|
||||
<Setter Property="Background" Value="#FFA7ADAD" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ChromeTabSmall" TargetType="{x:Type TabControl}">
|
||||
<Setter Property="Background" Value="#FFC5D0D8" />
|
||||
<Setter Property="FontSize" Value="17" />
|
||||
<Setter Property="ItemContainerStyle">
|
||||
<Setter.Value>
|
||||
<Style>
|
||||
<Setter Property="Control.Height" Value="24" />
|
||||
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabItem}">
|
||||
|
||||
<Grid Margin="0,0,-10,0">
|
||||
<Path
|
||||
Data="M60 0 L 0 0 L 10 23 L 45 23 L 60 0"
|
||||
Fill="{TemplateBinding Background}"
|
||||
Stroke="Black"
|
||||
StrokeThickness="1" />
|
||||
<ContentPresenter
|
||||
Margin="8,3,7,0"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Trigger.Setters>
|
||||
<Setter Property="Background" Value="#FFCBD8D8" />
|
||||
<Setter Property="Panel.ZIndex" Value="1" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="False">
|
||||
<Trigger.Setters>
|
||||
<Setter Property="Background" Value="#FFA7ADAD" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Main_TabItem" TargetType="{x:Type TabItem}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource SubMenu_FG}" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="MinWidth" Value="100" />
|
||||
<Setter Property="Height" Value="25" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<!--<Setter Property="FontWeight" Value="bold"/>-->
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabItem}">
|
||||
<Border x:Name="BG" Cursor="Hand">
|
||||
<Border x:Name="InnerBD" Background="#FFa7adad">
|
||||
<!--<ContentPresenter x:Name="Content" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="6,0"/>-->
|
||||
<Grid Margin="0,0,-10,0">
|
||||
<Path
|
||||
Data="M190 0 L 0 0 L 10 23 L 170 23 L 190 0"
|
||||
Fill="{TemplateBinding Background}"
|
||||
Stroke="Black"
|
||||
StrokeThickness="1" />
|
||||
<ContentPresenter
|
||||
Margin="10,3,10,0"
|
||||
ContentSource="Header"
|
||||
Cursor="Hand" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Trigger.Setters>
|
||||
<Setter TargetName="InnerBD" Property="Background" Value="#FF2c4746" />
|
||||
<Setter Property="Background" Value="#FFCBD8D8" />
|
||||
<Setter Property="Panel.ZIndex" Value="1" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="False">
|
||||
<Trigger.Setters>
|
||||
<Setter TargetName="InnerBD" Property="Background" Value="#FF2c4746" />
|
||||
<Setter Property="Background" Value="#FFA7ADAD" />
|
||||
</Trigger.Setters>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,655 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<SolidColorBrush x:Key="Color_BD_TextBox" Color="#FF4E82A3" />
|
||||
<SolidColorBrush x:Key="Color_BG_TextBox" Color="#FFE4E5E5" />
|
||||
<SolidColorBrush x:Key="Color_BD_TextBox_Shadow" Color="#FF7FA9C4" />
|
||||
<SolidColorBrush x:Key="Color_BD_TextBox_Highlight" Color="White" />
|
||||
<RadialGradientBrush x:Key="Color_BG_LoginButton" Center="0.492,0.025" GradientOrigin="0.492,0.025" RadiusX="0.608" RadiusY="0.982">
|
||||
<GradientStop Color="#FF00F372" />
|
||||
<GradientStop Offset="0.992" Color="#FF007E3B" />
|
||||
</RadialGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_LoginButton" Color="#FF003117" />
|
||||
<SolidColorBrush x:Key="Color_BD_LoginButton_InnerGrow" Color="#FFBDFFDC" />
|
||||
<SolidColorBrush x:Key="Color_FG_Button" Color="White" />
|
||||
<SolidColorBrush x:Key="Color_BG_LoginButton_Highlight" Color="#FFC3FF00" />
|
||||
<RadialGradientBrush x:Key="Color_BG_ToggleButton" Center="0.492,0.025" GradientOrigin="0.492,0.025" RadiusX="0.608" RadiusY="0.982">
|
||||
<GradientStop Color="#FF00F372" />
|
||||
<GradientStop Offset="0.992" Color="#FF007E3B" />
|
||||
</RadialGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_ToggleButton" Color="#FF003117" />
|
||||
<SolidColorBrush x:Key="Color_BG_ToggleButton_Highlight" Color="#FFC3FF00" />
|
||||
<RadialGradientBrush x:Key="Color_BG_Login" RadiusX="0.455" RadiusY="0.455">
|
||||
<GradientStop Offset="0" Color="#FF2DACFF" />
|
||||
<GradientStop Offset="0.996" Color="#FF004470" />
|
||||
</RadialGradientBrush>
|
||||
<LinearGradientBrush x:Key="Color_BG_LoginTitle" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF1B85D8" />
|
||||
<GradientStop Offset="0.988" Color="#FF004D89" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_LoginTitle" Color="#FF6BBEFF" />
|
||||
<SolidColorBrush x:Key="Color_BD_LoginTitle_Shadow" Color="#FF0067AB" />
|
||||
<SolidColorBrush x:Key="Color_BD_LoginTitle_Highlight" Color="#FF6BBEFF" />
|
||||
<SolidColorBrush x:Key="Color_BD_Highlight" Color="#FFF4F4F5" />
|
||||
<LinearGradientBrush x:Key="Color_FG_LoginTitle" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="White" />
|
||||
<GradientStop Offset="1" Color="#FF45CFFD" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BG_LoginPanel" Color="#FF97DAFD" />
|
||||
<SolidColorBrush x:Key="Color_BD_LoginPanel" Color="#FFDDF3FF" />
|
||||
<SolidColorBrush x:Key="Color_BD_LoginPanel_Shadow" Color="#FF48809F" />
|
||||
<SolidColorBrush x:Key="Color_FG_LoginText" Color="#FF3D5A6C" />
|
||||
<LinearGradientBrush x:Key="Color_BG_MainPage" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF135B89" />
|
||||
<GradientStop Offset="1" Color="#FF6BC5FF" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="Color_BG_InfoBar" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="1" Color="#FF85D5FF" />
|
||||
<GradientStop Offset="0.45" Color="#FFBDE2F5" />
|
||||
<GradientStop Color="#FF97BDD0" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_InfoBar_Highlight" Color="White" />
|
||||
<SolidColorBrush x:Key="Color_BD_InfoBar_Shadow" Color="#FF004572" />
|
||||
<SolidColorBrush x:Key="Color_FG_InfoBar" Color="#FF001BFF" />
|
||||
<LinearGradientBrush x:Key="Color_BG_Button" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Color="#FF00AED0" />
|
||||
<GradientStop Offset="0.45" Color="#FF005276" />
|
||||
<GradientStop Offset="0.46" Color="#FF005276" />
|
||||
<GradientStop Offset="1" Color="#FF006895" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_Button" Color="#FF001C31" />
|
||||
<SolidColorBrush x:Key="Color_BG_Button_Highlight" Color="#FF00FFE2" />
|
||||
<SolidColorBrush x:Key="Color_BD_Button_InnerGrow" Color="#FFBDFAFF" />
|
||||
<LinearGradientBrush x:Key="Color_BG_Line_White" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#4CFFFFFF" />
|
||||
<GradientStop Offset="1" Color="#4CFFFFFF" />
|
||||
<GradientStop Offset="0.5" Color="White" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="Color_BG_Line_Blue" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#4C002C5C" />
|
||||
<GradientStop Offset="1" Color="#4C002C5C" />
|
||||
<GradientStop Offset="0.494" Color="#FF002C5C" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<SolidColorBrush x:Key="Color_BG_MainFrame" Color="#B2DBF9FF" />
|
||||
<SolidColorBrush x:Key="Color_BD_MainFrame" Color="#B2FFFFFF" />
|
||||
<SolidColorBrush x:Key="Color_BG_HistoryMenuBar" Color="#7F7FC3E0" />
|
||||
<SolidColorBrush x:Key="Color_BD_HistoryMenuBar" Color="#B2FFFFFF" />
|
||||
<SolidColorBrush x:Key="Color_BD_BottomFrame" Color="#B2FFFFFF" />
|
||||
<LinearGradientBrush x:Key="Color_BG_BottomFrame" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF004880" />
|
||||
<GradientStop Offset="1" Color="#FF3C84BC" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="Color_BG_Menu" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF00B5E4" />
|
||||
<GradientStop Offset="1" Color="#FF0088B6" />
|
||||
<GradientStop Offset="0.4" Color="#FF006D89" />
|
||||
<GradientStop Offset="0.41" Color="#FF004C74" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_Menu" Color="#FF002A4B" />
|
||||
<SolidColorBrush x:Key="Color_BG_Menu_Highlight" Color="#7F00BFFF" />
|
||||
<LinearGradientBrush x:Key="Color_FG_Menu" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0.5" Color="White" />
|
||||
<GradientStop Offset="1" Color="#FF3AB9FD" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_FG_TextBlack" Color="Black" />
|
||||
<SolidColorBrush x:Key="Color_BD_Logoff" Color="#FF217EAF" />
|
||||
<SolidColorBrush x:Key="Color_BG_Logoff" Color="#FFAAE2FF" />
|
||||
<SolidColorBrush x:Key="Color_BD_Logoff_Info" Color="#7F51ADDE" />
|
||||
<SolidColorBrush x:Key="Color_BG_Logoff_Info" Color="#4CFFFFFF" />
|
||||
<SolidColorBrush x:Key="Color_BG_SubMenu_LineHighlight" Color="White" />
|
||||
<SolidColorBrush x:Key="Color_BG_SubMenu_LineShadow" Color="#FF7E7E7E" />
|
||||
<SolidColorBrush x:Key="Color_BG_SubMenu_OnMouseOver" Color="#B2FFFFFF" />
|
||||
<SolidColorBrush x:Key="Color_FG_Button_Window" Color="Black" />
|
||||
<SolidColorBrush x:Key="Color_BG_Button_Window_Highlight" Color="#FF91F7FF" />
|
||||
<SolidColorBrush x:Key="Color_BG_Dialog" Color="#FF006BB1" />
|
||||
<SolidColorBrush x:Key="Color_BD_Dialog" Color="White" />
|
||||
<SolidColorBrush x:Key="Color_BG_Dialog_Shadow" Color="#FF00253D" />
|
||||
<SolidColorBrush x:Key="Color_BG_Dialog_Inner" Color="#FFDCF3F5" />
|
||||
<LinearGradientBrush x:Key="Color_BG_WindowButton" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Color="#FF89ECFF" />
|
||||
<GradientStop Offset="0.44" Color="#FF00A8F1" />
|
||||
<GradientStop Offset="0.45" Color="#FF0095D8" />
|
||||
<GradientStop Offset="1" Color="#FF009FE4" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_WindowButton" Color="#FF001C31" />
|
||||
<SolidColorBrush x:Key="Color_BD_WindowButton_InnerGrow" Color="#FFBDFAFF" />
|
||||
<LinearGradientBrush x:Key="Color_BG_WindowButton_Highlight" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Color="#FFE8FF89" />
|
||||
<GradientStop Offset="0.44" Color="#FF6BFF6E" />
|
||||
<GradientStop Offset="0.45" Color="#FF00D80D" />
|
||||
<GradientStop Offset="1" Color="#FF26E400" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_SubMenu" Color="#FF003550" />
|
||||
<SolidColorBrush x:Key="Color_BG_SubMenuBG" Color="#FFD0EFFF" />
|
||||
|
||||
<!-- Top Frame -->
|
||||
<SolidColorBrush x:Key="TopFrame_BG" Color="#FF243664" />
|
||||
<SolidColorBrush x:Key="TopFrame_BD" Color="#FFAFD7F4" />
|
||||
<SolidColorBrush x:Key="TopFrame_TableBD_Highlight" Color="#B2AFC2D3" />
|
||||
<SolidColorBrush x:Key="TopFrame_TableBG" Color="#FF243664" />
|
||||
<SolidColorBrush x:Key="TopFrame_TableBD_Shadow" Color="#FF1F2732" />
|
||||
<SolidColorBrush x:Key="TopFrame_TextColor" Color="Black" />
|
||||
<SolidColorBrush x:Key="TopFrame_TableBG_Highlight" Color="#FF18B125" />
|
||||
<SolidColorBrush x:Key="TopFrame_BD_Highlight" Color="#FF7D9ABC" />
|
||||
<SolidColorBrush x:Key="TopFrame_BD_Shadow" Color="#FF6C7D8F" />
|
||||
<LinearGradientBrush x:Key="TopFrame_DarkBG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF010101" />
|
||||
<GradientStop Offset="1" Color="#FF2E4662" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="TopFrame_DarkBD_Highlight" Color="#FF95999C" />
|
||||
<SolidColorBrush x:Key="TopFrame_DarkBD_Shadow" Color="#FF23354B" />
|
||||
<SolidColorBrush x:Key="TopFrame_SignalTowerBG" Color="#FFC8E8FF" />
|
||||
<SolidColorBrush x:Key="TopFrame_SignalTowerBD" Color="#FF162858" />
|
||||
<SolidColorBrush x:Key="TopFrame_SignalTower_HighlightBD" Color="#FFC8E8FF" />
|
||||
<SolidColorBrush x:Key="TopFrame_SignalTower_ShadowBD" Color="#FF162858" />
|
||||
<SolidColorBrush x:Key="TopFrame_UserInfoBG" Color="#FFC8E8FF" />
|
||||
<SolidColorBrush x:Key="TopFrame_UserInfoBD" Color="#FF162858" />
|
||||
|
||||
<!-- Main Frame -->
|
||||
<SolidColorBrush x:Key="SecondMenuBar_BG" Color="#FF346294" />
|
||||
<SolidColorBrush x:Key="SecondMenuBar_BD" Color="#00475059" />
|
||||
<SolidColorBrush x:Key="SubMenu_BG_Select" Color="#FF91B0CD" />
|
||||
<LinearGradientBrush x:Key="SubMenu_BG_Highlight" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF009980" />
|
||||
<GradientStop Offset="1" Color="#FFA3EDE5" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="SubMenu_BG_MouseOver" Color="#FF627DC4" />
|
||||
<SolidColorBrush x:Key="SubMenu_BD_Shadow_Highlight" Color="#FF91B0CD" />
|
||||
<SolidColorBrush x:Key="SubMenu_BD_Select" Color="#FF91B0CD" />
|
||||
<SolidColorBrush x:Key="SubMenu_BD_Shadow_Select" Color="#FF91B0CD" />
|
||||
<SolidColorBrush x:Key="SubMenu_BD_Highlight" Color="#FFB3B9CF" />
|
||||
<SolidColorBrush x:Key="SubMenu_BD_Shadow" Color="#FF243762" />
|
||||
<SolidColorBrush x:Key="SubMenu_BD_SelectInnerGrow" Color="#FFD2F6FF" />
|
||||
<SolidColorBrush x:Key="SubMenu_FG_Select" Color="#FF243664" />
|
||||
<SolidColorBrush x:Key="SubMenu_BG" Color="#FF2F457F" />
|
||||
<SolidColorBrush x:Key="SubMenu_FG" Color="White" />
|
||||
|
||||
<SolidColorBrush x:Key="Table_BG_FirstTitle" Color="#FF243664" />
|
||||
<SolidColorBrush x:Key="Table_BG_Title" Color="#FFD0DEEB" />
|
||||
<SolidColorBrush x:Key="Table_BD" Color="Gray" />
|
||||
<SolidColorBrush x:Key="Table_BG_Content" Color="White" />
|
||||
<SolidColorBrush x:Key="Table_BG_Title_Highlight" Color="#FFD0DFF9" />
|
||||
<SolidColorBrush x:Key="Table_BG_Content_Highlight" Color="White" />
|
||||
|
||||
<SolidColorBrush x:Key="Table_BG_Title_Inner" Color="Transparent" />
|
||||
<SolidColorBrush x:Key="Table_BD_Inner" Color="Transparent" />
|
||||
<SolidColorBrush x:Key="Table_BG_Content_Inner" Color="Transparent" />
|
||||
|
||||
<SolidColorBrush x:Key="MainFrame_BG_Title" Color="#FFC5C5C5" />
|
||||
<LinearGradientBrush x:Key="MainFrame_BG_Title_Select" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF4f6698" />
|
||||
<GradientStop Offset="1" Color="#FFbecadf" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="MainFrame_BD" Color="#FF557AA7" />
|
||||
<SolidColorBrush x:Key="MainFrame_BG" Color="#FFDBE5F1" />
|
||||
<SolidColorBrush x:Key="MainFrame_BD_Highlight" Color="LightGray" />
|
||||
<SolidColorBrush x:Key="MainFrame_BD_Shadow" Color="#FF768194" />
|
||||
<SolidColorBrush x:Key="MainArea_BG" Color="#FF91B0CD" />
|
||||
<SolidColorBrush x:Key="MainArea_InnerBG" Color="#0091B0CD" />
|
||||
|
||||
<!-- Bottom Frame -->
|
||||
<SolidColorBrush x:Key="BottomFrame_Shadow" Color="Black" />
|
||||
<SolidColorBrush x:Key="BottomFrame_BG" Color="#FF243664" />
|
||||
|
||||
<SolidColorBrush x:Key="BottomFrame_BD" Color="#00243664" />
|
||||
|
||||
<!-- TextColor Style -->
|
||||
<SolidColorBrush x:Key="FG_Black" Color="Black" />
|
||||
<SolidColorBrush x:Key="FG_Green" Color="LimeGreen" />
|
||||
<SolidColorBrush x:Key="FG_White" Color="White" />
|
||||
<SolidColorBrush x:Key="FG_Blue" Color="Blue" />
|
||||
<SolidColorBrush x:Key="FG_TopInfo_Title" Color="White" />
|
||||
<SolidColorBrush x:Key="FG_TopInfo_Content" Color="#FFF4FF58" />
|
||||
<SolidColorBrush x:Key="FG_Table_Title" Color="White" />
|
||||
|
||||
<!-- Login Page -->
|
||||
<LinearGradientBrush x:Key="Login_BG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="1" Color="#FF047CBF" />
|
||||
<GradientStop Color="#FF0575BE" />
|
||||
<GradientStop Offset="0.5" Color="#FF00337E" />
|
||||
<GradientStop Offset="0.25" Color="#FF114591" />
|
||||
<GradientStop Offset="0.75" Color="#FF114591" />
|
||||
</LinearGradientBrush>
|
||||
<RadialGradientBrush x:Key="Login_BG_Highlight">
|
||||
<GradientStop Offset="0" Color="#FF4F94D4" />
|
||||
<GradientStop Offset="1" Color="#004F94D4" />
|
||||
</RadialGradientBrush>
|
||||
<LinearGradientBrush x:Key="LoginPanel_BG" StartPoint="0.942,0" EndPoint="0.058,1">
|
||||
<GradientStop Color="#FF0E2C66" />
|
||||
<GradientStop Offset="0.35" Color="#FF3860B1" />
|
||||
<GradientStop Offset="1" Color="#FF0E2C66" />
|
||||
<GradientStop Offset="0.65" Color="#FF3860B1" />
|
||||
<GradientStop Offset="0.5" Color="#FF547CCC" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="LoginPanel_BD" Color="#FF092556" />
|
||||
<LinearGradientBrush x:Key="LoginPanel_InnerGrow" MappingMode="RelativeToBoundingBox" StartPoint="0.023,1.053" EndPoint="0.786,-0.181">
|
||||
<GradientStop Offset="0" Color="#FF092556" />
|
||||
<GradientStop Offset="0.8" Color="#FF3361AF" />
|
||||
<GradientStop Offset="1" Color="#FF1B3A74" />
|
||||
<GradientStop Offset="0.6" Color="#FF3463B1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<!-- FOUP -->
|
||||
<LinearGradientBrush x:Key="FOUP_OuterBG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FFeaebec" />
|
||||
<GradientStop Offset="0.5" Color="#FFb3b5bb" />
|
||||
<GradientStop Offset="1" Color="#FFeaebec" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="FOUP_OuterBD" Color="#FFa8a9aa" />
|
||||
<SolidColorBrush x:Key="FOUP_InnerBG" Color="#FF7a7a7a" />
|
||||
<SolidColorBrush x:Key="FOUP_InnerGrow" Color="#FFacacac" />
|
||||
<SolidColorBrush x:Key="FOUP_PathBG" Color="#FFe7e8e9" />
|
||||
|
||||
<!-- Gas Line -->
|
||||
<LinearGradientBrush x:Key="Color_BG_GasLine_3DBG01" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Offset="0" Color="Black" />
|
||||
<GradientStop Offset="1" Color="Black" />
|
||||
<GradientStop Offset="0.5" Color="#66FFFFFF" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="Color_BG_GasLine_3DBG02" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="Black" />
|
||||
<GradientStop Offset="1" Color="Black" />
|
||||
<GradientStop Offset="0.5" Color="#66FFFFFF" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Color_BD_GasLine_Border" Color="#FF6C6C6C" />
|
||||
<SolidColorBrush x:Key="Color_BG_Gasline" Color="LightGray" />
|
||||
|
||||
<LinearGradientBrush x:Key="Lid_BG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF686868" />
|
||||
<GradientStop Offset="1" Color="#FF686868" />
|
||||
<GradientStop Offset="0.5" Color="#FFB4B4B4" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="Lid_BG1" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FF686868" />
|
||||
<GradientStop Offset="1" Color="#FF686868" />
|
||||
<GradientStop Offset="0.5" Color="DarkOrange" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="Lid_BG2" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Offset="0" Color="#FF686868" />
|
||||
<GradientStop Offset="1" Color="#FF686868" />
|
||||
<GradientStop Offset="0.5" Color="LightBlue" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Lid_BD" Color="#FF707070" />
|
||||
<LinearGradientBrush x:Key="LiftPin_BG" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FFCCB45F" />
|
||||
<GradientStop Offset="1" Color="#FFA58827" />
|
||||
<GradientStop Offset="0.5" Color="#FFEDE4C7" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="Lid_BG3" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Offset="0" Color="#FF686868" />
|
||||
<GradientStop Offset="1" Color="#FF686868" />
|
||||
<GradientStop Offset="0.5" Color="DarkKhaki" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Lid_BD3" Color="DarkOrange" />
|
||||
<LinearGradientBrush x:Key="LiftPin_BG2" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Offset="0" Color="#FFCCB45F" />
|
||||
<GradientStop Offset="1" Color="#FFA58827" />
|
||||
<GradientStop Offset="0.5" Color="#FFEDE4C7" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<!-- Border Style -->
|
||||
<Style x:Key="TopFrame_Style" TargetType="{x:Type Border}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TopFrame_BD}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Background" Value="{DynamicResource TopFrame_BG}" />
|
||||
</Style>
|
||||
<Style x:Key="TopLable_LeftTop" TargetType="{x:Type Label}">
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TopFrame_TableBD_Highlight}" />
|
||||
<Setter Property="BorderThickness" Value="3" />
|
||||
<Setter Property="Background" Value="{DynamicResource TopFrame_TableBG}" />
|
||||
<Setter Property="Margin" Value="1,1,0,1" />
|
||||
<Setter Property="Padding" Value="5,2" />
|
||||
<Setter Property="Border.CornerRadius" Value="6,0,0,6" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<Border
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="TopLable" TargetType="{x:Type Label}">
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TopFrame_TableBD_Highlight}" />
|
||||
<Setter Property="BorderThickness" Value="3" />
|
||||
<Setter Property="Background" Value="{DynamicResource TopFrame_TableBG}" />
|
||||
<Setter Property="Margin" Value="1,1,0,1" />
|
||||
<Setter Property="Padding" Value="5,2" />
|
||||
<Setter Property="Border.CornerRadius" Value="6,0,0,6" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<Border
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="TopLable_LeftBottom" TargetType="{x:Type Label}">
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TopFrame_TableBD_Highlight}" />
|
||||
<Setter Property="BorderThickness" Value="3" />
|
||||
<Setter Property="Background" Value="{DynamicResource TopFrame_TableBG}" />
|
||||
<Setter Property="Margin" Value="1,1,0,1" />
|
||||
<Setter Property="Padding" Value="5,2" />
|
||||
<Setter Property="Border.CornerRadius" Value="6,0,0,6" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<Border
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="TopLable_RightBottom" TargetType="{x:Type Label}">
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TopFrame_TableBD_Highlight}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Background" Value="{DynamicResource TextBox_Top_BG}" />
|
||||
<Setter Property="Margin" Value="1" />
|
||||
<Setter Property="Padding" Value="5,2" />
|
||||
<Setter Property="Border.CornerRadius" Value="6" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<Border
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="TopLable_SignalTower" TargetType="{x:Type Label}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TopFrame_SignalTowerBD}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Background" Value="{DynamicResource TopFrame_SignalTowerBG}" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Border.CornerRadius" Value="6" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<Border
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="Sub_Menu_BarStyle" TargetType="{x:Type Border}">
|
||||
<Setter Property="Background" Value="{DynamicResource SecondMenuBar_BG}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
</Style>
|
||||
<Style x:Key="Bottom_FrameStyle" TargetType="{x:Type Border}">
|
||||
<Setter Property="Background" Value="{DynamicResource BottomFrame_BG}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Table_TitleStyle" TargetType="{x:Type Label}">
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Table_Title}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Background" Value="{DynamicResource Table_BG_FirstTitle}" />
|
||||
<Setter Property="Padding" Value="5,2" />
|
||||
<Setter Property="Border.CornerRadius" Value="6,6,0,0" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<Border
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="OverviewTable_LeftBottomBorder" TargetType="{x:Type Border}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Table_BD}" />
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="BorderThickness" Value="1,0,1,1" />
|
||||
<Setter Property="Background" Value="{DynamicResource Table_BG_Title}" />
|
||||
</Style>
|
||||
<Style x:Key="OverviewTable_RightBottomBorder" TargetType="{x:Type Border}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Table_BD}" />
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="BorderThickness" Value="0,0,1,1" />
|
||||
<Setter Property="Background" Value="{DynamicResource Table_BG_Content}" />
|
||||
</Style>
|
||||
<Style x:Key="WaferStatus_TitleBorder" TargetType="{x:Type Border}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource MainFrame_BD}" />
|
||||
<Setter Property="CornerRadius" Value="6,6,0,0" />
|
||||
<Setter Property="BorderThickness" Value="1,1,1,0" />
|
||||
<Setter Property="Background" Value="{DynamicResource MainFrame_BG_Title}" />
|
||||
</Style>
|
||||
<Style x:Key="WaferStatus_BottomBorder" TargetType="{x:Type Border}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource MainFrame_BD}" />
|
||||
<Setter Property="CornerRadius" Value="0,0,6,6" />
|
||||
<Setter Property="BorderThickness" Value="1,0,1,1" />
|
||||
<Setter Property="Background" Value="{DynamicResource MainFrame_BG}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="WrapBorder" TargetType="{x:Type Border}">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource MainFrame_BD}" />
|
||||
<Setter Property="CornerRadius" Value="6,6,6,6" />
|
||||
<Setter Property="BorderThickness" Value="1,1,1,1" />
|
||||
<Setter Property="Background" Value="{DynamicResource MainFrame_BG}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="WaferStatus_GridStyle" TargetType="{x:Type Grid}">
|
||||
<Setter Property="Margin" Value="10,10,0,10" />
|
||||
<Setter Property="HorizontalAlignment" Value="Right" />
|
||||
</Style>
|
||||
|
||||
|
||||
<Style x:Key="GridSplitterPreviewStyle">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Fill="#80000000" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="HorizontalGridSplitterStyle" TargetType="{x:Type GridSplitter}">
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GridSplitter}">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="5">
|
||||
<Canvas
|
||||
Width="50"
|
||||
Height="6"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
RenderOptions.EdgeMode="Aliased"
|
||||
UseLayoutRounding="True">
|
||||
<Line
|
||||
Stroke="White"
|
||||
StrokeThickness="1"
|
||||
X1="0"
|
||||
X2="50"
|
||||
Y1="0"
|
||||
Y2="0" />
|
||||
<Line
|
||||
Stroke="#A0A0A0"
|
||||
StrokeThickness="1"
|
||||
X1="0"
|
||||
X2="50"
|
||||
Y1="1"
|
||||
Y2="1" />
|
||||
<Line
|
||||
Stroke="White"
|
||||
StrokeThickness="1"
|
||||
X1="0"
|
||||
X2="50"
|
||||
Y1="4"
|
||||
Y2="4" />
|
||||
<Line
|
||||
Stroke="#A0A0A0"
|
||||
StrokeThickness="1"
|
||||
X1="0"
|
||||
X2="50"
|
||||
Y1="5"
|
||||
Y2="5" />
|
||||
</Canvas>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="VerticalGridSplitterStyle" TargetType="{x:Type GridSplitter}">
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GridSplitter}">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="5">
|
||||
<Canvas
|
||||
Width="6"
|
||||
Height="50"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
RenderOptions.EdgeMode="Aliased"
|
||||
UseLayoutRounding="True">
|
||||
<Line
|
||||
Stroke="White"
|
||||
StrokeThickness="1"
|
||||
X1="0"
|
||||
X2="0"
|
||||
Y1="0"
|
||||
Y2="50" />
|
||||
<Line
|
||||
Stroke="#A0A0A0"
|
||||
StrokeThickness="1"
|
||||
X1="1"
|
||||
X2="1"
|
||||
Y1="0"
|
||||
Y2="50" />
|
||||
<Line
|
||||
Stroke="White"
|
||||
StrokeThickness="1"
|
||||
X1="4"
|
||||
X2="4"
|
||||
Y1="0"
|
||||
Y2="50" />
|
||||
<Line
|
||||
Stroke="#A0A0A0"
|
||||
StrokeThickness="1"
|
||||
X1="5"
|
||||
X2="5"
|
||||
Y1="0"
|
||||
Y2="50" />
|
||||
</Canvas>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,234 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<SolidColorBrush x:Key="Tab_Header_BG" Color="#FF2F457F" />
|
||||
<SolidColorBrush x:Key="Tab_BD" Color="#FF233661" />
|
||||
<SolidColorBrush x:Key="Tab_BD_Highlight" Color="#FFB3B9D1" />
|
||||
<SolidColorBrush x:Key="Tab_Header_BG_MouseOver" Color="#FF57A3D4" />
|
||||
<SolidColorBrush x:Key="Tab_Header_BG_Select" Color="#FFD1E1F3" />
|
||||
<SolidColorBrush x:Key="Tab_BD_Select" Color="#FF6788B1" />
|
||||
<SolidColorBrush x:Key="Tab_BD_Highlight_Select" Color="#00B3B9D1" />
|
||||
<SolidColorBrush x:Key="Tab_FG_Select" Color="#FF233863" />
|
||||
<SolidColorBrush x:Key="Tab_BG" Color="#FFDBE5F1" />
|
||||
<SolidColorBrush x:Key="Tab_BD_Unable" Color="Gray" />
|
||||
<LinearGradientBrush x:Key="Tab_Header_BG_Unable" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#FFB1B1B1" />
|
||||
<GradientStop Offset="1" Color="#FFDADADA" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="Tab_BG_Unable" Color="LightGray" />
|
||||
|
||||
<Style x:Key="TabItemFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle
|
||||
Margin="3,3,3,1"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="#7FFFFFFF"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type TabControl}">
|
||||
<Setter Property="Padding" Value="5" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Tab_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Tab_BG}" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Border.CornerRadius" Value="5" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabControl}">
|
||||
<Grid>
|
||||
<Grid
|
||||
ClipToBounds="true"
|
||||
KeyboardNavigation.TabNavigation="Local"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition x:Name="ColumnDefinition0" />
|
||||
<ColumnDefinition x:Name="ColumnDefinition1" Width="0" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition x:Name="RowDefinition0" Height="Auto" />
|
||||
<RowDefinition x:Name="RowDefinition1" Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TabPanel
|
||||
x:Name="HeaderPanel"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Margin="3,0,0,0"
|
||||
Panel.ZIndex="1"
|
||||
IsItemsHost="true"
|
||||
KeyboardNavigation.TabIndex="1" />
|
||||
<Border
|
||||
x:Name="ContentPanel"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||
KeyboardNavigation.TabIndex="2"
|
||||
KeyboardNavigation.TabNavigation="Local">
|
||||
<ContentPresenter
|
||||
x:Name="PART_SelectedContentHost"
|
||||
ContentSource="SelectedContent"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="TabStripPlacement" Value="Bottom">
|
||||
<Setter TargetName="HeaderPanel" Property="Grid.Row" Value="1" />
|
||||
<Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
|
||||
<Setter TargetName="RowDefinition0" Property="Height" Value="*" />
|
||||
<Setter TargetName="RowDefinition1" Property="Height" Value="Auto" />
|
||||
<Setter TargetName="HeaderPanel" Property="Margin" Value="2,0,2,2" />
|
||||
</Trigger>
|
||||
<Trigger Property="TabStripPlacement" Value="Left">
|
||||
<Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
|
||||
<Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
|
||||
<Setter TargetName="HeaderPanel" Property="Grid.Column" Value="0" />
|
||||
<Setter TargetName="ContentPanel" Property="Grid.Column" Value="1" />
|
||||
<Setter TargetName="ColumnDefinition0" Property="Width" Value="Auto" />
|
||||
<Setter TargetName="ColumnDefinition1" Property="Width" Value="*" />
|
||||
<Setter TargetName="RowDefinition0" Property="Height" Value="*" />
|
||||
<Setter TargetName="RowDefinition1" Property="Height" Value="0" />
|
||||
<Setter TargetName="HeaderPanel" Property="Margin" Value="2,2,0,2" />
|
||||
</Trigger>
|
||||
<Trigger Property="TabStripPlacement" Value="Right">
|
||||
<Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
|
||||
<Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
|
||||
<Setter TargetName="HeaderPanel" Property="Grid.Column" Value="1" />
|
||||
<Setter TargetName="ContentPanel" Property="Grid.Column" Value="0" />
|
||||
<Setter TargetName="ColumnDefinition0" Property="Width" Value="*" />
|
||||
<Setter TargetName="ColumnDefinition1" Property="Width" Value="Auto" />
|
||||
<Setter TargetName="RowDefinition0" Property="Height" Value="*" />
|
||||
<Setter TargetName="RowDefinition1" Property="Height" Value="0" />
|
||||
<Setter TargetName="HeaderPanel" Property="Margin" Value="0,2,2,2" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="ContentPanel" Property="BorderBrush" Value="{DynamicResource Tab_BD_Unable}" />
|
||||
<Setter TargetName="ContentPanel" Property="Background" Value="{DynamicResource Tab_BG_Unable}" />
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type TabItem}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Tab_BD}" />
|
||||
<Setter Property="Background" Value="{DynamicResource Tab_Header_BG}" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
<Setter Property="MinWidth" Value="60" />
|
||||
<Setter Property="MinHeight" Value="24" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TabItem}">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="1,1,1,0"
|
||||
CornerRadius="5,5,0,0"
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border
|
||||
x:Name="InnerBD"
|
||||
BorderBrush="{DynamicResource Tab_BD_Highlight}"
|
||||
BorderThickness="1,1,0,0"
|
||||
CornerRadius="4,4,0,0">
|
||||
<ContentPresenter
|
||||
x:Name="Content"
|
||||
Margin="10,3,10,1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger SourceName="BG" Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Tab_Header_BG_MouseOver}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Tab_Header_BG_Select}" />
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{DynamicResource Tab_BD_Select}" />
|
||||
<Setter TargetName="InnerBD" Property="BorderBrush" Value="{DynamicResource Tab_BD_Highlight_Select}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Tab_FG_Select}" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
</Trigger>
|
||||
<Trigger Property="TabStripPlacement" Value="Bottom">
|
||||
<Setter TargetName="BG" Property="BorderThickness" Value="1,0,1,1" />
|
||||
</Trigger>
|
||||
<Trigger Property="TabStripPlacement" Value="Left">
|
||||
<Setter TargetName="BG" Property="BorderThickness" Value="1,1,0,1" />
|
||||
</Trigger>
|
||||
<Trigger Property="TabStripPlacement" Value="Right">
|
||||
<Setter TargetName="BG" Property="BorderThickness" Value="0,1,1,1" />
|
||||
</Trigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsSelected" Value="true" />
|
||||
<Condition Property="TabStripPlacement" Value="Top" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter TargetName="Content" Property="Margin" Value="10,3,10,1" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsSelected" Value="true" />
|
||||
<Condition Property="TabStripPlacement" Value="Bottom" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter TargetName="Content" Property="Margin" Value="5,1,5,0" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsSelected" Value="true" />
|
||||
<Condition Property="TabStripPlacement" Value="Left" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter TargetName="Content" Property="Margin" Value="5,0,6,0" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsSelected" Value="true" />
|
||||
<Condition Property="TabStripPlacement" Value="Right" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter TargetName="Content" Property="Margin" Value="6,0,5,0" />
|
||||
</MultiTrigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource Tab_BD_Unable}" />
|
||||
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Tab_Header_BG_Unable}" />
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
<Setter TargetName="Content" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect
|
||||
BlurRadius="0"
|
||||
Opacity="0"
|
||||
ShadowDepth="1" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,330 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!-- TextBox Style -->
|
||||
|
||||
<SolidColorBrush x:Key="TextBox_BD" Color="#FF1B1B1B" />
|
||||
<SolidColorBrush x:Key="TextBox_BG" Color="White" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerBD" Color="#FFD6D6D6" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerLeft" Color="#FF898989" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerTop" Color="#FF565656" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerRight" Color="#FFD8D8D8" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerBottom" Color="#FFE0E0E0" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerBD_Unable" Color="#FFBEBDBD" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerLeft_Unable" Color="#FFABABAB" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerTop_Unable" Color="#FFB4B4B4" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerRight_Unable" Color="#FFE7E7E7" />
|
||||
<SolidColorBrush x:Key="TextBox_InnerBottom_Unable" Color="#FFE7E7E7" />
|
||||
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
<Setter Property="BorderThickness" Value="1,1,0,0" />
|
||||
<Setter Property="MinHeight" Value="20" />
|
||||
<Setter Property="Background" Value="{DynamicResource TextBox_BG}" />
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBox_BD}" />
|
||||
<Setter Property="Padding" Value="5,1" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="TextBox_Outer"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border
|
||||
x:Name="TextBox_Inner"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
BorderBrush="{DynamicResource TextBox_InnerBD}"
|
||||
BorderThickness="0,0,1,1" />
|
||||
</Border>
|
||||
<Rectangle
|
||||
x:Name="Lfet_Boder"
|
||||
Width="1"
|
||||
Margin="1"
|
||||
HorizontalAlignment="Left"
|
||||
Fill="{DynamicResource TextBox_InnerLeft}" />
|
||||
<Rectangle
|
||||
x:Name="Top_Boder"
|
||||
Height="1"
|
||||
Margin="1"
|
||||
VerticalAlignment="Top"
|
||||
Fill="{DynamicResource TextBox_InnerTop}" />
|
||||
<Rectangle
|
||||
x:Name="Right_Boder"
|
||||
Width="1"
|
||||
Margin="1,2,1,1"
|
||||
HorizontalAlignment="Right"
|
||||
Fill="{DynamicResource TextBox_InnerRight}" />
|
||||
<Rectangle
|
||||
x:Name="Bottom_Boder"
|
||||
Height="1"
|
||||
Margin="1,1,2,1"
|
||||
VerticalAlignment="Bottom"
|
||||
Fill="{DynamicResource TextBox_InnerBottom}" />
|
||||
<ScrollViewer
|
||||
x:Name="PART_ContentHost"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="TextBox_Outer" Property="BorderBrush" Value="{DynamicResource TextBox_BD_Unable}" />
|
||||
<Setter TargetName="TextBox_Outer" Property="Background" Value="{DynamicResource TextBox_BG_Unable}" />
|
||||
<Setter TargetName="TextBox_Inner" Property="BorderBrush" Value="{DynamicResource TextBox_InnerBD_Unable}" />
|
||||
<Setter TargetName="Lfet_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerLeft_Unable}" />
|
||||
<Setter TargetName="Top_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerTop_Unable}" />
|
||||
<Setter TargetName="Right_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerRight_Unable}" />
|
||||
<Setter TargetName="Bottom_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerBottom_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type PasswordBox}">
|
||||
<Setter Property="Background" Value="{DynamicResource TextBox_BG}" />
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBox_BD}" />
|
||||
<Setter Property="FontFamily" Value="Times New Roman" />
|
||||
<Setter Property="PasswordChar" Value="●" />
|
||||
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type PasswordBox}">
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="TextBox_Outer"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<Border
|
||||
x:Name="TextBox_Inner"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
BorderBrush="{DynamicResource TextBox_InnerBD}"
|
||||
BorderThickness="0,0,1,1" />
|
||||
</Border>
|
||||
<Rectangle
|
||||
x:Name="Lfet_Boder"
|
||||
Width="1"
|
||||
Margin="1"
|
||||
HorizontalAlignment="Left"
|
||||
Fill="{DynamicResource TextBox_InnerLeft}" />
|
||||
<Rectangle
|
||||
x:Name="Top_Boder"
|
||||
Height="1"
|
||||
Margin="1"
|
||||
VerticalAlignment="Top"
|
||||
Fill="{DynamicResource TextBox_InnerTop}" />
|
||||
<Rectangle
|
||||
x:Name="Right_Boder"
|
||||
Width="1"
|
||||
Margin="1,2,1,1"
|
||||
HorizontalAlignment="Right"
|
||||
Fill="{DynamicResource TextBox_InnerRight}" />
|
||||
<Rectangle
|
||||
x:Name="Bottom_Boder"
|
||||
Height="1"
|
||||
Margin="1,1,2,1"
|
||||
VerticalAlignment="Bottom"
|
||||
Fill="{DynamicResource TextBox_InnerBottom}" />
|
||||
<ScrollViewer
|
||||
x:Name="PART_ContentHost"
|
||||
VerticalAlignment="Center"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="TextBox_Outer" Property="BorderBrush" Value="{DynamicResource TextBox_BD_Unable}" />
|
||||
<Setter TargetName="TextBox_Outer" Property="Background" Value="{DynamicResource TextBox_BG_Unable}" />
|
||||
<Setter TargetName="TextBox_Inner" Property="BorderBrush" Value="{DynamicResource TextBox_InnerBD_Unable}" />
|
||||
<Setter TargetName="Lfet_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerLeft_Unable}" />
|
||||
<Setter TargetName="Top_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerTop_Unable}" />
|
||||
<Setter TargetName="Right_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerRight_Unable}" />
|
||||
<Setter TargetName="Bottom_Boder" Property="Fill" Value="{DynamicResource TextBox_InnerBottom_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<ControlTemplate x:Key="ValidationTemplate">
|
||||
<DockPanel>
|
||||
<Border BorderBrush="Red" BorderThickness="1">
|
||||
<AdornedElementPlaceholder />
|
||||
</Border>
|
||||
<TextBlock FontSize="20" Foreground="Red">*</TextBlock>
|
||||
</DockPanel>
|
||||
</ControlTemplate>
|
||||
|
||||
<!-- TextBox_Top Style -->
|
||||
|
||||
<SolidColorBrush x:Key="TextBox_Top_BG" Color="#FFC8E8FF" />
|
||||
<SolidColorBrush x:Key="TextBox_Top_Shadow" Color="#FF1B1B1B" />
|
||||
<SolidColorBrush x:Key="TextBox_Top_Highlight_Right" Color="#B2AFC2D3" />
|
||||
<SolidColorBrush x:Key="TextBox_Top_Highlight_Bottom" Color="#FFD2D2D2" />
|
||||
|
||||
<Style x:Key="TextBox_Top" TargetType="{x:Type TextBox}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="Margin" Value="0,2,2,2" />
|
||||
<Setter Property="BorderThickness" Value="0,1,1,1" />
|
||||
<Setter Property="Background" Value="{DynamicResource TextBox_Top_BG}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Foreground_Black}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBox_Top_Highlight_Right}" />
|
||||
<Setter Property="Border.CornerRadius" Value="0,6,6,0" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Grid>
|
||||
<Border
|
||||
x:Name="TextBox_Bg"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ScrollViewer
|
||||
x:Name="PART_ContentHost"
|
||||
Margin="5,1"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="TextBox_Bg" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="TextBox_RightTop"
|
||||
BasedOn="{StaticResource TextBox_Top}"
|
||||
TargetType="{x:Type TextBox}" />
|
||||
|
||||
<!-- Login TextBox -->
|
||||
|
||||
<SolidColorBrush x:Key="TextBox_Login_BG" Color="#FF1E4F8A" />
|
||||
<SolidColorBrush x:Key="TextBox_Login_BD" Color="#FF0A2B58" />
|
||||
<SolidColorBrush x:Key="TextBox_BG_Unable" Color="Gainsboro" />
|
||||
<SolidColorBrush x:Key="TextBox_BD_Unable" Color="#FF747474" />
|
||||
|
||||
<Style x:Key="Login_TextBox" TargetType="{x:Type TextBox}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="BorderThickness" Value="2" />
|
||||
<Setter Property="MinHeight" Value="20" />
|
||||
<Setter Property="Background" Value="{StaticResource TextBox_Login_BG}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBox_Login_BD}" />
|
||||
<Setter Property="Padding" Value="5,1" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ScrollViewer
|
||||
x:Name="PART_ContentHost"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource TextBox_BD_Unable}" />
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource TextBox_BG_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Login_PasswordBox" TargetType="{x:Type PasswordBox}">
|
||||
<Setter Property="Background" Value="{StaticResource TextBox_Login_BG}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBox_Login_BD}" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="PasswordChar" Value="●" />
|
||||
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
|
||||
<Setter Property="BorderThickness" Value="2" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="5,1" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type PasswordBox}">
|
||||
<Border
|
||||
x:Name="BG"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ScrollViewer
|
||||
x:Name="PART_ContentHost"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource TextBox_BD_Unable}" />
|
||||
<Setter TargetName="BG" Property="Background" Value="{StaticResource TextBox_BG_Unable}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,279 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<SolidColorBrush x:Key="TreeView_BG_MouseOver" Color="#FFD6DCE5" />
|
||||
<SolidColorBrush x:Key="TreeView_BG_Select" Color="#FF47A2E7" />
|
||||
|
||||
<Style x:Key="TreeViewItemFocusVisual" />
|
||||
|
||||
<PathGeometry x:Key="TreeArrow" Figures="M0,0 L0,6 L6,0 z" />
|
||||
|
||||
<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Focusable" Value="False" />
|
||||
<Setter Property="Width" Value="16" />
|
||||
<Setter Property="Height" Value="16" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border
|
||||
Width="16"
|
||||
Height="16"
|
||||
Padding="3,0"
|
||||
Background="#00FFFFFF"
|
||||
Cursor="Hand">
|
||||
<Grid>
|
||||
<Grid
|
||||
Margin="-5"
|
||||
Background="Black"
|
||||
Opacity="0" />
|
||||
<Path
|
||||
x:Name="ExpandPath"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Data="{StaticResource TreeArrow}"
|
||||
Fill="Gray">
|
||||
<Path.RenderTransform>
|
||||
<RotateTransform Angle="135" CenterX="3" CenterY="3" />
|
||||
</Path.RenderTransform>
|
||||
</Path>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="ExpandPath" Property="Fill" Value="#FFFFBB00" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter TargetName="ExpandPath" Property="RenderTransform">
|
||||
<Setter.Value>
|
||||
<RotateTransform Angle="180" CenterX="3" CenterY="3" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter TargetName="ExpandPath" Property="Fill" Value="Black" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="ExpandPath" Property="Fill" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="{x:Type TreeViewItem}" TargetType="{x:Type TreeViewItem}">
|
||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Padding" Value="1,0,0,0" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="Background" Value="{DynamicResource TreeView_BG_MouseOver}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TreeViewItem}">
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" MinWidth="16" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" MinHeight="24" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
x:Name="Text_BG"
|
||||
Grid.ColumnSpan="3"
|
||||
Margin="-2,2,1,1"
|
||||
Background="{TemplateBinding Background}"
|
||||
Opacity="0" />
|
||||
<ToggleButton
|
||||
x:Name="Expander"
|
||||
ClickMode="Press"
|
||||
IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Style="{StaticResource ExpandCollapseToggleStyle}" />
|
||||
<Grid
|
||||
x:Name="TreeViewHeader"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
Cursor="Hand">
|
||||
<ContentPresenter
|
||||
x:Name="PART_Header"
|
||||
Margin="2,0,5,0"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ItemsPresenter
|
||||
x:Name="ItemsHost"
|
||||
Grid.Row="1"
|
||||
Grid.RowSpan="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger SourceName="TreeViewHeader" Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="Text_BG" Property="Opacity" Value="1" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Blue}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter TargetName="Text_BG" Property="BorderThickness" Value="0" />
|
||||
<Setter TargetName="Text_BG" Property="Opacity" Value="1" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_White}" />
|
||||
<Setter TargetName="Text_BG" Property="Background" Value="{DynamicResource TreeView_BG_Select}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsExpanded" Value="false">
|
||||
<Setter TargetName="ItemsHost" Property="Visibility" Value="Collapsed" />
|
||||
</Trigger>
|
||||
<Trigger Property="HasItems" Value="false">
|
||||
<Setter TargetName="Expander" Property="Visibility" Value="Hidden" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="VirtualizingStackPanel.IsVirtualizing" Value="true">
|
||||
<Setter Property="ItemsPanel">
|
||||
<Setter.Value>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel />
|
||||
</ItemsPanelTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="TreeView-SecondFloor"
|
||||
BasedOn="{StaticResource {x:Type TreeViewItem}}"
|
||||
TargetType="{x:Type TreeViewItem}">
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="{x:Type TreeView}" TargetType="{x:Type TreeView}">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="OverridesDefaultStyle" Value="True" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TreeView}">
|
||||
<Border
|
||||
x:Name="Border"
|
||||
BorderThickness="1"
|
||||
CornerRadius="1">
|
||||
<ScrollViewer
|
||||
Padding="4"
|
||||
CanContentScroll="False"
|
||||
Focusable="False">
|
||||
<ItemsPresenter />
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="TreeViewItemExtend" TargetType="{x:Type TreeViewItem}">
|
||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Padding" Value="1,0,0,0" />
|
||||
<Setter Property="FontFamily" Value="Arial" />
|
||||
<Setter Property="Background" Value="{DynamicResource TreeView_BG_MouseOver}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TreeViewItem}">
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" MinWidth="16" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" MinHeight="24" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
x:Name="Text_BG"
|
||||
Grid.Column="1"
|
||||
Margin="-2,2,1,1"
|
||||
Background="{TemplateBinding Background}"
|
||||
Opacity="0" />
|
||||
<ToggleButton
|
||||
x:Name="Expander"
|
||||
ClickMode="Press"
|
||||
IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Style="{StaticResource ExpandCollapseToggleStyle}" />
|
||||
<Grid
|
||||
x:Name="TreeViewHeader"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
Cursor="Hand">
|
||||
<ContentPresenter
|
||||
x:Name="PART_Header"
|
||||
Margin="2,0,5,0"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="Center"
|
||||
ContentSource="Header"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ItemsPresenter
|
||||
x:Name="ItemsHost"
|
||||
Grid.Row="1"
|
||||
Grid.RowSpan="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger SourceName="TreeViewHeader" Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="Text_BG" Property="Opacity" Value="1" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Blue}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter TargetName="Text_BG" Property="BorderThickness" Value="0" />
|
||||
<Setter TargetName="Text_BG" Property="Opacity" Value="1" />
|
||||
<Setter TargetName="Text_BG" Property="Background" Value="{DynamicResource TreeView_BG_Select}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsExpanded" Value="false">
|
||||
<Setter TargetName="ItemsHost" Property="Visibility" Value="Collapsed" />
|
||||
</Trigger>
|
||||
<Trigger Property="HasItems" Value="false">
|
||||
<Setter TargetName="Expander" Property="Visibility" Value="Hidden" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Foreground" Value="#FF9A9A9A" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="VirtualizingStackPanel.IsVirtualizing" Value="true">
|
||||
<Setter Property="ItemsPanel">
|
||||
<Setter.Value>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel />
|
||||
</ItemsPanelTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,297 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:styleableWindow="clr-namespace:WpfStyleableWindow.StyleableWindow;assembly=MECF.Framework.Common">
|
||||
|
||||
<!-- 主窗口背景色 -->
|
||||
<!--<Style TargetType="Window" x:Key="mainBackground">
|
||||
<Setter Property="Background">
|
||||
<Setter.Value>
|
||||
<ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主界面_切片.png" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>-->
|
||||
<ImageBrush x:Key="mainBackgroundImg" ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主界面_切片SORTER.png" />
|
||||
<ImageBrush x:Key="loginBackgroundImg" ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/login.png" />
|
||||
|
||||
<!-- 背景颜色 -->
|
||||
<!--<SolidColorBrush Color="#1E7FC3" x:Key="mainBackgroundColor" />-->
|
||||
|
||||
<SolidColorBrush x:Key="mainBackgroundColor" Color="#FF0671BC" />
|
||||
<SolidColorBrush x:Key="mainInnerBackgroundColor" Color="#FFA4E1F8" />
|
||||
|
||||
<SolidColorBrush x:Key="mainCenterBackgroundColor" Color="#FFDDECF9" />
|
||||
|
||||
<SolidColorBrush x:Key="viewBackgroundColor" Color="#669ACC" />
|
||||
|
||||
<!--<SolidColorBrush Color="#548C9B" x:Key="mainBackgroundColor" />
|
||||
|
||||
<SolidColorBrush Color="#548C9B" x:Key="viewBackgroundColor" />-->
|
||||
|
||||
<!--<SolidColorBrush Color="LightBlue" x:Key="titleBackgroundColor"/> // 427F7D afd5d5 -->
|
||||
|
||||
<!-- the brushes used in the template (use these to customize the window look along with the window style (see the bottom of this file) -->
|
||||
<SolidColorBrush x:Key="WindowColor" Color="Red" />
|
||||
<SolidColorBrush x:Key="WindowBackColor" Color="LightBlue" />
|
||||
<SolidColorBrush x:Key="WindowForeColor" Color="WhiteSmoke" />
|
||||
<SolidColorBrush x:Key="WindowForeHighlightColor" Color="WhiteSmoke" />
|
||||
<SolidColorBrush x:Key="WindowButtonColor" Color="DodgerBlue" />
|
||||
<SolidColorBrush x:Key="WindowButtonOverColor" Color="LightBlue" />
|
||||
<SolidColorBrush x:Key="WindowButtonPressedColor" Color="DarkBlue" />
|
||||
|
||||
<!-- BottomView Style -->
|
||||
<SolidColorBrush x:Key="BtmnavButton_FG" Color="#FF004294" />
|
||||
|
||||
<SolidColorBrush x:Key="BottomFrame_BG" Color="#FF0C206C" />
|
||||
|
||||
<!-- -red window brushes -->
|
||||
<!--<SolidColorBrush x:Key="WindowColor" Color="DarkRed"/>
|
||||
<SolidColorBrush x:Key="WindowBackColor" Color="DarkRed"/>
|
||||
<SolidColorBrush x:Key="WindowForeColor" Color="White"/>
|
||||
<SolidColorBrush x:Key="WindowForeHighlightColor" Color="White"/>
|
||||
<SolidColorBrush x:Key="WindowButtonColor" Color="OrangeRed"/>
|
||||
<SolidColorBrush x:Key="WindowButtonOverColor" Color="Orange"/>
|
||||
<SolidColorBrush x:Key="WindowButtonPressedColor" Color="DarkOrange"/>-->
|
||||
|
||||
<!-- The window template and it's components -->
|
||||
|
||||
<styleableWindow:WindowMinimizeCommand x:Key="MinimizeCommand" />
|
||||
<styleableWindow:WindowMaximizeCommand x:Key="MaximizeCommand" />
|
||||
<styleableWindow:WindowCloseCommand x:Key="CloseCommand" />
|
||||
|
||||
<Style x:Key="WindowButton" TargetType="{x:Type Button}">
|
||||
<Setter Property="Height" Value="25" />
|
||||
<Setter Property="Width" Value="25" />
|
||||
<Setter Property="Background" Value="{StaticResource WindowButtonColor}" />
|
||||
<Setter Property="Foreground" Value="{StaticResource WindowForeColor}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border Background="{TemplateBinding Background}">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter Property="Background" Value="{StaticResource WindowButtonColor}" />
|
||||
<Setter Property="Foreground" Value="{StaticResource WindowColor}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="{StaticResource WindowButtonOverColor}" />
|
||||
<Setter Property="Foreground" Value="{StaticResource WindowForeHighlightColor}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter Property="Background" Value="{StaticResource WindowButtonPressedColor}" />
|
||||
<Setter Property="Foreground" Value="{StaticResource WindowForeColor}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="WindowIcon" TargetType="{x:Type Image}">
|
||||
<Setter Property="Height" Value="25" />
|
||||
<Setter Property="Width" Value="25" />
|
||||
</Style>
|
||||
|
||||
<ControlTemplate x:Key="WindowTemplate" TargetType="{x:Type Window}">
|
||||
<Grid Background="{StaticResource WindowBackColor}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0" Margin="5,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="75" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label
|
||||
Grid.Column="0"
|
||||
Padding="0"
|
||||
styleableWindow:ControlDoubleClickBehavior.ExecuteCommand="{StaticResource CloseCommand}"
|
||||
styleableWindow:ControlDoubleClickBehavior.ExecuteCommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}">
|
||||
<Image
|
||||
Width="16"
|
||||
styleableWindow:ShowSystemMenuBehavior.LeftButtonShowAt="{Binding ElementName=WindowContent}"
|
||||
styleableWindow:ShowSystemMenuBehavior.TargetWindow="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
DockPanel.Dock="Left"
|
||||
Source="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}, Path=Icon}"
|
||||
Style="{StaticResource WindowIcon}" />
|
||||
</Label>
|
||||
<Label
|
||||
Grid.Column="1"
|
||||
Padding="3,0,0,0"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
styleableWindow:ControlDoubleClickBehavior.ExecuteCommand="{StaticResource MaximizeCommand}"
|
||||
styleableWindow:ControlDoubleClickBehavior.ExecuteCommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
styleableWindow:ShowSystemMenuBehavior.RightButtonShow="true"
|
||||
styleableWindow:ShowSystemMenuBehavior.TargetWindow="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
styleableWindow:WindowDragBehavior.LeftMouseButtonDrag="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Content="{TemplateBinding Property=Title}"
|
||||
DockPanel.Dock="Left"
|
||||
FontSize="16"
|
||||
Foreground="{StaticResource WindowForeColor}" />
|
||||
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
||||
<Button
|
||||
Command="{StaticResource MinimizeCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
DockPanel.Dock="Right"
|
||||
Style="{StaticResource WindowButton}">
|
||||
_
|
||||
</Button>
|
||||
<Button
|
||||
Command="{StaticResource MaximizeCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
DockPanel.Dock="Right"
|
||||
Style="{StaticResource WindowButton}">
|
||||
+
|
||||
</Button>
|
||||
<Button
|
||||
Command="{StaticResource CloseCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
DockPanel.Dock="Right"
|
||||
Style="{StaticResource WindowButton}">
|
||||
X
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}">
|
||||
<Grid>
|
||||
<AdornerDecorator>
|
||||
<ContentPresenter x:Name="WindowContent" />
|
||||
</AdornerDecorator>
|
||||
<ResizeGrip
|
||||
x:Name="WindowResizeGrip"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Bottom"
|
||||
IsTabStop="false"
|
||||
Visibility="Collapsed" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
<Thumb
|
||||
x:Name="ThumbTop"
|
||||
Height="6"
|
||||
Margin="14,0"
|
||||
VerticalAlignment="Top"
|
||||
styleableWindow:WindowResizeBehavior.TopResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeNS"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbTopLeft"
|
||||
Width="6"
|
||||
Height="6"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
styleableWindow:WindowResizeBehavior.TopLeftResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeNWSE"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbBottom"
|
||||
Height="6"
|
||||
Margin="14,0"
|
||||
VerticalAlignment="Bottom"
|
||||
styleableWindow:WindowResizeBehavior.BottomResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeNS"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbTopRight"
|
||||
Width="6"
|
||||
Height="6"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Top"
|
||||
styleableWindow:WindowResizeBehavior.TopRightResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeNESW"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbRight"
|
||||
Width="6"
|
||||
Margin="0,14"
|
||||
HorizontalAlignment="Right"
|
||||
styleableWindow:WindowResizeBehavior.RightResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeWE"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbBottomRight"
|
||||
Width="6"
|
||||
Height="6"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Bottom"
|
||||
styleableWindow:WindowResizeBehavior.BottomRightResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeNWSE"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbLeft"
|
||||
Width="6"
|
||||
Margin="0,14"
|
||||
HorizontalAlignment="Left"
|
||||
styleableWindow:WindowResizeBehavior.LeftResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeWE"
|
||||
Opacity="0" />
|
||||
<Thumb
|
||||
x:Name="ThumbBottomLeft"
|
||||
Width="6"
|
||||
Height="6"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Bottom"
|
||||
styleableWindow:WindowResizeBehavior.BottomLeftResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
|
||||
Cursor="SizeNESW"
|
||||
Opacity="0" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="ResizeMode" Value="CanResizeWithGrip" />
|
||||
<Condition Property="WindowState" Value="Normal" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter TargetName="WindowResizeGrip" Property="Visibility" Value="Visible" />
|
||||
</MultiTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<!--
|
||||
the custom window style and the window template
|
||||
Here you can customize the look of the window without having to touch the control template
|
||||
or comment out the brushes and create a new style (see the red style below)
|
||||
-->
|
||||
|
||||
<Style x:Key="CustomWindowStyle" TargetType="{x:Type Window}">
|
||||
<Setter Property="WindowStyle" Value="None" />
|
||||
<Setter Property="AllowsTransparency" Value="True" />
|
||||
<Setter Property="MinWidth" Value="200" />
|
||||
<Setter Property="MinHeight" Value="46" />
|
||||
<!-- CaptionHeight + ResizeBorderThickness * 2 -->
|
||||
<Setter Property="Background" Value="LightGray" />
|
||||
<Setter Property="BorderBrush" Value="DodgerBlue" />
|
||||
<Setter Property="BorderThickness" Value="2" />
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
|
||||
<Setter Property="Template" Value="{StaticResource WindowTemplate}" />
|
||||
|
||||
</Style>
|
||||
|
||||
<!-- the red style window -->
|
||||
<Style x:Key="RedWindowStyle" TargetType="{x:Type Window}">
|
||||
<Setter Property="WindowStyle" Value="None" />
|
||||
<Setter Property="AllowsTransparency" Value="True" />
|
||||
<Setter Property="MinWidth" Value="100" />
|
||||
<Setter Property="MinHeight" Value="46" />
|
||||
<Setter Property="Background" Value="white" />
|
||||
<Setter Property="BorderBrush" Value="DarkRed" />
|
||||
<Setter Property="BorderThickness" Value="2" />
|
||||
<Setter Property="Foreground" Value="DarkGray" />
|
||||
<Setter Property="Template" Value="{StaticResource WindowTemplate}" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user