|
@@ -0,0 +1,634 @@
|
|
|
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
+
|
|
|
+ <Style x:Key="ContextMenuStyle" TargetType="{x:Type ContextMenu}">
|
|
|
+ <Setter Property="SnapsToDevicePixels" Value="True" />
|
|
|
+ <Setter Property="Grid.IsSharedSizeScope" Value="true" />
|
|
|
+ <Setter Property="HasDropShadow" Value="True" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type ContextMenu}">
|
|
|
+ <Border Uid="Border_93">
|
|
|
+ <Border.Style>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="Tag" Value="{DynamicResource {x:Static SystemParameters.DropShadowKey}}" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource Self}}" Value="True">
|
|
|
+ <Setter Property="Effect">
|
|
|
+ <Setter.Value>
|
|
|
+ <DropShadowEffect
|
|
|
+ BlurRadius="4"
|
|
|
+ Opacity="0.8"
|
|
|
+ ShadowDepth="1" />
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Border.Style>
|
|
|
+ <Border
|
|
|
+ Uid="Border_50"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
+ <ScrollViewer
|
|
|
+ Uid="ScrollViewer_9"
|
|
|
+ CanContentScroll="True"
|
|
|
+ Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,
|
|
|
+ TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
|
|
+ <ItemsPresenter
|
|
|
+ Uid="ItemsPresenter_5"
|
|
|
+ KeyboardNavigation.DirectionalNavigation="Cycle"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
+ </ScrollViewer>
|
|
|
+ </Border>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="ContextToggleMenuStyle" TargetType="{x:Type ContextMenu}">
|
|
|
+ <Setter Property="SnapsToDevicePixels" Value="True" />
|
|
|
+ <Setter Property="Grid.IsSharedSizeScope" Value="true" />
|
|
|
+ <Setter Property="HasDropShadow" Value="True" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type ContextMenu}">
|
|
|
+ <Border Uid="Border_93">
|
|
|
+ <Border.Style>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="Tag" Value="{DynamicResource {x:Static SystemParameters.DropShadowKey}}" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource Self}}" Value="True">
|
|
|
+ <Setter Property="Effect">
|
|
|
+ <Setter.Value>
|
|
|
+ <DropShadowEffect
|
|
|
+ BlurRadius="4"
|
|
|
+ Opacity="0.8"
|
|
|
+ ShadowDepth="1" />
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Border.Style>
|
|
|
+ <Border
|
|
|
+ Uid="Border_50"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
+ <ScrollViewer
|
|
|
+ Uid="ScrollViewer_9"
|
|
|
+ CanContentScroll="True"
|
|
|
+ Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,
|
|
|
+ TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
|
|
+ <ItemsPresenter
|
|
|
+ Uid="ItemsPresenter_5"
|
|
|
+ KeyboardNavigation.DirectionalNavigation="Cycle"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
+ </ScrollViewer>
|
|
|
+ </Border>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <ControlTemplate x:Key="textbox" TargetType="{x:Type TextBoxBase}">
|
|
|
+ <Border
|
|
|
+ Name="border"
|
|
|
+ Background="{TemplateBinding Panel.Background}"
|
|
|
+ BorderBrush="{TemplateBinding Border.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Border.BorderThickness}"
|
|
|
+ SnapsToDevicePixels="True">
|
|
|
+ <ScrollViewer
|
|
|
+ Name="PART_ContentHost"
|
|
|
+ Focusable="False"
|
|
|
+ HorizontalScrollBarVisibility="Hidden"
|
|
|
+ VerticalScrollBarVisibility="Hidden" />
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
+ <Setter TargetName="border" Property="UIElement.Opacity" Value="0.56" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsMouseOver" Value="True">
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="#FF477EDE" />
|
|
|
+ <Setter TargetName="border" Property="Border.Background" Value="White" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsFocused" Value="True">
|
|
|
+ <Setter TargetName="border" Property="Border.Background" Value="White" />
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="#FF477EDE" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="UIElement.IsKeyboardFocused" Value="True">
|
|
|
+ <Setter TargetName="border" Property="Border.BorderBrush" Value="#569DE5" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+
|
|
|
+ <Style x:Key="AnnotationToggleStyle" TargetType="ToggleButton">
|
|
|
+ <Setter Property="Focusable" Value="False" />
|
|
|
+ <Setter Property="Width" Value="16" />
|
|
|
+ <Setter Property="Height" Value="16" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="ToggleButton">
|
|
|
+ <Border Name="Border">
|
|
|
+ <Polygon
|
|
|
+ Name="ExpandPath"
|
|
|
+ Fill="Black"
|
|
|
+ Points="2 4 6 8 10 4"
|
|
|
+ RenderTransformOrigin="0.5,0.5"
|
|
|
+ Stretch="Uniform">
|
|
|
+ <Polygon.RenderTransform>
|
|
|
+ <TransformGroup>
|
|
|
+ <TranslateTransform X="6" Y="6" />
|
|
|
+ <RotateTransform Angle="-90" />
|
|
|
+ <TranslateTransform X="-6" Y="6" />
|
|
|
+ </TransformGroup>
|
|
|
+ </Polygon.RenderTransform>
|
|
|
+ </Polygon>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsChecked" Value="True">
|
|
|
+ <Setter TargetName="ExpandPath" Property="RenderTransform">
|
|
|
+ <Setter.Value>
|
|
|
+ <RotateTransform Angle="0" />
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <SolidColorBrush x:Key="Expander.MouseOver.Circle.Stroke" Color="#FF5593FF" />
|
|
|
+ <SolidColorBrush x:Key="Expander.MouseOver.Circle.Fill" Color="#FFF3F9FF" />
|
|
|
+ <SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="#FF000000" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Pressed.Circle.Stroke" Color="#FF3C77DD" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Pressed.Circle.Fill" Color="#FFD9ECFF" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="#FF000000" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Disabled.Circle.Stroke" Color="#FFBCBCBC" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Disabled.Circle.Fill" Color="#FFE6E6E6" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="#FF707070" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Static.Circle.Fill" Color="#FFFFFFFF" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Static.Circle.Stroke" Color="#FF333333" />
|
|
|
+ <SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="#FF333333" />
|
|
|
+ <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>
|
|
|
+ <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
+ <Border Padding="{TemplateBinding Padding}">
|
|
|
+ <Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="19" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Ellipse
|
|
|
+ x:Name="circle"
|
|
|
+ Width="19"
|
|
|
+ Height="19"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Fill="{StaticResource Expander.Static.Circle.Fill}"
|
|
|
+ Stroke="{StaticResource Expander.Static.Circle.Stroke}"
|
|
|
+ Visibility="Collapsed" />
|
|
|
+ <Rectangle Grid.Column="1" Fill="#FFE2E3E6" />
|
|
|
+ <Polygon
|
|
|
+ x:Name="arrow"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,0,12,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Fill="Black"
|
|
|
+ Points="11 2 5 8 11 14"
|
|
|
+ SnapsToDevicePixels="false"
|
|
|
+ Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
+ StrokeThickness="2">
|
|
|
+ <Polygon.RenderTransform>
|
|
|
+ <TransformGroup>
|
|
|
+ <TranslateTransform X="8" Y="8" />
|
|
|
+ <ScaleTransform ScaleX="-1" ScaleY="1" />
|
|
|
+ <TranslateTransform X="25" Y="-8" />
|
|
|
+ </TransformGroup>
|
|
|
+ </Polygon.RenderTransform>
|
|
|
+ </Polygon>
|
|
|
+ <Polygon
|
|
|
+ x:Name="arrowdown"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,0,12,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Fill="Black"
|
|
|
+ Points="11 2 5 8 11 14"
|
|
|
+ SnapsToDevicePixels="false"
|
|
|
+ Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
+ StrokeThickness="2"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Polygon.RenderTransform>
|
|
|
+ <TransformGroup>
|
|
|
+ <TranslateTransform X="8" Y="8" />
|
|
|
+ <RotateTransform Angle="-90" />
|
|
|
+ <TranslateTransform X="-5" Y="22" />
|
|
|
+ </TransformGroup>
|
|
|
+ </Polygon.RenderTransform>
|
|
|
+ </Polygon>
|
|
|
+ <ContentPresenter
|
|
|
+ Grid.Column="0"
|
|
|
+ Margin="0,0,0,0"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ RecognizesAccessKey="True"
|
|
|
+ SnapsToDevicePixels="True" />
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsChecked" Value="true">
|
|
|
+ <Setter TargetName="arrow" Property="Visibility" Value="Collapsed" />
|
|
|
+ <Setter TargetName="arrowdown" Property="Visibility" Value="Visible" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsMouseOver" Value="true">
|
|
|
+ <Setter TargetName="circle" Property="Stroke" Value="{StaticResource Expander.MouseOver.Circle.Stroke}" />
|
|
|
+ <Setter TargetName="circle" Property="Fill" Value="{StaticResource Expander.MouseOver.Circle.Fill}" />
|
|
|
+ <Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
|
|
+ <Setter TargetName="arrowdown" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsPressed" Value="true">
|
|
|
+ <Setter TargetName="circle" Property="Stroke" Value="{StaticResource Expander.Pressed.Circle.Stroke}" />
|
|
|
+ <Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
|
|
|
+ <Setter TargetName="circle" Property="Fill" Value="{StaticResource Expander.Pressed.Circle.Fill}" />
|
|
|
+ <Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Pressed.Arrow.Stroke}" />
|
|
|
+ <Setter TargetName="arrowdown" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsEnabled" Value="false">
|
|
|
+ <Setter TargetName="circle" Property="Stroke" Value="{StaticResource Expander.Disabled.Circle.Stroke}" />
|
|
|
+ <Setter TargetName="circle" Property="Fill" Value="{StaticResource Expander.Disabled.Circle.Fill}" />
|
|
|
+ <Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
|
|
+ <Setter TargetName="arrowdown" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="GropExpanderHeader" TargetType="{x:Type Expander}">
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
|
+ <Setter Property="Background" Value="Transparent" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Stretch" />
|
|
|
+ <Setter Property="BorderBrush" Value="Transparent" />
|
|
|
+ <Setter Property="BorderThickness" Value="1" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Expander}">
|
|
|
+ <Border
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ CornerRadius="3"
|
|
|
+ SnapsToDevicePixels="true">
|
|
|
+ <DockPanel>
|
|
|
+ <ToggleButton
|
|
|
+ x:Name="HeaderSite"
|
|
|
+ MinWidth="0"
|
|
|
+ MinHeight="0"
|
|
|
+ Margin="1"
|
|
|
+ Padding="{TemplateBinding Padding}"
|
|
|
+ HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
+ VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
+ Content="{TemplateBinding Header}"
|
|
|
+ ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
+ ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
|
|
+ DockPanel.Dock="Top"
|
|
|
+ FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
|
|
+ FontFamily="{TemplateBinding FontFamily}"
|
|
|
+ FontSize="{TemplateBinding FontSize}"
|
|
|
+ FontStretch="{TemplateBinding FontStretch}"
|
|
|
+ FontStyle="{TemplateBinding FontStyle}"
|
|
|
+ FontWeight="{TemplateBinding FontWeight}"
|
|
|
+ Foreground="{TemplateBinding Foreground}"
|
|
|
+ IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
+ Style="{StaticResource ExpanderDownHeaderStyle}" />
|
|
|
+ <ContentPresenter
|
|
|
+ x:Name="ExpandSite"
|
|
|
+ Margin="{TemplateBinding Padding}"
|
|
|
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
+ DockPanel.Dock="Bottom"
|
|
|
+ Focusable="false"
|
|
|
+ Visibility="Collapsed" />
|
|
|
+ </DockPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsExpanded" Value="true">
|
|
|
+ <Setter TargetName="ExpandSite" Property="Visibility" Value="Visible" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsEnabled" Value="false">
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF" />
|
|
|
+ <SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF707070" />
|
|
|
+ <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>
|
|
|
+ <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" />
|
|
|
+ <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="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="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="PagesView_txtContext" TargetType="{x:Type TextBlock}">
|
|
|
+ <Setter Property="FontFamily" Value="Segoe UI" />
|
|
|
+ <Setter Property="FontSize" Value="12" />
|
|
|
+ <Setter Property="TextWrapping" Value="Wrap" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="PagesView_titleContext" TargetType="{x:Type TextBlock}">
|
|
|
+ <Setter Property="FontFamily" Value=" Segoe UI Semibold" />
|
|
|
+ <Setter Property="FontWeight" Value="SemiBold" />
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ </Style>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <Style x:Key="PageViewBtn" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
|
|
|
+ <Setter Property="Background" Value="#00000000" />
|
|
|
+ <Setter Property="BorderBrush" Value="#FF5593FF" />
|
|
|
+ <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="Focusable" Value="False" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Grid
|
|
|
+ x:Name="templateRoot"
|
|
|
+ Background="Transparent"
|
|
|
+ Focusable="False"
|
|
|
+ SnapsToDevicePixels="True">
|
|
|
+ <Border
|
|
|
+ x:Name="radioButtonBorder"
|
|
|
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ Focusable="False">
|
|
|
+ <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>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Static.Background" Color="#FFFFFFFF" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Static.Border" Color="#FF707070" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.MouseOver.Background" Color="White" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.MouseOver.Border" Color="Black" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.MouseOver.Glyph" Color="White" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Disabled.Background" Color="#FFE6E6E6" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Disabled.Border" Color="#FFBCBCBC" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Disabled.Glyph" Color="#FF707070" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Pressed.Background" Color="#FFD9ECFF" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Pressed.Border" Color="#FF3C77DD" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Pressed.Glyph" Color="White" />
|
|
|
+ <SolidColorBrush x:Key="OptionMark.Static.Glyph" Color="White" />
|
|
|
+ <ControlTemplate x:Key="MenuCheckbox" TargetType="{x:Type CheckBox}">
|
|
|
+ <Grid
|
|
|
+ x:Name="templateRoot"
|
|
|
+ Background="Transparent"
|
|
|
+ SnapsToDevicePixels="True">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border
|
|
|
+ x:Name="checkBoxBorder"
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="1">
|
|
|
+ <Grid x:Name="markGrid">
|
|
|
+ <Polygon
|
|
|
+ x:Name="optionMark"
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ Margin="1,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Fill="{StaticResource OptionMark.Static.Glyph}"
|
|
|
+ Opacity="0"
|
|
|
+ Points="15.5992424 4.59619408 16.3063492 5.30330086 5.69974747 15.9099026 0.396446609 10.6066017 1.10355339 9.89949494 5.7 14.496" />
|
|
|
+ <Rectangle
|
|
|
+ x:Name="indeterminateMark"
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ Fill="{StaticResource OptionMark.Static.Glyph}"
|
|
|
+ Opacity="0" />
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <ContentPresenter
|
|
|
+ x:Name="contentPresenter"
|
|
|
+ Grid.Column="1"
|
|
|
+ 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="checkBoxBorder" Property="Background" Value="{StaticResource OptionMark.MouseOver.Background}" />
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource OptionMark.MouseOver.Border}" />
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="BorderThickness" Value="2" />
|
|
|
+ <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource OptionMark.MouseOver.Glyph}" />
|
|
|
+ <Setter TargetName="indeterminateMark" Property="Fill" Value="{StaticResource OptionMark.MouseOver.Glyph}" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsEnabled" Value="false">
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource OptionMark.Disabled.Background}" />
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource OptionMark.Disabled.Border}" />
|
|
|
+ <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource OptionMark.Disabled.Glyph}" />
|
|
|
+ <Setter TargetName="indeterminateMark" Property="Fill" Value="{StaticResource OptionMark.Disabled.Glyph}" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsPressed" Value="true">
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource OptionMark.Pressed.Background}" />
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource OptionMark.Pressed.Border}" />
|
|
|
+ <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource OptionMark.Pressed.Glyph}" />
|
|
|
+ <Setter TargetName="indeterminateMark" Property="Fill" Value="{StaticResource OptionMark.Pressed.Glyph}" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsChecked" Value="true">
|
|
|
+ <Setter TargetName="optionMark" Property="Opacity" Value="1" />
|
|
|
+ <Setter TargetName="indeterminateMark" Property="Opacity" Value="0" />
|
|
|
+ <Setter TargetName="checkBoxBorder" Property="Background" Value="#FF0078D7" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsChecked" Value="{x:Null}">
|
|
|
+ <Setter TargetName="optionMark" Property="Opacity" Value="0" />
|
|
|
+ <Setter TargetName="indeterminateMark" Property="Opacity" Value="1" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+
|
|
|
+
|
|
|
+ <Style x:Key="zoomcomboxitemstyle" TargetType="ComboBoxItem">
|
|
|
+ <Setter Property="Template" Value="{StaticResource comboxitem}" />
|
|
|
+ <Setter Property="Width" Value="224" />
|
|
|
+ <Setter Property="Height" Value="32" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="FontFamily" Value="Segoe UI" />
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ </Style>
|
|
|
+</ResourceDictionary>
|