123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style x:Key="OptionMarkFocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="14,0,0,0"
- SnapsToDevicePixels="true"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="FocusVisual">
- <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>
- <SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF" />
- <SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF707070" />
- <SolidColorBrush x:Key="RadioButton.MouseOver.Background" Color="#1A000000" />
- <SolidColorBrush x:Key="RadioButton.MouseOver.Border" Color="#FF5593FF" />
- <SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FFF3F9FF" />
- <SolidColorBrush x:Key="RadioButton.Disabled.Background" Color="#00000000" />
- <SolidColorBrush x:Key="RadioButton.Disabled.Border" Color="#FFBCBCBC" />
- <SolidColorBrush x:Key="RadioButton.Disabled.Glyph" Color="#FF707070" />
- <SolidColorBrush x:Key="RadioButton.Pressed.Background" Color="#26000000" />
- <SolidColorBrush x:Key="RadioButton.Pressed.Border" Color="#FF3C77DD" />
- <SolidColorBrush x:Key="RadioButton.Pressed.Glyph" Color="#1A477EDE" />
- <SolidColorBrush x:Key="RadioButton.Static.Glyph" Color="#FF212121" />
- <!-- 填充颜色 -->
- <SolidColorBrush x:Key="Separator.fill" Color="#1A000000" />
- <SolidColorBrush x:Key="MenuIco.fill" Color="#000000" />
- <Style x:Key="PageViewRadioBtn" TargetType="{x:Type RadioButton}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
- <Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="60" />
- <Setter Property="Height" Value="80" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid
- x:Name="templateRoot"
- Background="Transparent"
- SnapsToDevicePixels="True">
- <Border
- x:Name="radioButtonBorder"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <Rectangle
- x:Name="optionMark"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Opacity="0" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="HasContent" Value="true">
- <Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}" />
- <Setter Property="Padding" Value="4,-1,0,0" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.MouseOver.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.MouseOver.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.MouseOver.Glyph}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Disabled.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Disabled.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Disabled.Glyph}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Pressed.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Pressed.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="optionMark" Property="Opacity" Value="1" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="SplitModeViewRadioBtn" TargetType="{x:Type RadioButton}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
- <Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="78" />
- <Setter Property="Height" Value="80" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid
- x:Name="templateRoot"
- Background="Transparent"
- SnapsToDevicePixels="True">
- <Border
- x:Name="radioButtonBorder"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <Rectangle
- x:Name="optionMark"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Opacity="0" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="HasContent" Value="true">
- <Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}" />
- <Setter Property="Padding" Value="4,-1,0,0" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.MouseOver.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.MouseOver.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.MouseOver.Glyph}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Disabled.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Disabled.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Disabled.Glyph}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Pressed.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Pressed.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="optionMark" Property="Opacity" Value="1" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--最近列表列表模式单选按钮-->
- <Style x:Key="ListModeRadioBtnStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Border CornerRadius="4" x:Name="root" Background="#EEF2F3">
-
- <Grid x:Name="templateRoot" SnapsToDevicePixels="True" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border x:Name="radioButtonBorder" Visibility="Collapsed" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="100" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1,1,2,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
- <Grid x:Name="markGrid" Margin="2">
- <Ellipse x:Name="optionMark" Fill="{StaticResource RadioButton.Static.Glyph}" MinWidth="6" MinHeight="6" Opacity="0"/>
- </Grid>
- </Border>
- <ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
- </ContentPresenter>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="HasContent" Value="true">
- <Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}"/>
- <Setter Property="Padding" Value="4,-1,0,0"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.MouseOver.Border}"/>
- <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.MouseOver.Glyph}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Disabled.Border}"/>
- <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Disabled.Glyph}"/>
- <Setter Property="Border.Background" TargetName="root">
- <Setter.Value>
- <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="White" Offset="0.0" />
- <GradientStop Color="#CFCFCF" Offset="0.5" />
- <GradientStop Color="White" Offset="0.0" />
- </LinearGradientBrush>
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Background}"/>
- <Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Border}"/>
- <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Pressed.Glyph}"/>
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter Property="Opacity" TargetName="optionMark" Value="1"/>
- <Setter Property="Border.Background" TargetName="root" Value="White">
-
- </Setter>
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter Property="Opacity" TargetName="optionMark" Value="0.56"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="LocationRadioBtnStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="72" />
- <Setter Property="Height" Value="80" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid
- x:Name="templateRoot"
- Background="Transparent"
- SnapsToDevicePixels="True">
- <Border
- x:Name="radioButtonBorder"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <Rectangle
- x:Name="optionMark"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Opacity="0" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.MouseOver.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.MouseOver.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.MouseOver.Glyph}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Disabled.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Disabled.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Disabled.Glyph}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Pressed.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Pressed.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="optionMark" Property="Opacity" Value="1" />
- <Setter TargetName="optionMark" Property="Fill" Value="Black" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--悬浮灰色背景单选按钮-->
- <Style x:Key="GreyBgRadioBtnStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Foreground" Value="#252629"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Border x:Name="templateRoot" Background="{TemplateBinding Background}" CornerRadius="4" SnapsToDevicePixels="True">
- <ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="HasContent" Value="true">
- <Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}"/>
- <Setter Property="Padding" Value="4,-1,0,0"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="templateRoot" Value="#EDEEF0"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Opacity" TargetName="templateRoot" Value="0.5"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter Property="Background" TargetName="templateRoot">
- <Setter.Value>
- <SolidColorBrush Color="#CED0D4" Opacity="0.6"/>
- </Setter.Value>
- </Setter>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="#CED0D4"/>
- <Setter Property="Foreground" Value="#616469"/>
- <Setter Property="BorderThickness" TargetName="templateRoot" Value="1"/>
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="BatchButton" TargetType="{x:Type RadioButton}">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="Background" Value="#F7F8FA"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <ControlTemplate.Resources>
- <Storyboard x:Key="Storyboard1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="bd">
- <EasingColorKeyFrame KeyTime="0" Value="White"/>
- <EasingColorKeyFrame KeyTime="0:0:0.3" Value="#FFAFAFAF"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="Storyboard2">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="bd">
- <EasingColorKeyFrame KeyTime="0" Value="#FFAFAFAF"/>
- <EasingColorKeyFrame KeyTime="0:0:0.5" Value="#D3D3D3"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>
- <BulletDecorator Background="Transparent">
- <Border x:Name="bd" HorizontalAlignment="Center" Background="White" CornerRadius="5">
- <Border.OpacityMask>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="Black" Offset="0"/>
- <GradientStop Color="White" Offset="1"/>
- </LinearGradientBrush>
- </Border.OpacityMask>
- <ContentPresenter Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </BulletDecorator>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="bd" Property="Background" Value="gray" />
- </Trigger>
- <Trigger Property="IsChecked" Value="false">
- <Setter TargetName="bd" Property="Background" Value="{x:Null}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Trigger.EnterActions>
- <BeginStoryboard x:Name="Storyboard2_BeginStoryboard" Storyboard="{StaticResource Storyboard2}"/>
- </Trigger.EnterActions>
- <Setter TargetName="bd" Property="Background" Value="#FF606060" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
- </MultiTrigger.EnterActions>
- <MultiTrigger.Conditions>
- <Condition Property="IsMouseOver" Value="True"/>
- <Condition Property="IsChecked" Value="False"/>
- </MultiTrigger.Conditions>
- <Setter TargetName="bd" Property="Background" Value="Red" />
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|