|
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
- xmlns:Themes1="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
- xmlns:con="clr-namespace:BPASmartClient.SCADAControl.Converters"
- xmlns:ctrl="clr-namespace:BPASmartClient.SCADAControl.CustomerControls"
- xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore">
-
- <SolidColorBrush x:Key="AccentBrush" Color="#2B79E2" />
- <SolidColorBrush x:Key="ControlBorderBrush" Color="LightGray" />
- <SolidColorBrush x:Key="ControlBackground" Color="White" />
- <SolidColorBrush x:Key="ControlForeground" Color="Black" />
-
-
- <SolidColorBrush x:Key="foreground" Color="#a2c2e8" />
- <SolidColorBrush x:Key="borderBrush" Color="#FF074B92" />
- <SolidColorBrush x:Key="Titleforeground" Color="#FF07D7FF" />
- <SolidColorBrush x:Key="DataGridColumnHeaderColor" Color="#00c2f4" />
- <SolidColorBrush x:Key="LabelColor" Color="#FF00EEF3" />
- <SolidColorBrush x:Key="MainTitleforeground" Color="#feffff" />
- <SolidColorBrush x:Key="ButtonSelectForeground" Color="#4fade8" />
- <SolidColorBrush x:Key="ButtonUnSelectForeground" Color="#3afdff" />
- <SolidColorBrush x:Key="MeunSelectForeground" Color="#8f723c" />
- <SolidColorBrush x:Key="MeunUnSelectForeground" Color="White" />
- <LinearGradientBrush x:Key="NormalBackground" StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStopCollection>
- <GradientStop Color="White" />
- <GradientStop Offset="0.5" Color="#D0D0D0" />
- <GradientStop Offset="1" Color="#E3E3E3" />
- </GradientStopCollection>
- </LinearGradientBrush>
-
- <con:HalfNumberConverter x:Key="HalfNumber" />
-
- <FontFamily x:Key="Digital">
- pack://application:,,,/Fonts/#DS-Digital
- </FontFamily>
-
- <Style TargetType="{x:Type ctrl:ArcGauge}">
- <Setter Property="Background" Value="#646464" />
- <Setter Property="Foreground" Value="Black" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:ArcGauge}">
- <Border Margin="10">
- <Grid Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}">
- <Ellipse Fill="#FF3B3B3B" />
- <Grid Margin="2" RenderTransformOrigin="0.5,0.5">
- <Grid.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="{Binding Path=Angle, ElementName=PointRotate}" />
- </TransformGroup>
- </Grid.RenderTransform>
- <Ellipse
- Width="16"
- Height="14"
- VerticalAlignment="Top"
- Fill="Orange">
- <Ellipse.Effect>
- <BlurEffect Radius="12" />
- </Ellipse.Effect>
- </Ellipse>
- </Grid>
-
- <Grid
- x:Name="bdGrid"
- Margin="12"
- ClipToBounds="True"
- UseLayoutRounding="True">
- <Ellipse>
- <Ellipse.Fill>
- <RadialGradientBrush>
- <GradientStop Color="#4D000000" />
- </RadialGradientBrush>
- </Ellipse.Fill>
- </Ellipse>
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="2*" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Ellipse
- Grid.Row="1"
- Grid.Column="1"
- Stroke="#464646"
- StrokeThickness="1" />
- <Ellipse
- Grid.Row="1"
- Grid.Column="1"
- Margin="4"
- Stroke="#959595"
- StrokeThickness="6" />
- <Ellipse
- Grid.Row="1"
- Grid.Column="1"
- Margin="14"
- Stroke="#464646"
- StrokeThickness="1" />
- </Grid>
-
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Path
- Margin="0,30,0,0"
- HorizontalAlignment="Center"
- Data="M5,0 5,0 10,120 0,120z"
- Fill="#0FA9CE"
- RenderTransformOrigin="0.5,1"
- Stretch="Uniform">
- <Path.RenderTransform>
- <TransformGroup>
- <RotateTransform x:Name="PointRotate" />
- </TransformGroup>
- </Path.RenderTransform>
- </Path>
- </Grid>
-
- <Ellipse
- Width="28"
- Height="28"
- Fill="Black">
- <Ellipse.Effect>
- <DropShadowEffect
- BlurRadius="16"
- Direction="0"
- ShadowDepth="0"
- Color="#0FA9CE" />
- </Ellipse.Effect>
- </Ellipse>
-
- <Border
- Margin="0,0,0,12"
- Padding="4,2"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Background="Black"
- BorderBrush="#10ABD1"
- BorderThickness="2">
- <TextBlock
- Width="46"
- FontSize="16"
- Foreground="White"
- Text="{Binding Value, RelativeSource={RelativeSource Mode=TemplatedParent}, StringFormat={}{0:f1}}"
- TextAlignment="Center" />
- </Border>
- </Grid>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:SwitchButton}">
- <Setter Property="Background" Value="{StaticResource ControlBackground}" />
- <Setter Property="BorderBrush" Value="LightGray" />
- <Setter Property="Foreground" Value="Gray" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ctrl:SwitchButton">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ActualHeight, Converter={StaticResource HalfNumber}}">
- <Grid>
- <Ellipse
- x:Name="ELLIPSE"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Fill="Gray"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{StaticResource ControlBorderBrush}"
- StrokeThickness="1">
- <Ellipse.RenderTransform>
- <TransformGroup>
- <TranslateTransform x:Name="TranslateX" X="2" />
- </TransformGroup>
- </Ellipse.RenderTransform>
- </Ellipse>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="swith_button" TargetType="{x:Type ctrl:SwitchButton}">
- <Setter Property="Background" Value="{StaticResource ControlBackground}" />
- <Setter Property="BorderBrush" Value="LightGray" />
- <Setter Property="Foreground" Value="Gray" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ctrl:SwitchButton">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ActualHeight, Converter={StaticResource HalfNumber}}">
- <Grid>
- <Ellipse
- x:Name="ELLIPSE"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Fill="Gray"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{StaticResource ControlBorderBrush}"
- StrokeThickness="1">
- <Ellipse.RenderTransform>
- <TransformGroup>
- <TranslateTransform x:Name="TranslateX" X="2" />
- </TransformGroup>
- </Ellipse.RenderTransform>
- </Ellipse>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="ctrl:DigitalNumber">
- <Setter Property="Background" Value="#FF1A1E22" />
- <Setter Property="Foreground" Value="#FF0AA74D" />
- <Setter Property="NumberValue" Value="0.01" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ctrl:DigitalNumber">
- <Grid Background="{TemplateBinding Background}">
- <TextBlock
- x:Name="line"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="{StaticResource Digital}"
- FontSize="{TemplateBinding FontSize}"
- Foreground="{TemplateBinding Foreground}"
- Text="{Binding NumberValue, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ctrl:DigitalNumber}, Mode=TwoWay}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:KnobButton}">
- <Setter Property="Background" Value="#0068F4" />
- <Setter Property="BorderBrush" Value="LightGray" />
- <Setter Property="Foreground" Value="Black" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ctrl:KnobButton">
- <Grid x:Name="bdGrid" Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}">
- <Grid Margin="16" RenderTransformOrigin="0.5,0.5">
- <Grid.RenderTransform>
- <RotateTransform x:Name="rotatevalue" Angle="00" />
- </Grid.RenderTransform>
-
- <Ellipse
- Margin="4"
- Fill="#FFF6F6F6"
- Stroke="{StaticResource ControlBorderBrush}">
- <Ellipse.Effect>
- <DropShadowEffect
- BlurRadius="8"
- Direction="-90"
- ShadowDepth="2"
- Color="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Background.(SolidColorBrush.Color)}" />
- </Ellipse.Effect>
- </Ellipse>
- <Ellipse
- Width="8"
- Height="8"
- Margin="12"
- VerticalAlignment="Bottom"
- Fill="{TemplateBinding Background}" />
- </Grid>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{TemplateBinding FontSize}"
- Foreground="{TemplateBinding Foreground}"
- Text="{Binding Value, RelativeSource={RelativeSource Mode=TemplatedParent}, StringFormat={}{0:F2}}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheTimer}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:TheTimer}">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <Grid>
- <Image RenderOptions.BitmapScalingMode="Fant" Source="../Images/timericon.png" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheButton}">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/button2.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:TheButton}">
- <Border
- x:Name="BD"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Cursor="Hand">
- <StackPanel
- HorizontalAlignment="Center"
- Cursor="Hand"
- Orientation="Horizontal">
- <TextBlock
- x:Name="textBlock"
- Margin="10,0,10,0"
- VerticalAlignment="Center"
- Cursor="Hand"
- FontFamily="{TemplateBinding FontFamily}"
- FontSize="{TemplateBinding FontSize}"
- FontWeight="{TemplateBinding FontWeight}"
- Foreground="{TemplateBinding Foreground}"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <!--<Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background" >
- <Setter.Value>
- <ImageBrush ImageSource="../Images/button2.png" />
- </Setter.Value>
- </Setter>
- -->
- <!--<Setter TargetName="textBlock" Property="Foreground" Value="{TemplateBinding Foreground}" />-->
- <!--
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background" >
- <Setter.Value>
- <ImageBrush ImageSource="../Images/button2.png" />
- </Setter.Value>
- </Setter>
- -->
- <!--<Setter TargetName="textBlock" Property="Foreground" Value="{TemplateBinding Foreground}" />-->
- <!--
- </Trigger>-->
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheToggleButton}">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/button1.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:TheToggleButton}">
- <Border
- x:Name="BD"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Cursor="Hand">
- <StackPanel
- HorizontalAlignment="Center"
- Cursor="Hand"
- Orientation="Horizontal">
- <TextBlock
- x:Name="textBlock"
- Margin="10,0,10,0"
- VerticalAlignment="Center"
- Cursor="Hand"
- FontFamily="{TemplateBinding FontFamily}"
- FontSize="{TemplateBinding FontSize}"
- FontWeight="{TemplateBinding FontWeight}"
- Foreground="{TemplateBinding Foreground}"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="BD" Property="Opacity" Value="1"/>
- <Setter TargetName="textBlock" Property="Opacity" Value="1" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="BD" Property="Opacity" Value="0.5"/>
- <Setter TargetName="textBlock" Property="Opacity" Value="0.5" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheTextBox}">
- <Setter Property="BorderBrush" Value="{DynamicResource borderBrush}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="24" />
- <Setter Property="CaretBrush" Value="White" />
- <Setter Property="Padding" Value="0" />
- <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 TextBox}">
- <Themes1:ClassicBorderDecorator
- x:Name="Bd"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderStyle="None"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ScrollViewer x:Name="PART_ContentHost" />
- </Themes1:ClassicBorderDecorator>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" 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.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
-
- <Style TargetType="{x:Type ctrl:NumberBox}">
- <Setter Property="BorderBrush" Value="{DynamicResource borderBrush}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="24" />
- <Setter Property="CaretBrush" Value="White" />
- <Setter Property="Padding" Value="0" />
- <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 TextBox}">
- <Themes1:ClassicBorderDecorator
- x:Name="Bd"
- BorderStyle="None"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ScrollViewer x:Name="PART_ContentHost" />
- </Themes1:ClassicBorderDecorator>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" 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.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheTextBlock}">
- <Style.Setters>
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="TextWrapping" Value="Wrap" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="DesignToggleButton" TargetType="ToggleButton">
- <Setter Property="Foreground" Value="{StaticResource ControlForeground}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Border
- Background="{StaticResource NormalBackground}"
- BorderBrush="{StaticResource ControlBorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{TemplateBinding FontSize}"
- FontWeight="{TemplateBinding FontWeight}"
- Text="{TemplateBinding Content}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="ExecuteToggleButton" TargetType="ToggleButton">
- <Setter Property="Foreground" Value="{StaticResource ControlForeground}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Border
- x:Name="bd"
- Background="{StaticResource NormalBackground}"
- BorderBrush="{StaticResource ControlBorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{TemplateBinding FontSize}"
- FontWeight="{TemplateBinding FontWeight}"
- Text="{TemplateBinding Content}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bd" Property="Background">
- <Setter.Value>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStopCollection>
- <GradientStop Color="#6AD456" />
- <GradientStop Offset="0.5" Color="#1DAE06" />
- <GradientStop Offset="1" Color="#8BDC7C" />
- </GradientStopCollection>
- </LinearGradientBrush>
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:WaveProgressBar}">
- <Setter Property="BorderBrush" Value="{StaticResource borderBrush}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="WaveFill" Value="{StaticResource borderBrush}" />
- <Setter Property="WaveThickness" Value="2" />
- <Setter Property="WaveStroke" Value="{StaticResource borderBrush}" />
- <Setter Property="ShowText" Value="True" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="Foreground" Value="{StaticResource MeunSelectForeground}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ctrl:WaveProgressBar">
- <ControlTemplate.Resources>
- <Storyboard x:Key="StoryboardOnLoaded" RepeatBehavior="Forever">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_Wave" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
- <EasingDoubleKeyFrame KeyTime="0:0:2" Value="-400" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>
- <StackPanel>
- <Border Background="{TemplateBinding Background}">
- <Viewbox>
- <Border
- x:Name="PART_Clip"
- Width="200"
- Height="200"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- ClipToBounds="True"
- CornerRadius="100">
- <Border.Clip>
- <EllipseGeometry
- Center="100,100"
- RadiusX="100"
- RadiusY="100" />
- </Border.Clip>
- <Grid>
- <Path
- x:Name="PART_Wave"
- Width="600"
- Height="250"
- Margin="0,0,-400,-20"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- ClipToBounds="True"
- Fill="{TemplateBinding WaveFill}"
- RenderTransformOrigin="0.5,0.5"
- Stretch="Fill"
- Stroke="{TemplateBinding WaveStroke}"
- StrokeThickness="{TemplateBinding WaveThickness}"
- UseLayoutRounding="False">
- <Path.Data>
- <PathGeometry>
- <PathFigure StartPoint="0,1">
- <PolyBezierSegment Points="0.5,1 0.5,0 1,0" />
- <PolyBezierSegment Points="1.5,0 1.5,1 2,1" />
- <PolyBezierSegment Points="2.5,1 2.5,0 3,0" />
- <PolyLineSegment Points="3,0 3,10, 0,10 0,1" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="{StaticResource Digital}"
- FontSize="{TemplateBinding FontSize}"
- Foreground="{TemplateBinding Foreground}"
- Text="{Binding Value, RelativeSource={RelativeSource Mode=TemplatedParent}, StringFormat={}{0:f2}%}"
- Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static con:BoolToVisibilityConverter.Instance}}" />
- </Grid>
-
- </Border>
- </Viewbox>
- </Border>
-
- </StackPanel>
- <ControlTemplate.Triggers>
- <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="PART_Wave">
- <BeginStoryboard Name="BeginStoryboardWave" Storyboard="{StaticResource StoryboardOnLoaded}" />
- </EventTrigger>
- <EventTrigger RoutedEvent="FrameworkElement.Unloaded" SourceName="PART_Wave">
- <StopStoryboard BeginStoryboardName="BeginStoryboardWave" />
- </EventTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:StatusLight}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:StatusLight}">
- <Border Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}">
- <Grid>
- <Image
- x:Name="ima"
- RenderOptions.BitmapScalingMode="Fant"
- Source="../Images/State0.png" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheCheckBox}">
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="FocusVisualStyle">
- <Setter.Value>
- <Style>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="1"
- SnapsToDevicePixels="True"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <StackPanel
- Background="Transparent"
- Orientation="Horizontal"
- SnapsToDevicePixels="True">
- <Grid>
- <Image
- Source="../Images/Cb_HalfChecked.png" Margin="0,8,2,8" VerticalAlignment="Center" />
- <Image
- x:Name="image1"
- Source="../Images/Cb_HalfChecked.png" Margin="0,8,2,8" VerticalAlignment="Center" />
- </Grid>
- <ContentPresenter
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="HasContent" Value="True">
- <Setter Property="FocusVisualStyle">
- <Setter.Value>
- <Style>
- <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>
- </Setter.Value>
- </Setter>
- <Setter Property="Padding" Value="4,0,0,0" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="image1" Property="Source" Value="../Images/Cb_Checked.png" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="image1" Property="Source" Value="../Images/Cb_HalfChecked.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="ComboBoxFocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="4,4,21,4"
- SnapsToDevicePixels="true"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>
-
- <Style x:Key="ComboBoxTransparentButtonStyle" TargetType="{x:Type ToggleButton}">
- <Setter Property="MinWidth" Value="0" />
- <Setter Property="MinHeight" Value="0" />
- <Setter Property="Width" Value="Auto" />
- <Setter Property="Height" Value="Auto" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="BorderBrush" Value="{x:Static Themes1:ClassicBorderDecorator.ClassicBorderBrush}" />
- <Setter Property="BorderThickness" Value="2" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <DockPanel
- Background="{TemplateBinding Background}"
- LastChildFill="false"
- SnapsToDevicePixels="true">
- <Themes1:ClassicBorderDecorator
- x:Name="Border"
- Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderStyle="None"
- BorderThickness="{TemplateBinding BorderThickness}"
- DockPanel.Dock="Right">
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="{StaticResource DownArrowGeometry}"
- Fill="{TemplateBinding Foreground}" />
- </Themes1:ClassicBorderDecorator>
- </DockPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="Border" Property="BorderStyle" Value="AltPressed" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" />
- </Trigger>
- </Style.Triggers>
- </Style>
-
- <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="MinWidth" Value="0" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="MinHeight" Value="0" />
- <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}">
- <ScrollViewer
- x:Name="PART_ContentHost"
- Background="Transparent"
- Focusable="false"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <Grid>
- <Themes1:ClassicBorderDecorator
- x:Name="Border"
- BorderBrush="{x:Static Themes1:ClassicBorderDecorator.ClassicBorderBrush}"
- BorderStyle="None"
- BorderThickness="2">
- <Popup
- x:Name="PART_Popup"
- AllowsTransparency="true"
- Focusable="False"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- Placement="Bottom"
- PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
- <Themes1:SystemDropShadowChrome
- x:Name="Shdw"
- MinWidth="{Binding ActualWidth, ElementName=Border}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
- Color="Transparent">
- <Border
- x:Name="DropDownBorder"
- BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
- BorderThickness="1">
- <Border.Background>
- <ImageBrush
- ImageSource="../Images/nbbj.png"
- Opacity="0.5"
- Stretch="Fill" />
- </Border.Background>
- <ScrollViewer x:Name="DropDownScrollViewer">
- <Grid RenderOptions.ClearTypeHint="Enabled">
- <Canvas
- Width="0"
- Height="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Rectangle
- x:Name="OpaqueRect"
- Width="{Binding ActualWidth, ElementName=DropDownBorder}"
- Height="{Binding ActualHeight, ElementName=DropDownBorder}"
- Fill="{Binding Background, ElementName=DropDownBorder}" />
- </Canvas>
- <ItemsPresenter
- x:Name="ItemsPresenter"
- KeyboardNavigation.DirectionalNavigation="Contained"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ScrollViewer>
- </Border>
- </Themes1:SystemDropShadowChrome>
- </Popup>
- </Themes1:ClassicBorderDecorator>
- <ToggleButton
- Width="Auto"
- MinWidth="0"
- MinHeight="0"
- ClickMode="Press"
- Focusable="false"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxTransparentButtonStyle}" />
- <DockPanel>
- <FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
- <TextBox
- x:Name="PART_EditableTextBox"
- Margin="{TemplateBinding Padding}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- CaretBrush="White"
- IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxEditableTextBox}" />
- </DockPanel>
-
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="HasItems" Value="false">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
- </Trigger>
- <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
- <Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
- <Setter TargetName="Shdw" Property="Color" Value="#71000000" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true" />
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
- </MultiTrigger>
- <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
- <Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
- <Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
-
- <Style TargetType="{x:Type ctrl:TheComboBox}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="{DynamicResource borderBrush}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Margin" Value="0,0,0,0" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Height" Value="24" />
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
- <Setter Property="ScrollViewer.PanningMode" Value="Both" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="IsTextSearchCaseSensitive" Value="true" />
- <Setter Property="IsEditable" Value="true" />
- <Setter Property="StaysOpenOnEdit" Value="true" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:TheComboBox}">
-
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <Grid>
- <Themes1:ClassicBorderDecorator
- x:Name="Border"
- BorderBrush="{x:Static Themes1:ClassicBorderDecorator.ClassicBorderBrush}"
- BorderStyle="None"
- BorderThickness="2">
- <Popup
- x:Name="PART_Popup"
- AllowsTransparency="true"
- Focusable="False"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- Placement="Bottom"
- PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
- <Themes1:SystemDropShadowChrome
- x:Name="Shdw"
- MinWidth="{Binding ActualWidth, ElementName=Border}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
- Color="Transparent">
- <Border
- x:Name="DropDownBorder"
- BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
- BorderThickness="1">
- <Border.Background>
- <ImageBrush ImageSource="../Images/nbbj.png" />
- </Border.Background>
- <ScrollViewer x:Name="DropDownScrollViewer">
- <Grid RenderOptions.ClearTypeHint="Enabled">
- <Canvas
- Width="0"
- Height="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Rectangle
- x:Name="OpaqueRect"
- Width="{Binding ActualWidth, ElementName=DropDownBorder}"
- Height="{Binding ActualHeight, ElementName=DropDownBorder}"
- Fill="{Binding Background, ElementName=DropDownBorder}" />
- </Canvas>
- <ItemsPresenter
- x:Name="ItemsPresenter"
- KeyboardNavigation.DirectionalNavigation="Contained"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ScrollViewer>
- </Border>
- </Themes1:SystemDropShadowChrome>
- </Popup>
- </Themes1:ClassicBorderDecorator>
- <DockPanel Margin="2">
- <FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
- <Border x:Name="SelectedItemBorder" Margin="{TemplateBinding Padding}">
- <ContentPresenter
- Margin="1,1,1,1"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding SelectionBoxItem}"
- ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
- ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
- ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </DockPanel>
- <ToggleButton
- Width="Auto"
- MinWidth="0"
- MinHeight="0"
- Margin="2"
- ClickMode="Press"
- Focusable="false"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxTransparentButtonStyle}" />
- </Grid>
- </Border>
-
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <!--<Condition Property="IsSelectionBoxHighlighted" Value="true"/>-->
- <Condition Property="IsDropDownOpen" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- </MultiTrigger>
- <!--<Trigger Property="IsSelectionBoxHighlighted" Value="true">
- <Setter Property="Background" TargetName="SelectedItemBorder" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
- </Trigger>-->
- <Trigger Property="HasItems" Value="false">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true" />
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
- </MultiTrigger>
- <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
- <Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
- <Setter TargetName="Shdw" Property="Color" Value="#71000000" />
- </Trigger>
- <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
- <Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
- <Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsEditable" Value="true">
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
- </Trigger>
- </Style.Triggers>
-
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheDataGrid}">
- <Setter Property="AutoGenerateColumns" Value="False" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="CanUserAddRows" Value="False" />
- <Setter Property="CanUserDeleteRows" Value="False" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HeadersVisibility" Value="Column" />
- <Setter Property="GridLinesVisibility" Value="None" />
- <Setter Property="SelectionMode" Value="Single" />
- <!--<Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ctrl:TheDataGrid">
- <Border BorderBrush="{StaticResource ControlBorderBrush}" BorderThickness="1" Background="{StaticResource ControlBackground}">
- <TextBlock Margin="4 0 0 0" Text="{TemplateBinding Text}" VerticalAlignment="Center" Foreground="BlueViolet"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>-->
- </Style>
-
- <Style TargetType="{x:Type DataGridRow}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="SnapsToDevicePixels" Value="true" />
- <Setter Property="Foreground" Value="#abf4ff" />
- <Setter Property="BorderBrush" Value="#abf4ff" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGridRow}">
- <Border
- x:Name="DGR_Border"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="True">
- <SelectiveScrollingGrid x:Name="selectiveScrollingGrid">
- <SelectiveScrollingGrid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </SelectiveScrollingGrid.ColumnDefinitions>
- <SelectiveScrollingGrid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </SelectiveScrollingGrid.RowDefinitions>
- <DataGridCellsPresenter
- Grid.Column="1"
- ItemsPanel="{TemplateBinding ItemsPanel}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- <DataGridDetailsPresenter
- Grid.Row="1"
- Grid.Column="1"
- SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
- Visibility="{TemplateBinding DetailsVisibility}" />
- <DataGridRowHeader
- Grid.RowSpan="2"
- SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
- Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Row}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
- </SelectiveScrollingGrid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <SolidColorBrush Color="#230077BC" />
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Normal_Selected">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <SolidColorBrush Color="#3D0077BC" />
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- <VisualStateGroup x:Name="ValidationStates">
- <VisualState x:Name="Valid" />
- <VisualState x:Name="InvalidFocused" />
- <VisualState x:Name="InvalidUnfocused" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type GridSplitter}">
- <Setter Property="Width" Value="1" />
- <Setter Property="Background" Value="#175c86" />
- <Setter Property="Cursor" Value="SizeWE" />
- <Setter Property="Margin" Value="0,0,0,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border
- Width="{TemplateBinding Width}"
- Margin="{TemplateBinding Margin}"
- Background="{TemplateBinding Background}"
- Opacity="0.4" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Width" Value="1" />
- <Setter Property="Background" Value="#175c86" />
- <Setter Property="Cursor" Value="SizeWE" />
- <Setter Property="Margin" Value="0,0,0,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border
- Width="{TemplateBinding Width}"
- Margin="{TemplateBinding Margin}"
- Background="{TemplateBinding Background}"
- Opacity="0.4" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type DataGridColumnHeader}">
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="30" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/biogebj.png" Opacity="0.2" />
- </Setter.Value>
- </Setter>
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Foreground" Value="{DynamicResource DataGridColumnHeaderColor}" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
- <Grid>
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <GridSplitter
- HorizontalAlignment="Right"
- Background="#FF0BAE3F"
- BorderBrush="#FFBD2A2A" />
- <Thumb
- x:Name="PART_RightHeaderGripper"
- Width="2"
- HorizontalAlignment="Right"
- Background="#FF1D9B9E"
- Style="{StaticResource ColumnHeaderGripperStyle}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="DataGridColumnHeader" TargetType="{x:Type DataGridColumnHeader}">
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="30" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/databj.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="FontSize" Value="10" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
- <Grid>
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
-
- <Thumb
- x:Name="PART_RightHeaderGripper"
- HorizontalAlignment="Right"
- Style="{StaticResource ColumnHeaderGripperStyle}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type DataGridCell}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="#FF31879E" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGridCell}">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="True">
- <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <!--<Setter Property="Background" Value="#FF2281EC"/>-->
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
- <!--<Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>-->
- </Trigger>
- <!--<Trigger Property="IsKeyboardFocusWithin" Value="True">
- <Setter Property="BorderBrush" Value="{DynamicResource {x:Static DataGrid.FocusBorderBrushKey}}"/>
- </Trigger>-->
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- </Style.Triggers>
- </Style>
-
- <SolidColorBrush x:Key="ListBorder" Color="#828790" />
-
- <Style TargetType="{x:Type ctrl:TheListBox}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="{StaticResource ListBorder}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Padding" Value="10" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.PanningMode" Value="Both" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
-
- </Style>
-
- <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
- <Style TargetType="{x:Type ctrl:TheGroupBox}">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{DynamicResource Titleforeground}" />
- <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>
- <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
- <Border
- Grid.Row="2"
- Grid.RowSpan="2"
- Grid.ColumnSpan="4"
- Margin="0,0,0,0"
- BorderThickness="0"
- CornerRadius="0" />
- <Image
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Height="4"
- Margin="0,5,0,0"
- HorizontalAlignment="Left"
- Source="../Images/2609.png" />
- <Border
- x:Name="Header"
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Height="30"
- Margin="30,0,0,0"
- Padding="3,1,3,0">
- <ContentPresenter
- VerticalAlignment="Center"
- ContentSource="Header"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ContentPresenter
- Grid.Row="2"
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Margin="{TemplateBinding Padding}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="CheckRadioFocusVisual">
- <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 TargetType="{x:Type ctrl:TheRadioButton}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.SCADAControl;component/Images/btnkeys.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="Padding" Value="2,0,0,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <BulletDecorator VerticalAlignment="Center" Background="Transparent">
- <BulletDecorator.Bullet>
- <Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Height}">
- <Ellipse x:Name="Border" Margin="0,5,10,5" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
- <Ellipse x:Name="Dot" Width="{Binding Width,ElementName=Border}" Height="{Binding Height,ElementName=Border}" Margin="0,5,10,5" Fill="{TemplateBinding Foreground}" />
- </Grid>
- </BulletDecorator.Bullet>
- <ContentPresenter
- Margin="-5,0,0,0"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True" />
- </BulletDecorator>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="Dot" Property="Visibility" Value="Visible" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="Dot" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="Dot" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="Border" Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Border" Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- <Setter TargetName="Dot" Property="Fill" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形蓝.Text" Color="#FF0089E6" />
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形蓝.UnSelect" Color="#330089E6" />
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形蓝.Select" Color="#FF0089E6" />
- <LinearGradientBrush x:Key="ProgressBar.Progress.动画蓝" StartPoint="1,0" EndPoint="0,0">
- <GradientStop Offset="0" Color="#00000000" />
- <GradientStop Offset="0.4" Color="#4C57B9FB" />
- <GradientStop Offset="0.6" Color="#FF57B9FB" />
- <GradientStop Offset="0.8" Color="#4C57B9FB" />
- <GradientStop Offset="1" Color="#00000000" />
- </LinearGradientBrush>
-
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形绿.Text" Color="#FF00DC00" />
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形绿.UnSelect" Color="#3300DC00" />
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形绿.Select" Color="#FF00DC00" />
- <LinearGradientBrush x:Key="ProgressBar.Progress.动画绿" StartPoint="1,0" EndPoint="0,0">
- <GradientStop Offset="0" Color="#00000000" />
- <GradientStop Offset="0.4" Color="#4C72F972" />
- <GradientStop Offset="0.6" Color="#FF72F972" />
- <GradientStop Offset="0.8" Color="#4C72F972" />
- <GradientStop Offset="1" Color="#00000000" />
- </LinearGradientBrush>
-
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形红.Text" Color="#FFF10000" />
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形红.UnSelect" Color="#33F10000" />
- <SolidColorBrush x:Key="ProgressBar.Progress.圆形红.Select" Color="#FFF10000" />
- <LinearGradientBrush x:Key="ProgressBar.Progress.动画红" StartPoint="1,0" EndPoint="0,0">
- <GradientStop Offset="0" Color="#00000000" />
- <GradientStop Offset="0.4" Color="#4CFF5858" />
- <GradientStop Offset="0.6" Color="#FFFF5858" />
- <GradientStop Offset="0.8" Color="#4CFF5858" />
- <GradientStop Offset="1" Color="#00000000" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ProgressBar.动画" StartPoint="1,0" EndPoint="0,0">
- <GradientStop Offset="0" Color="#00000000" />
- <GradientStop Offset="0.4" Color="#6F06F11F" />
- <GradientStop Offset="0.6" Color="LightBlue" />
- <GradientStop Offset="0.8" Color="#6F06F11F" />
- <GradientStop Offset="1" Color="#00000000" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ProgressBar.Progress" StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="#4F05CE10" />
- <GradientStop Offset="1" Color="#6F06F11F" />
- </LinearGradientBrush>
- <SolidColorBrush x:Key="ProgressBar.Background" Color="#072a56" />
- <SolidColorBrush x:Key="ProgressBar.Border" Color="#072a56" />
- <con:Style3DashConverter x:Key="Style3Dash" />
- <con:Style3ArcConverter x:Key="Style3Arc" />
-
- <Style TargetType="{x:Type ctrl:TheBlueProgressBar}">
- <Setter Property="Width" Value="100" />
- <Setter Property="Height" Value="100" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ProgressBar}">
- <ControlTemplate.Resources>
- <Storyboard x:Key="maindh" RepeatBehavior="Forever">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ell动画" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
- <EasingDoubleKeyFrame KeyTime="0" Value="-90" />
- <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0" />
- <EasingDoubleKeyFrame KeyTime="0:0:2" Value="90" />
- </DoubleAnimationUsingKeyFrames>
-
- </Storyboard>
- </ControlTemplate.Resources>
- <Grid>
- <Rectangle
- Fill="#ef426f"
- RadiusX="5"
- RadiusY="5"
- Visibility="Collapsed" />
- <Ellipse
- x:Name="ell动画"
- Width="80"
- Height="80"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{DynamicResource ProgressBar.Progress.动画蓝}"
- StrokeDashCap="Flat"
- StrokeThickness="10">
- <Ellipse.RenderTransform>
- <TransformGroup>
- <!-- 旋转变换 -->
- <RotateTransform Angle="-90" />
- <!-- 缩放变换 -->
- <ScaleTransform ScaleX="1" ScaleY="1" />
- <!-- 倾斜变换 -->
- <SkewTransform AngleX="0" AngleY="0" />
- <!-- 移动变换 -->
- <TranslateTransform X="0" Y="0" />
- </TransformGroup>
- </Ellipse.RenderTransform>
- <Ellipse.StrokeDashArray>
- <MultiBinding Converter="{StaticResource Style3Arc}">
- <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}" />
- </MultiBinding>
- </Ellipse.StrokeDashArray>
- </Ellipse>
- <Ellipse
- Width="80"
- Height="80"
- Stroke="{DynamicResource ProgressBar.Progress.圆形蓝.UnSelect}"
- StrokeThickness="10" />
- <Ellipse
- Width="80"
- Height="80"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{DynamicResource ProgressBar.Progress.圆形蓝.Select}"
- StrokeDashCap="Flat"
- StrokeThickness="10">
- <Ellipse.RenderTransform>
- <RotateTransform Angle="-90" />
- </Ellipse.RenderTransform>
- <Ellipse.StrokeDashArray>
- <MultiBinding Converter="{StaticResource Style3Arc}">
- <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}" />
- </MultiBinding>
- </Ellipse.StrokeDashArray>
- </Ellipse>
-
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="Fonts/#Quartz M"
- FontSize="20"
- Foreground="{DynamicResource ProgressBar.Progress.圆形蓝.Text}"
- Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:f1}%}" />
- </Grid>
- <ControlTemplate.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard Storyboard="{StaticResource maindh}" />
- </EventTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheGreenProgressBar}">
- <Setter Property="Width" Value="100" />
- <Setter Property="Height" Value="100" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ProgressBar}">
- <ControlTemplate.Resources>
- <Storyboard x:Key="maindh" RepeatBehavior="Forever">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ell动画" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
- <EasingDoubleKeyFrame KeyTime="0" Value="-90" />
- <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0" />
- <EasingDoubleKeyFrame KeyTime="0:0:2" Value="90" />
- </DoubleAnimationUsingKeyFrames>
-
- </Storyboard>
- </ControlTemplate.Resources>
- <Grid>
- <Rectangle
- Fill="#ef426f"
- RadiusX="5"
- RadiusY="5"
- Visibility="Collapsed" />
- <Ellipse
- x:Name="ell动画"
- Width="80"
- Height="80"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{DynamicResource ProgressBar.Progress.动画绿}"
- StrokeDashCap="Flat"
- StrokeThickness="10">
- <Ellipse.RenderTransform>
- <TransformGroup>
- <!-- 旋转变换 -->
- <RotateTransform Angle="-90" />
- <!-- 缩放变换 -->
- <ScaleTransform ScaleX="1" ScaleY="1" />
- <!-- 倾斜变换 -->
- <SkewTransform AngleX="0" AngleY="0" />
- <!-- 移动变换 -->
- <TranslateTransform X="0" Y="0" />
- </TransformGroup>
- </Ellipse.RenderTransform>
- <Ellipse.StrokeDashArray>
- <MultiBinding Converter="{StaticResource Style3Arc}">
- <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}" />
- </MultiBinding>
- </Ellipse.StrokeDashArray>
- </Ellipse>
- <Ellipse
- Width="80"
- Height="80"
- Stroke="{DynamicResource ProgressBar.Progress.圆形绿.UnSelect}"
- StrokeThickness="10" />
- <Ellipse
- Width="80"
- Height="80"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{DynamicResource ProgressBar.Progress.圆形绿.Select}"
- StrokeDashCap="Flat"
- StrokeThickness="10">
- <Ellipse.RenderTransform>
- <RotateTransform Angle="-90" />
- </Ellipse.RenderTransform>
- <Ellipse.StrokeDashArray>
- <MultiBinding Converter="{StaticResource Style3Arc}">
- <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}" />
- </MultiBinding>
- </Ellipse.StrokeDashArray>
- </Ellipse>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="Fonts/#Quartz M"
- FontSize="20"
- Foreground="{DynamicResource ProgressBar.Progress.圆形绿.Text}"
- Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:f1}%}" />
- </Grid>
- <ControlTemplate.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard Storyboard="{StaticResource maindh}" />
- </EventTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheRedProgressBar}">
- <Setter Property="Width" Value="100" />
- <Setter Property="Height" Value="100" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ProgressBar}">
- <ControlTemplate.Resources>
- <Storyboard x:Key="maindh" RepeatBehavior="Forever">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ell动画" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
- <EasingDoubleKeyFrame KeyTime="0" Value="-90" />
- <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0" />
- <EasingDoubleKeyFrame KeyTime="0:0:2" Value="90" />
- </DoubleAnimationUsingKeyFrames>
-
- </Storyboard>
- </ControlTemplate.Resources>
- <Grid>
- <Rectangle
- Fill="#ef426f"
- RadiusX="5"
- RadiusY="5"
- Visibility="Collapsed" />
- <Ellipse
- x:Name="ell动画"
- Width="80"
- Height="80"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{DynamicResource ProgressBar.Progress.动画红}"
- StrokeDashCap="Flat"
- StrokeThickness="10">
- <Ellipse.RenderTransform>
- <TransformGroup>
- <!-- 旋转变换 -->
- <RotateTransform Angle="-90" />
- <!-- 缩放变换 -->
- <ScaleTransform ScaleX="1" ScaleY="1" />
- <!-- 倾斜变换 -->
- <SkewTransform AngleX="0" AngleY="0" />
- <!-- 移动变换 -->
- <TranslateTransform X="0" Y="0" />
- </TransformGroup>
- </Ellipse.RenderTransform>
- <Ellipse.StrokeDashArray>
- <MultiBinding Converter="{StaticResource Style3Arc}">
- <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}" />
- </MultiBinding>
- </Ellipse.StrokeDashArray>
- </Ellipse>
- <Ellipse
- Width="80"
- Height="80"
- Stroke="{DynamicResource ProgressBar.Progress.圆形红.UnSelect}"
- StrokeThickness="10" />
- <Ellipse
- Width="80"
- Height="80"
- RenderTransformOrigin="0.5,0.5"
- Stroke="{DynamicResource ProgressBar.Progress.圆形红.Select}"
- StrokeDashCap="Flat"
- StrokeThickness="10">
- <Ellipse.RenderTransform>
- <RotateTransform Angle="-90" />
- </Ellipse.RenderTransform>
- <Ellipse.StrokeDashArray>
- <MultiBinding Converter="{StaticResource Style3Arc}">
- <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}" />
- </MultiBinding>
- </Ellipse.StrokeDashArray>
- </Ellipse>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="Fonts/#Quartz M"
- FontSize="20"
- Foreground="{DynamicResource ProgressBar.Progress.圆形红.Text}"
- Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:f1}%}" />
- </Grid>
- <ControlTemplate.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard Storyboard="{StaticResource maindh}" />
- </EventTrigger>
- <Trigger Property="IsEnabled" Value="True">
- <Trigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource maindh}" />
- </Trigger.EnterActions>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheProgressBar}">
- <Setter Property="Foreground" Value="{StaticResource ProgressBar.Progress}" />
- <Setter Property="Background" Value="{StaticResource ProgressBar.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource ProgressBar.Border}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Height" Value="16" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ProgressBar}">
- <ControlTemplate.Resources>
- <Storyboard x:Key="maindh" RepeatBehavior="Forever">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetName="dh" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25" />
- <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.25" />
- <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0.25" />
- </DoubleAnimationUsingKeyFrames>
- <PointAnimationUsingKeyFrames Storyboard.TargetName="dh" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)">
- <EasingPointKeyFrame KeyTime="0" Value="-0.5,0.5" />
- <EasingPointKeyFrame KeyTime="0:0:1" Value="0.5,0.5" />
- <EasingPointKeyFrame KeyTime="0:0:2" Value="1.5,0.5" />
- </PointAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>
- <Grid x:Name="TemplateRoot">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Opacity="0.3" />
- <Rectangle x:Name="PART_Track" />
- <Grid
- x:Name="PART_Indicator"
- HorizontalAlignment="Left"
- ClipToBounds="true">
- <Rectangle x:Name="dh" Fill="{DynamicResource ProgressBar.动画}">
- <Rectangle.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1" />
- <SkewTransform AngleX="-45" AngleY="0" />
- <RotateTransform Angle="0" />
- <TranslateTransform X="0" Y="0" />
- </TransformGroup>
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="Indicator"
- Fill="{TemplateBinding Foreground}"
- Visibility="Collapsed" />
- <Rectangle
- x:Name="Animation"
- Fill="{DynamicResource ProgressBar.动画}"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1" />
- <SkewTransform AngleX="-45" AngleY="0" />
- <RotateTransform Angle="0" />
- <TranslateTransform X="0" Y="0" />
- </TransformGroup>
- </Rectangle.RenderTransform>
- </Rectangle>
- </Grid>
- <TextBlock
- x:Name="textBlock"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="{StaticResource Digital}"
- FontSize="12"
- Foreground="{DynamicResource Titleforeground}"
- Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, StringFormat={}百分比: {0:f2} %}"
- Visibility="Visible" />
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Determinate" />
- <VisualState x:Name="Indeterminate">
- <Storyboard RepeatBehavior="Forever">
- <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Animation" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25" />
- <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.25" />
- <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0.25" />
- </DoubleAnimationUsingKeyFrames>
- <PointAnimationUsingKeyFrames Storyboard.TargetName="Animation" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)">
- <EasingPointKeyFrame KeyTime="0" Value="-0.5,0.5" />
- <EasingPointKeyFrame KeyTime="0:0:1" Value="0.5,0.5" />
- <EasingPointKeyFrame KeyTime="0:0:2" Value="1.5,0.5" />
- </PointAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="Orientation" Value="Vertical">
- <Setter TargetName="TemplateRoot" Property="LayoutTransform">
- <Setter.Value>
- <RotateTransform Angle="90" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsIndeterminate" Value="true">
- <Setter TargetName="Indicator" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="dh" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="Animation" Property="Visibility" Value="Visible" />
- </Trigger>
- <Trigger Property="IsIndeterminate" Value="False">
- <Setter TargetName="Indicator" Property="Visibility" Value="Visible" />
- <Setter TargetName="dh" Property="Visibility" Value="Visible" />
- <Setter TargetName="Animation" Property="Visibility" Value="Collapsed" />
-
- </Trigger>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard Storyboard="{StaticResource maindh}" />
- </EventTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="TabItemFocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="4,4,4,2"
- SnapsToDevicePixels="true"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="TheTabItem" TargetType="{x:Type TabItem}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}" />
- <Setter Property="Foreground">
- <Setter.Value>
- #A5FFFFFF
- </Setter.Value>
- </Setter>
- <Setter Property="Padding" Value="6,1,6,1" />
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Border
- x:Name="Bd"
- Height="35"
- Margin="5"
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="2">
- <ContentPresenter
- x:Name="Content"
- HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
- VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
- ContentSource="Header"
- Cursor="Hand"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="true">
- <Setter Property="Foreground" Value="{DynamicResource MeunSelectForeground}" />
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab4_Select.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsSelected" Value="False">
- <Setter Property="Foreground" Value="{DynamicResource MeunUnSelectForeground}" />
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab4_No.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#8f723c" />
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab4_Select.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="TitleTabItem" TargetType="{x:Type TabItem}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}" />
- <Setter Property="Padding" Value="10,2,10,2" />
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Border
- x:Name="Bd"
- Height="30"
- Margin="5"
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="0">
- <ContentPresenter
- x:Name="Content"
- HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
- VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
- ContentSource="Header"
- Cursor="Hand"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="true">
- <Setter Property="Foreground" Value="#FFD4DEE0" />
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab_SelectWZBJ.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsSelected" Value="False">
- <Setter Property="Foreground" Value="#FF18A9C9" />
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab_NoWZBJ.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#FFD4DEE0" />
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab_SelectWZBJ.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!--#region ScrollBar-->
- <Style x:Key="UpScrollBarButton" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Focusable" Value="false" />
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Image
- Width="8"
- Height="5"
- Source="../Images/Scroll_↑.png" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="DownScrollBarButton" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Focusable" Value="false" />
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Image
- Width="8"
- Height="5"
- Source="../Images/Scroll_↓.png" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="LeftScrollBarButton" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Focusable" Value="false" />
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Image
- Width="5"
- Height="8"
- Source="../Images/Scroll_←.png" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="RightScrollBarButton" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Focusable" Value="false" />
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Image
- Width="5"
- Height="8"
- Source="../Images/Scroll_→.png" />
- </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="ScrollBarThumb" TargetType="{x:Type Thumb}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border
- x:Name="bd1"
- Margin="2,2,2,2"
- Background="#00c2f4"
- CornerRadius="3"
- Cursor="Hand"
- Opacity="1"
- SnapsToDevicePixels="true" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="bd1" Property="Margin" Value="-1,-1,-1,-1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="HorizontalScrollBarBackground" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Offset="0" Color="#E1E1E1" />
- <GradientStop Offset="0.20" Color="#EDEDED" />
- <GradientStop Offset="0.80" Color="#EDEDED" />
- <GradientStop Offset="1" Color="#E3E3E3" />
- </LinearGradientBrush>
- <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 TargetType="{x:Type ScrollBar}">
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/biogebj.png" Opacity="0.2" />
- </Setter.Value>
- </Setter>
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="false" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="Opacity" Value="1" />
- <Setter Property="MinWidth" Value="3" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollBar}">
- <Border
- Width="10"
- Margin="0,0,0,0"
- Background="{TemplateBinding Background}"
- CornerRadius="2"
- Opacity="{TemplateBinding Opacity}">
- <Grid x:Name="Bg" SnapsToDevicePixels="true">
- <Grid.RowDefinitions>
- <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
- <RowDefinition Height="*" />
- <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
- </Grid.RowDefinitions>
- <RepeatButton
- Themes:ScrollChrome.ScrollGlyph="UpArrow"
- Command="{x:Static ScrollBar.LineUpCommand}"
- IsEnabled="{TemplateBinding IsMouseOver}"
- Style="{StaticResource UpScrollBarButton}" />
- <Track
- x:Name="PART_Track"
- Grid.Row="1"
- IsDirectionReversed="true"
- IsEnabled="{TemplateBinding IsMouseOver}">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource VerticalScrollBarPageButton}" />
- </Track.DecreaseRepeatButton>
-
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource VerticalScrollBarPageButton}" />
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Themes:ScrollChrome.ScrollGlyph="VerticalGripper" Style="{StaticResource ScrollBarThumb}" />
- </Track.Thumb>
- </Track>
- <RepeatButton
- Grid.Row="2"
- Themes:ScrollChrome.ScrollGlyph="DownArrow"
- Command="{x:Static ScrollBar.LineDownCommand}"
- IsEnabled="{TemplateBinding IsMouseOver}"
- Style="{StaticResource DownScrollBarButton}" />
- </Grid>
- </Border>
-
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="Orientation" Value="Horizontal">
-
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollBar}">
- <Border
- Height="10"
- Margin="0,0,0,0"
- Background="{TemplateBinding Background}"
- CornerRadius="2"
- Opacity="{TemplateBinding Opacity}">
- <Grid
- x:Name="Bg"
- Background="{TemplateBinding Background}"
- SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
- </Grid.ColumnDefinitions>
- <RepeatButton
- Themes:ScrollChrome.ScrollGlyph="LeftArrow"
- Command="{x:Static ScrollBar.LineLeftCommand}"
- IsEnabled="{TemplateBinding IsMouseOver}"
- Style="{StaticResource LeftScrollBarButton}" />
- <Track
- x:Name="PART_Track"
- Grid.Column="1"
- IsEnabled="{TemplateBinding IsMouseOver}">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource HorizontalScrollBarPageButton}" />
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource HorizontalScrollBarPageButton}" />
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Themes:ScrollChrome.ScrollGlyph="HorizontalGripper" Style="{StaticResource ScrollBarThumb}" />
- </Track.Thumb>
- </Track>
- <RepeatButton
- Grid.Column="2"
- Themes:ScrollChrome.ScrollGlyph="RightArrow"
- Command="{x:Static ScrollBar.LineRightCommand}"
- IsEnabled="{TemplateBinding IsMouseOver}"
- Style="{StaticResource RightScrollBarButton}" />
- </Grid>
- </Border>
-
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- <LinearGradientBrush x:Key="VerticalScrollBarBackground" StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="#E1E1E1" />
- <GradientStop Offset="0.20" Color="#EDEDED" />
- <GradientStop Offset="0.80" Color="#EDEDED" />
- <GradientStop Offset="1" Color="#E3E3E3" />
- </LinearGradientBrush>
- <!--#endregion-->
-
- <!--#region Slider-->
- <LinearGradientBrush x:Key="HorizontalSliderThumbHoverBackgroundInverted" EndPoint="0,0" StartPoint="0,1">
- <GradientStop Color="white" Offset="0"/>
- <GradientStop Color="#B8E2F9" Offset="0.5"/>
- <GradientStop Color="#B0DFF8" Offset="1"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="HorizontalSliderThumbHoverBorder" Color="#3C7FB1"/>
- <LinearGradientBrush x:Key="HorizontalSliderThumbPressedBackgroundInverted" EndPoint="0,0" StartPoint="0,1">
- <GradientStop Color="#B8E4FA" Offset="0.25"/>
- <GradientStop Color="#5EB4E3" Offset="0.5"/>
- <GradientStop Color="#4C8BB4" Offset="1"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="HorizontalSliderThumbPressedBorder" Color="#2C628B"/>
- <Geometry x:Key="SliderThumbDisabledGeometry">M -5,-10.5 L 5,-10.5 L 5,10.5 L -5,10.5 Z</Geometry>
- <Geometry x:Key="SliderPointedThumbDisabledGeometry">M 4.5,-8.5 L -4.5,-8.5 L -4.5,4.5 L -0.5,8.5 L 0.5,8.5 L 4.5,4.5 Z</Geometry>
- <Geometry x:Key="SliderPointedThumbOuterBorderGeometry">M 4.5,-7.5 A 1 1 0 0 0 3.5,-8.5 L -3.5,-8.5 A 1 1 0 0 0 -4.5,-7.5 L -4.5,4.5 L -0.5,8.5 L 0.5,8.5 L 4.5,4.5 Z</Geometry>
- <LinearGradientBrush x:Key="HorizontalSliderThumbNormalBackgroundInverted" EndPoint="0,0" StartPoint="0,1">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="#F0EFEF" Offset="0.4"/>
- <GradientStop Color="#D6D5D5" Offset=".8"/>
- </LinearGradientBrush>
- <Geometry x:Key="SliderPointedThumbMiddleBorderGeometry">M 3.5,-7.5 L -3.5,-7.5 L -3.5,4.5 L 0,8 L 3.5,4.5 Z</Geometry>
- <Style x:Key="HorizontalSliderUpThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="18"/>
- <Setter Property="Width" Value="10"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Canvas SnapsToDevicePixels="true">
- <Canvas.RenderTransform>
- <TransformGroup>
- <TransformGroup.Children>
- <TransformCollection>
- <RotateTransform Angle="180"/>
- <TranslateTransform X="5" Y="9"/>
- </TransformCollection>
- </TransformGroup.Children>
- </TransformGroup>
- </Canvas.RenderTransform>
- <Path x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Fill="{StaticResource HorizontalSliderThumbNormalBackgroundInverted}"/>
- <Path x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" Stroke="White" StrokeThickness="1"/>
- <Path x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Stroke="#FF929292" StrokeThickness="1"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackgroundInverted}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="Foreground" Value="Blue">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackgroundInverted}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsDragging" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbPressedBackgroundInverted}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
- <Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ButtonStyle2" TargetType="{x:Type Button}">
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Foreground" Value="#b3e8f0"></Setter>
- <Setter Property="Height" Value="20"></Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid Height="20" Width="Auto" Margin="0">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle">
- <EasingColorKeyFrame KeyTime="0" Value="#FFFF9700"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed"/>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Rectangle x:Name="rectangle" Fill="#409eff" RadiusY="0" RadiusX="0"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="#b3e8f0"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="HorizontalSliderThumbHoverBackground" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="white" Offset="0"/>
- <GradientStop Color="#B8E2F9" Offset="0.5"/>
- <GradientStop Color="#B0DFF8" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="HorizontalSliderThumbPressedBackground" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#B8E4FA" Offset="0.25"/>
- <GradientStop Color="#5EB4E3" Offset="0.5"/>
- <GradientStop Color="#4C8BB4" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="HorizontalSliderThumbNormalBackground" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="#F0EFEF" Offset="0.4"/>
- <GradientStop Color="#D6D5D5" Offset=".8"/>
- </LinearGradientBrush>
- <Style x:Key="HorizontalSliderDownThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="18"/>
- <Setter Property="Width" Value="10"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Canvas SnapsToDevicePixels="true">
- <Canvas.RenderTransform>
- <TranslateTransform X="5" Y="9"/>
- </Canvas.RenderTransform>
- <Path x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Fill="{StaticResource HorizontalSliderThumbNormalBackground}"/>
- <Path x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" Stroke="White" StrokeThickness="1"/>
- <Path x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Stroke="#FF929292" StrokeThickness="1"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="Foreground" Value="Blue">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsDragging" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbPressedBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
- <Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="HorizontalSliderTrackNormalBorder" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFAEB1AF" Offset="0.1"/>
- <GradientStop Color="White" Offset=".9"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="HorizontalSliderTrackNormalBackground" Color="#FFE7EAEA"/>
- <Style x:Key="SliderRepeatButtonStyle" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="IsTabStop" Value="false"/>
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Rectangle Height="4">
- <Rectangle.Fill>
- <SolidColorBrush Color="#FF6A6B80" Opacity="0.6"/>
- </Rectangle.Fill>
- </Rectangle>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="SliderRepeatButtonStyle1" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="IsTabStop" Value="false"/>
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Rectangle Fill="#FF6262F0" Height="4"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Geometry x:Key="SliderThumbOuterBorderGeometry">M -5,-9.5 A 1 1 0 0 1 -4,-10.5 L 4,-10.5 A 1 1 0 0 1 5,-9.5 L 5,9.5 A 1 1 0 0 1 4,10.5 L -4,10.5 A 1 1 0 0 1 -5,9.5 Z</Geometry>
- <Geometry x:Key="SliderThumbMiddleBorderGeometry">M -4,-9.5 L 4,-9.5 L 4,9.5 L -4,9.5 Z</Geometry>
- <Style x:Key="HorizontalSliderThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="22"/>
- <Setter Property="Width" Value="11"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Canvas SnapsToDevicePixels="true">
- <Canvas.RenderTransform>
- <TranslateTransform X="-2" Y="4"/>
- </Canvas.RenderTransform>
- <Ellipse x:Name="ces" Width="23" Height="23" Margin="-4,-4,0,0" Fill="#7FE0751C"></Ellipse>
- <Ellipse Width="15" Height="15" Fill="#FFE0751C"></Ellipse>
- <Path Visibility="Collapsed" x:Name="Background" Data="{StaticResource SliderThumbOuterBorderGeometry}" Fill="{StaticResource HorizontalSliderThumbNormalBackground}"/>
- <Path Visibility="Collapsed" x:Name="InnerBorder" Data="{StaticResource SliderThumbMiddleBorderGeometry}" Stroke="White"/>
- <Path Visibility="Collapsed" x:Name="OuterBorder" Data="{StaticResource SliderThumbOuterBorderGeometry}" Stroke="#FF929292"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Visibility" TargetName="ces" Value="Visible"/>
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Visibility" TargetName="ces" Value="Collapsed"/>
- </Trigger>
- <Trigger Property="Foreground" Value="Blue">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsDragging" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbPressedBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
- <Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="VerticalSliderThumbHoverBackground" EndPoint="1,0" StartPoint="0,0">
- <GradientStop Color="white" Offset="0"/>
- <GradientStop Color="#B8E2F9" Offset="0.5"/>
- <GradientStop Color="#B0DFF8" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="VerticalSliderThumbPressedBackground" EndPoint="1,0" StartPoint="0,0">
- <GradientStop Color="#B8E4FA" Offset="0.25"/>
- <GradientStop Color="#5EB4E3" Offset="0.5"/>
- <GradientStop Color="#4C8BB4" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="VerticalSliderThumbNormalBackground" EndPoint="1,0" StartPoint="0,0">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="#F0EFEF" Offset="0.4"/>
- <GradientStop Color="#D6D5D5" Offset=".8"/>
- </LinearGradientBrush>
- <Style x:Key="VerticalSliderLeftThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="10"/>
- <Setter Property="Width" Value="18"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Canvas SnapsToDevicePixels="true">
- <Canvas.RenderTransform>
- <TransformGroup>
- <TransformGroup.Children>
- <TransformCollection>
- <RotateTransform Angle="90"/>
- <TranslateTransform X="9" Y="5"/>
- </TransformCollection>
- </TransformGroup.Children>
- </TransformGroup>
- </Canvas.RenderTransform>
- <Path x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Fill="{StaticResource VerticalSliderThumbNormalBackground}"/>
- <Path x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" Stroke="White" StrokeThickness="1"/>
- <Path x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Stroke="#FF929292" StrokeThickness="1"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="Foreground" Value="Blue">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsDragging" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbPressedBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
- <Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="VerticalSliderThumbHoverBackgroundInverted" EndPoint="0,0" StartPoint="1,0">
- <GradientStop Color="white" Offset="0"/>
- <GradientStop Color="#B8E2F9" Offset="0.5"/>
- <GradientStop Color="#B0DFF8" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="VerticalSliderThumbPressedBackgroundInverted" EndPoint="0,0" StartPoint="1,0">
- <GradientStop Color="#B8E4FA" Offset="0.25"/>
- <GradientStop Color="#5EB4E3" Offset="0.5"/>
- <GradientStop Color="#4C8BB4" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="VerticalSliderThumbNormalBackgroundInverted" EndPoint="0,0" StartPoint="1,0">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="#F0EFEF" Offset="0.4"/>
- <GradientStop Color="#D6D5D5" Offset=".8"/>
- </LinearGradientBrush>
- <Style x:Key="VerticalSliderRightThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="10"/>
- <Setter Property="Width" Value="18"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Canvas SnapsToDevicePixels="true">
- <Canvas.RenderTransform>
- <TransformGroup>
- <TransformGroup.Children>
- <TransformCollection>
- <RotateTransform Angle="-90"/>
- <TranslateTransform X="9" Y="5"/>
- </TransformCollection>
- </TransformGroup.Children>
- </TransformGroup>
- </Canvas.RenderTransform>
- <Path x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Fill="{StaticResource VerticalSliderThumbNormalBackgroundInverted}"/>
- <Path x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" Stroke="White" StrokeThickness="1"/>
- <Path x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" Stroke="#FF929292" StrokeThickness="1"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackgroundInverted}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="Foreground" Value="Blue">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackgroundInverted}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsDragging" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbPressedBackgroundInverted}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
- <Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="VerticalSliderTrackNormalBorder" EndPoint="1,0" StartPoint="0,0">
- <GradientStop Color="#FFAEB1AF" Offset="0.1"/>
- <GradientStop Color="White" Offset=".9"/>
- </LinearGradientBrush>
- <Style x:Key="VerticalSliderThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="11"/>
- <Setter Property="Width" Value="22"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Canvas SnapsToDevicePixels="true">
- <Canvas.RenderTransform>
- <TransformGroup>
- <TransformGroup.Children>
- <TransformCollection>
- <RotateTransform Angle="90"/>
- <TranslateTransform X="11" Y="5.5"/>
- </TransformCollection>
- </TransformGroup.Children>
- </TransformGroup>
- </Canvas.RenderTransform>
- <Ellipse x:Name="ces" Width="23" Height="23" Margin="-4,-4,0,0" Fill="#7FE0751C"></Ellipse>
- <Ellipse Width="15" Height="15" Fill="#FFE0751C"></Ellipse>
- <Path x:Name="Background" Visibility="Collapsed" Data="{StaticResource SliderThumbOuterBorderGeometry}" Fill="{StaticResource VerticalSliderThumbNormalBackground}"/>
- <Path x:Name="InnerBorder" Visibility="Collapsed" Data="{StaticResource SliderThumbMiddleBorderGeometry}" Stroke="White" StrokeThickness="1"/>
- <Path x:Name="OuterBorder" Visibility="Collapsed" Data="{StaticResource SliderThumbOuterBorderGeometry}" Stroke="#FF929292" StrokeThickness="1"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Visibility" TargetName="ces" Value="Visible"/>
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Visibility" TargetName="ces" Value="Collapsed"/>
- </Trigger>
- <Trigger Property="Foreground" Value="Blue">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
- </Trigger>
- <Trigger Property="IsDragging" Value="true">
- <Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbPressedBackground}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
- <Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
- <Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
- <Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type Slider}">
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Foreground" Value="#FFC4C4C4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Slider}">
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <TickBar x:Name="TopTick" Fill="{TemplateBinding Foreground}" Height="4" Placement="Top" Grid.Row="0" Visibility="Collapsed"/>
- <TickBar x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Height="4" Placement="Bottom" Grid.Row="2" Visibility="Collapsed"/>
- <Border x:Name="TrackBackground" BorderBrush="{StaticResource HorizontalSliderTrackNormalBorder}" BorderThickness="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" Cursor="Hand" CornerRadius="1" Height="4.0" Margin="5,0" Grid.Row="1" VerticalAlignment="center">
- <Canvas Margin="-6,-1">
- <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Height="4.0" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" Visibility="Hidden"/>
- </Canvas>
- </Border>
- <Track x:Name="PART_Track" Grid.Row="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle1}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource HorizontalSliderThumbStyle}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="TickPlacement" Value="TopLeft">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource HorizontalSliderUpThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="BottomRight">
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource HorizontalSliderDownThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="Both">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsSelectionRangeEnabled" Value="true">
- <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="Orientation" Value="Vertical">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Slider}">
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <TickBar x:Name="TopTick" Grid.Column="0" Fill="{TemplateBinding Foreground}" Placement="Left" Visibility="Collapsed" Width="4"/>
- <TickBar x:Name="BottomTick" Grid.Column="2" Fill="{TemplateBinding Foreground}" Placement="Right" Visibility="Collapsed" Width="4"/>
- <Border x:Name="TrackBackground" BorderBrush="{StaticResource VerticalSliderTrackNormalBorder}" BorderThickness="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" Grid.Column="1" CornerRadius="1" HorizontalAlignment="center" Margin="0,5" Width="4.0">
- <Canvas Margin="-1,-6">
- <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" Visibility="Hidden" Width="4.0"/>
- </Canvas>
- </Border>
- <Track x:Name="PART_Track" Grid.Column="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource VerticalSliderThumbStyle}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="TickPlacement" Value="TopLeft">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource VerticalSliderLeftThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="BottomRight">
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource VerticalSliderRightThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="Both">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsSelectionRangeEnabled" Value="true">
- <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
-
- <Style TargetType="{x:Type ctrl:TheSlider}">
- <Setter Property="Width" Value="140" />
- <Setter Property="Height" Value="24" />
- <Setter Property="Maximum" Value="100" />
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Minimum" Value="0" />
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="#FFC4C4C4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:TheSlider}">
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <TickBar x:Name="TopTick" Fill="{TemplateBinding Foreground}" Height="4" Placement="Top" Grid.Row="0" Visibility="Collapsed"/>
- <TickBar x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Height="4" Placement="Bottom" Grid.Row="2" Visibility="Collapsed"/>
- <Border x:Name="TrackBackground" BorderBrush="{StaticResource HorizontalSliderTrackNormalBorder}" BorderThickness="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" CornerRadius="1" Height="4.0" Margin="5,0" Grid.Row="1" VerticalAlignment="center">
- <Canvas Margin="-6,-1">
- <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Height="4.0" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" Visibility="Hidden"/>
- </Canvas>
- </Border>
- <Track x:Name="PART_Track" Grid.Row="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle1}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource HorizontalSliderThumbStyle}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="TickPlacement" Value="TopLeft">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource HorizontalSliderUpThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="BottomRight">
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource HorizontalSliderDownThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="Both">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsSelectionRangeEnabled" Value="true">
- <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="Orientation" Value="Vertical">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ctrl:TheSlider}">
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <TickBar x:Name="TopTick" Grid.Column="0" Fill="{TemplateBinding Foreground}" Placement="Left" Visibility="Collapsed" Width="4"/>
- <TickBar x:Name="BottomTick" Grid.Column="2" Fill="{TemplateBinding Foreground}" Placement="Right" Visibility="Collapsed" Width="4"/>
- <Border x:Name="TrackBackground" BorderBrush="{StaticResource VerticalSliderTrackNormalBorder}" BorderThickness="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" Grid.Column="1" CornerRadius="1" HorizontalAlignment="center" Margin="0,5" Width="4.0">
- <Canvas Margin="-1,-6">
- <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" Visibility="Hidden" Width="4.0"/>
- </Canvas>
- </Border>
- <Track x:Name="PART_Track" Grid.Column="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource SliderRepeatButtonStyle}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource VerticalSliderThumbStyle}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="TickPlacement" Value="TopLeft">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource VerticalSliderLeftThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="BottomRight">
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- <Setter Property="Style" TargetName="Thumb" Value="{StaticResource VerticalSliderRightThumbStyle}"/>
- <Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/>
- </Trigger>
- <Trigger Property="TickPlacement" Value="Both">
- <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
- <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsSelectionRangeEnabled" Value="true">
- <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
-
- <!--#region 菜单栏-->
- <Style x:Key="caidan_1" TargetType="{x:Type RadioButton}">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="Margin" Value="10,10,0,0" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/button2.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Height" Value="30" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Border
- x:Name="BD"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Cursor="Hand">
- <StackPanel
- HorizontalAlignment="Center"
- Cursor="Hand"
- Orientation="Horizontal">
- <TextBlock
- x:Name="textBlock"
- Margin="15,5,15,5"
- VerticalAlignment="Center"
- Cursor="Hand"
- FontFamily="{TemplateBinding FontFamily}"
- FontSize="{TemplateBinding FontSize}"
- FontWeight="{TemplateBinding FontWeight}"
- Foreground="{TemplateBinding Foreground}"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab4_Select.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource MeunSelectForeground}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Tab4_No.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <DataTemplate x:Key="X_PageBoxStyle">
- <Button x:Name="dsd" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" CommandParameter="{Binding .}" Command="{Binding DataContext.MenSelectPageCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}">
- <Button.Template>
- <ControlTemplate>
- <Grid Margin="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Grid Height="50" Width="100" >
- <Grid.Background>
- <ImageBrush ImageSource="../Images/bj.png" Stretch="UniformToFill"/>
- </Grid.Background>
- </Grid>
- <Rectangle Height="50" Width="100" Stroke="#4818659B" StrokeThickness="1">
- <Rectangle.Fill>
- <VisualBrush Visual="{Binding visual,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
- </Rectangle.Fill>
- </Rectangle>
- <Rectangle Width="100" Height="20" Grid.Row="1" Fill="Transparent" Stroke="#4818659B" StrokeThickness="1,0,1,1"/>
- <TextBlock FontWeight="Normal" Margin="5,0,0,0" FontSize="12" Foreground="#a2c2e8"
- x:Name="txt"
- Grid.Row="2"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontFamily="../Fonts/#Quartz M"
- Text="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
-
- <TextBlock FontWeight="Bold" Margin="5,0,5,0" FontSize="8" Foreground="{TemplateBinding Foreground}"
- Grid.Row="2"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom" Visibility="Collapsed"
- Text="{Binding Sort,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
- </ControlTemplate>
- </Button.Template>
- </Button>
-
-
- <DataTemplate.Triggers>
-
- </DataTemplate.Triggers>
- </DataTemplate>
-
-
- <Style x:Key="ItemContainerStyle1" TargetType="ListBoxItem">
- <Setter Property="HorizontalAlignment" Value="Left"/>
- <Setter Property="VerticalAlignment" Value="Top"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="VerticalContentAlignment" Value="Top"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListBoxItem">
- <Border Name="Border"
- Margin="5"
- Background="Transparent"
- BorderBrush="Transparent"
- BorderThickness="1"
- SnapsToDevicePixels="True">
- <ContentPresenter />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Border" Property="Background" Value="#EA18979B"/>
- <Setter TargetName="Border" Property="BorderBrush" Value="#EA18979B"/>
- <Setter Property="Foreground" Value="#a2c2e8"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="Border" Property="Background" Value="#EA18659B"/>
- <Setter TargetName="Border" Property="BorderBrush" Value="#EA18659B"/>
- <Setter Property="Foreground" Value="#a2c2e8"/>
- </Trigger>
- <Trigger Property="IsSelected" Value="true">
- <Setter TargetName="Border" Property="Background" Value="#EA18979B"/>
- <Setter TargetName="Border" Property="BorderBrush" Value="#EA18979B"/>
- <Setter Property="Foreground" Value="#a2c2e8"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="LightGray"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!--#endregion-->
- <Style x:Key="image矩阵框" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="../Images/矩形边框.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image系统名称" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="../Images/系统名称.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image矩阵框1" TargetType="Grid">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/Pop_bg.png" Stretch="Fill" Opacity="1" ></ImageBrush>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="imageTextBlock" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/系统名称.png" Stretch="Fill" ></ImageBrush>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="image拉出" TargetType="Grid">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/拉出.png" Stretch="Fill" ></ImageBrush>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="image收缩" TargetType="Grid">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/收缩.png" Stretch="Fill" ></ImageBrush>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="image右1" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="../Images/右1.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image右2" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="../Images/右2.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image左1" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="../Images/左1.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image左2" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="../Images/左2.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="borderSplider" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="1" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/1.png" ></ImageBrush>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_返回" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Width" Value="68" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" Cursor="Hand">
- <StackPanel
- Margin="5,0,10,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Border Width="16" Margin="5">
- <Border.Background>
- <ImageBrush ImageSource="../Images/返回按钮图标.png" />
- </Border.Background>
- </Border>
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="{DynamicResource ButtonSelectForeground}"
- Text="{TemplateBinding Content}" />
- <!-- Text="{TemplateBinding Content}" -->
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/返回按钮2.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/返回按钮1.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="../Images/返回按钮1.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="BtnNull" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" Cursor="Hand"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background" Value="Transparent"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background" Value="Transparent"/>
-
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background" Value="Transparent"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="timeImage" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Source" Value="../Images/日期1.png" />
- </Style.Setters>
- </Style>
-
- </ResourceDictionary>
|