123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576 |
- <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:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
- xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
- 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}}" StrokeThickness="1" StrokeDashArray="1 2"/>
- </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 BorderThickness="1" BorderBrush="{DynamicResource Color_BD_Button_InnerGrow}">
- <Border.Effect>
- <BlurEffect/>
- </Border.Effect>
- </Border>
- <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_Button_Highlight}" Opacity="0">
- <Border.Effect>
- <BlurEffect/>
- </Border.Effect>
- </Border>
- <TextBlock Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock.Effect>
- <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="#FF008A40"/>
- </TextBlock.Effect>
- </TextBlock>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Opacity" TargetName="Highlight" Value="0.5"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Opacity" TargetName="Highlight" 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" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{DynamicResource Color_BD_WindowButton}" Cursor="Hand" Background="{DynamicResource Color_BG_WindowButton}">
- <Grid>
- <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}">
- <Border.Effect>
- <BlurEffect/>
- </Border.Effect>
- </Border>
- <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_WindowButton_Highlight}" Opacity="0">
- <Border.Effect>
- <BlurEffect/>
- </Border.Effect>
- </Border>
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
- </ContentPresenter>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsKeyboardFocused" Value="true"/>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Opacity" TargetName="Highlight" 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" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{DynamicResource Color_BD_WindowButton}" Cursor="Hand" Background="{DynamicResource Color_BG_WindowButton}">
- <Grid>
- <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}">
- <Border.Effect>
- <BlurEffect/>
- </Border.Effect>
- </Border>
- <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_WindowButton_Highlight}" Opacity="0">
- <Border.Effect>
- <BlurEffect/>
- </Border.Effect>
- </Border>
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
- </ContentPresenter>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsKeyboardFocused" Value="true"/>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Opacity" TargetName="Highlight" 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 Color="#FF64D7FF" Offset="1"></GradientStop>
- <GradientStop Color="White" Offset="0.2"></GradientStop>
- </RadialGradientBrush>
- <SolidColorBrush x:Key="OnOffButton_Off" Color="Gray"/>
- <SolidColorBrush x:Key="OnOffButton_BD" Color="#FF004900"/>
- <RadialGradientBrush x:Key="OnOffButton_BG">
- <GradientStop Color="#FF003F0F" Offset="0.25"/>
- <GradientStop Color="#FF067421" Offset="1"/>
- </RadialGradientBrush>
- <RadialGradientBrush x:Key="OnOffButton_BG_Highlight">
- <GradientStop Color="#FF89FFA6" Offset="0"/>
- <GradientStop Color="#FF00FF3F" Offset="1"/>
- </RadialGradientBrush>
- <RadialGradientBrush x:Key="OnOffButton_BG_Unable">
- <GradientStop Color="#FF939393" Offset="0"/>
- <GradientStop Color="#FFCACACA" Offset="1"/>
- </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" Stroke="{DynamicResource OnOffButton_BD}" StrokeThickness="1" Fill="{DynamicResource OnOffButton_Off}"/>
- <Ellipse x:Name="Highlight" Margin="1" Visibility="Collapsed" Fill="{DynamicResource OnOffButton_BG_Highlight}">
- <Ellipse.Effect>
- <BlurEffect Radius="5"/>
- </Ellipse.Effect>
- </Ellipse>
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Content=""/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="ON" Value="True">
- <Setter Property="Visibility" TargetName="Highlight" Value="Visible"/>
- </Trigger>
- <Trigger Property="ON" Value="False">
- <Setter Property="Visibility" TargetName="Highlight" Value="Collapsed"/>
- </Trigger>
- <Trigger Property="IsDefaulted" Value="True"/>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Fill" TargetName="BG" Value="{DynamicResource OnOffButton_BG_Unable}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="OperatioNButton_BG_Outer" EndPoint="0.238,0.239" StartPoint="0.85,0.864">
- <GradientStop Color="#FF3D3D3D" Offset="0"/>
- <GradientStop Color="White" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="OperatioNButton_BD_Outer" EndPoint="0.104,0.195" StartPoint="1.192,1.066">
- <GradientStop Color="#FF5C5C5C" Offset="0"/>
- <GradientStop Color="#FFE0E0E0" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="OperatioNButton_BD_Inner" EndPoint="1.141,1.123" StartPoint="0.155,0.138">
- <GradientStop Color="Black" Offset="0"/>
- <GradientStop Color="White" Offset="1"/>
- </LinearGradientBrush>
- <RadialGradientBrush x:Key="OperatioNButton_BG" GradientOrigin="0.234,0.241">
- <GradientStop Color="#FF004911" Offset="0"/>
- <GradientStop Color="#FF001D07" Offset="1"/>
- </RadialGradientBrush>
- <RadialGradientBrush x:Key="OperatioNButton_BG_Highlight" GradientOrigin="0.234,0.241">
- <GradientStop Color="#FF9EFFB6" Offset="0"/>
- <GradientStop Color="#FF00D633" Offset="1"/>
- </RadialGradientBrush>
- <LinearGradientBrush x:Key="OperatioNButton_BG_Outer_Unable" EndPoint="0.104,0.195" StartPoint="1.192,1.066">
- <GradientStop Color="Black" Offset="0"/>
- <GradientStop Color="#FFD0D0D0" Offset="1"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="OperatioNButton_BD_Outer_Unable" Color="#FF939393"/>
- <LinearGradientBrush x:Key="OperatioNButton_BD_Inner_Unable" EndPoint="1.141,1.123" StartPoint="0.155,0.138">
- <GradientStop Color="Black" Offset="0"/>
- <GradientStop Color="#FFD0D0D0" Offset="1"/>
- </LinearGradientBrush>
- <RadialGradientBrush x:Key="OperatioNButton_BG_Unable" GradientOrigin="0.234,0.241">
- <GradientStop Color="#FF858585" Offset="0"/>
- <GradientStop Color="#FF4E4E4E" Offset="1"/>
- </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" Visibility="Collapsed" Fill="{DynamicResource OperatioNButton_BG_Highlight}" >
- <Ellipse.Effect>
- <DropShadowEffect ShadowDepth="0" Color="White" BlurRadius="3"/>
- </Ellipse.Effect>
- </Ellipse>
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Content=""/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="ON" Value="True">
- <Setter Property="Visibility" TargetName="Open" Value="Visible"/>
- </Trigger>
- <Trigger Property="ON" Value="False">
- <Setter Property="Visibility" TargetName="Open" Value="Collapsed"/>
- </Trigger>
- <Trigger Property="IsDefaulted" Value="True"/>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Fill" TargetName="BG" Value="{DynamicResource OperatioNButton_BG_Outer_Unable}"/>
- <Setter Property="Stroke" TargetName="BG" Value="{DynamicResource OperatioNButton_BD_Outer_Unable}"/>
- <Setter Property="Fill" TargetName="Inner_BG" Value="{DynamicResource OperatioNButton_BD_Inner_Unable}"/>
- <Setter Property="Fill" TargetName="Close" 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" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Cursor="Hand">
- <Border x:Name="Inner_BD" BorderBrush="{StaticResource Button_BD_Shadow}" BorderThickness="0,0,1,1" CornerRadius="3" Padding="5,1">
- <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
- </ContentPresenter>
- </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" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Cursor="Hand">
- <Grid>
- <Border x:Name="Inner_BG" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="White" Opacity="0"/>
- <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
- <ContentPresenter.Effect>
- <DropShadowEffect BlurRadius="0" ShadowDepth="1" Color="White" Direction="135"/>
- </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 Property="Effect" TargetName="contentpresenter">
- <Setter.Value>
- <DropShadowEffect BlurRadius="0" Color="White" Direction="135" Opacity="0" ShadowDepth="1"/>
- </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" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#00D1DEED" Offset="0"/>
- <GradientStop Color="#008EABD0" Offset="1"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="TopButton_BG_MouseOver" Color="#FF4F71B6"/>
- <LinearGradientBrush x:Key="TopButton_InnerBG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#00D1E7ED" Offset="0"/>
- <GradientStop Color="#0043BFE9" Offset="1"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="TopButton_BD_Highlight" Color="White"/>
- <SolidColorBrush x:Key="TopButton_BG_Press" Color="#FF4F71B6"/>
- <LinearGradientBrush x:Key="TopButton_InnerBG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#00D8E7F5" Offset="0"/>
- <GradientStop Color="#00A3C7E9" Offset="1"/>
- </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}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Cursor="Hand">
- <Border x:Name="border_shadow" BorderBrush="{DynamicResource TextBox_Top_Shadow}" BorderThickness="0,0,1,1" CornerRadius="5">
- <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
- </ContentPresenter>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopButton_BD_Highlight}"/>
- <Setter Property="Background" TargetName="border" Value="{StaticResource TopButton_BG_Highlight}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopButton_BD_Highlight}"/>
- <Setter Property="Background" TargetName="border" Value="{StaticResource TopButton_BG_Highlight}"/>
- <Setter Property="FontSize" Value="15"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopButton_BD_Unable}"/>
- <Setter Property="Background" TargetName="border" Value="{StaticResource TopButton_BG_Unable}"/>
- <Setter Property="BorderBrush" TargetName="border_shadow" 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" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF5E5E5E" Offset="0"/>
- <GradientStop Color="#FF474B4E" Offset="1"/>
- <GradientStop Color="#FF242424" Offset="0.5"/>
- <GradientStop Color="#FF1F1F1F" Offset="0.75"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="TopMenuButton_BG_Highlight" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF0076B2" Offset="0"/>
- <GradientStop Color="#FF0076B2" Offset="1"/>
- <GradientStop Color="#FF00466A" Offset="0.5"/>
- <GradientStop Color="#FF00466A" Offset="0.75"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="TopMenuButton_BD_Highlight" Color="#FFF0FAFF"/>
- <LinearGradientBrush x:Key="TopMenuButton_BG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FFAFAFAF" Offset="0"/>
- <GradientStop Color="#FFAFAFAF" Offset="1"/>
- <GradientStop Color="#FF6C6C6C" Offset="0.5"/>
- <GradientStop Color="#FF7A7A7A" Offset="0.25"/>
- <GradientStop Color="#FF7A7A7A" Offset="0.75"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="TopMenuButton_BD_Unable" Color="#FFB6B6B6"/>
- <LinearGradientBrush x:Key="LogoutBtn_InnerBG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF75D5ED" Offset="0"/>
- <GradientStop Color="#FF03B5E2" Offset="1"/>
- <GradientStop Color="#FF45C8E9" Offset="0.49"/>
- <GradientStop Color="#FF00A0C8" Offset="0.5"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="LogoutBtn_BG_MouseOver" Color="#FF005C8D"/>
- <SolidColorBrush x:Key="LogoutBtn_BD" Color="#FF9FBADE"/>
- <LinearGradientBrush x:Key="LogoutBtn_InnerBG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FFBCE5EF" Offset="0"/>
- <GradientStop Color="#FF02C5F5" Offset="1"/>
- <GradientStop Color="#FF73D5ED" Offset="0.49"/>
- <GradientStop Color="#FF02C5F5" Offset="0.5"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="LogoutBtn_BG_Press" Color="#FF02A6D0"/>
- <LinearGradientBrush x:Key="LogoutBtn_InnerBG" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF7EA5CD" Offset="0"/>
- <GradientStop Color="#FF305F9D" Offset="1"/>
- <GradientStop Color="#FF4D83B8" Offset="0.495"/>
- <GradientStop Color="#FF27549D" Offset="0.5"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="LogoutBtn_BG" Color="#FF2C4566"/>
- <SolidColorBrush x:Key="LogoutBtn_Shadow" Color="#FF0C1F39"/>
- <Style x:Key="Logout_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource TopButton}"/>
- <!-- 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" BorderThickness="2,2,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{StaticResource Login_Btn_BD_Highlight}" Background="{StaticResource Login_Btn_BG}" Cursor="Hand">
- <Border x:Name="Inner_BD" BorderThickness="0,0,2,2" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{StaticResource Login_Btn_BD_Shadow}">
- <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
- <ContentPresenter.Effect>
- <DropShadowEffect BlurRadius="0" ShadowDepth="1.5" Direction="315"/>
- </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 Property="Effect" TargetName="contentpresenter">
- <Setter.Value>
- <DropShadowEffect BlurRadius="0" Color="White" Direction="315" Opacity="0" ShadowDepth="1"/>
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|