2026-03-30 17:09:29 +09:00

823 lines
43 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:VisionCommonUI">
<!--FontFamily-->
<FontFamily x:Key="RobotoLightFontFamilyKey">FONT/#Roboto Light</FontFamily>
<FontFamily x:Key="RobotoMediumFontFamilyKey">FONT/#Roboto Medium</FontFamily>
<FontFamily x:Key="RubikLightFontFamilyKey">FONT/#Rubik Light</FontFamily>
<!--Converter-->
<local:BitmapConverter x:Key="imgConverter"/>
<local:LightChColorConverter x:Key="lightChColorConverter"/>
<local:PatternResultColorConverter x:Key="patternResultColorConverter"/>
<local:AlignResultColorConverter x:Key="alignResultColorConverter"/>
<local:InspResultColorConverter x:Key="inspResultColorConverter"/>
<!--DaraGrid-->
<Style TargetType="DataGridCell" x:Key="CellCenter">
<Setter Property="Margin" Value="4 0"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Background" Value="{x:Null}" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="Magenta" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="DataGridCell" x:Key="CellRight">
<Setter Property="Margin" Value="4 0"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Background" Value="{x:Null}" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="Magenta" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGridRow}" x:Key="RowStyle">
<Setter Property="Background" Value="{x:Null}" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Style.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="True"/>
<Condition Property="IsSelected" Value="True"/>
<Condition Property="Selector.IsSelectionActive" Value="False"/>
</MultiTrigger.Conditions>
<Setter Property="Foreground" Value="Magenta" />
</MultiTrigger>
<DataTrigger Binding="{Binding Use}" Value="False">
<Setter Property="IsEnabled" Value="False" />
</DataTrigger>
</Style.Triggers>
</Style>
<!--TextBlock-->
<Style x:Key="styleTextBlock" TargetType="TextBlock">
<Setter Property="TextAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Width" Value="80"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="Margin" Value="0,0,0,0"/>
</Style>
<Style x:Key="styleTextBlockSmall" TargetType="TextBlock">
<Setter Property="TextAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Width" Value="100"/>
<Setter Property="FontSize" Value="16"/>
</Style>
<Style x:Key="StRegisterPatternTextBlock" TargetType="TextBlock">
<Setter Property="Foreground" Value="WhiteSmoke"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Margin" Value="7, 0, 7, 0"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<!--TextBox-->
<Style x:Key="styleTextBox" TargetType="TextBox">
<Setter Property="TextAlignment" Value="center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Width" Value="200"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="Margin" Value="0,0,0,0"/>
</Style>
<Style x:Key="styleTextBoxValue" TargetType="TextBox">
<Setter Property="Width" Value="100"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="TextAlignment" Value="Right"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style x:Key="styleTextBoxSmall" TargetType="TextBox">
<Setter Property="Width" Value="68"/>
<Setter Property="Height" Value="26"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="TextAlignment" Value="Right"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style x:Key="styleTextBoxVerySmall" TargetType="TextBox">
<Setter Property="Width" Value="55"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="Regular"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="TextAlignment" Value="Right"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style x:Key="styleTextBoxRcpValue" TargetType="TextBox">
<Setter Property="Height" Value="25"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<!--ListView-->
<Style x:Key="styleListViewItem" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Background" Value="WhiteSmoke"/>
</Style>
<Style x:Key="styleGridViewColumnHeader" TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="10,3,10,3"/>
</Style>
<Style x:Key="ListViewStyle" TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="Black"/>
</Style>
<Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="Moccasin"/>
</Style>
<Style x:Key="styleCalendar" TargetType="{x:Type Calendar}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Calendar}">
<Viewbox Width="320"
Height="320">
<CalendarItem x:Name="PART_CalendarItem"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"/>
</Viewbox>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="DataGridCell" x:Key="CellCenterPatternResult">
<Setter Property="Margin" Value="4 0"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="{Binding Status, Converter={StaticResource patternResultColorConverter}}"/>
</Style>
<Style TargetType="DataGridCell" x:Key="CellCenterAlignResult">
<Setter Property="Margin" Value="4 0"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="{Binding AlignStatus, Converter={StaticResource alignResultColorConverter}}"/>
</Style>
<Style TargetType="DataGridCell" x:Key="CellCenterInspResult">
<Setter Property="Margin" Value="4 0"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="{Binding InspStatus, Converter={StaticResource inspResultColorConverter}}"/>
</Style>
<!--CheckBox-->
<Style x:Key="styleToggleSwitch" TargetType="{x:Type CheckBox}">
<!--<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />-->
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Background" Value="Black" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<ControlTemplate.Resources>
<Storyboard x:Key="OnChecking">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="slider" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="27" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="OnUnchecking">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="slider" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<DockPanel x:Name="dockPanel">
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" RecognizesAccessKey="True" VerticalAlignment="Center" />
<Grid>
<Border x:Name="BackgroundBorder" Background="WhiteSmoke" BorderThickness="1"
CornerRadius="14" Height="29" Width="56">
<!--<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FFB5B5B5" Offset="0" />
<GradientStop Color="#FFDEDEDE" Offset="0.1" />
<GradientStop Color="#FFEEEEEE" Offset="0.5" />
<GradientStop Color="#FFFAFAFA" Offset="0.5" />
<GradientStop Color="#FFFEFEFE" Offset="1" />
</LinearGradientBrush>
</Border.Background>-->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<!--<TextBlock x:Name="On" Text="On" Grid.Column="0" Margin="0,0,0,2"
FontSize="13" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="Off" Text="Off" Grid.Column="1" Margin="0,0,0,2"
FontSize="13" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Center"/>-->
<!--Ellipse x:Name="Off" Width="14" Height="14" Stroke="#FF7A7A7A" StrokeThickness="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" /-->
<!--Line x:Name="On" X1="0" Y1="0" X2="0" Y2="14" Stroke="#FF7A7A7A" StrokeThickness="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" /-->
</Grid>
</Border>
<Border Background="Black"
HorizontalAlignment="Left" x:Name="slider" VerticalAlignment="Center" Margin="4,0,0,0"
Width="21" Height="21" BorderThickness="1" CornerRadius="15" RenderTransformOrigin="0.5,0.5">
<Border.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1" />
<SkewTransform AngleX="0" AngleY="0" />
<RotateTransform Angle="0" />
<TranslateTransform X="0" Y="0" />
</TransformGroup>
</Border.RenderTransform>
<!--<Border.Background>
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFF0F0F0" Offset="0" />
<GradientStop Color="#FFCDCDCD" Offset="0.1" />
<GradientStop Color="#FFFBFBFB" Offset="1" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Border.Background>-->
</Border>
</Grid>
</DockPanel>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource OnUnchecking}" x:Name="OnUnchecking_BeginStoryboard" />
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource OnChecking}" x:Name="OnChecking_BeginStoryboard" />
</Trigger.EnterActions>
<!--<Setter TargetName="On" Property="Stroke" Value="White" />
<Setter TargetName="Off" Property="Stroke" Value="White" />-->
<!-- Change Orange or Blue color here -->
<!--"{StaticResource CheckedOrange}"-->
<Setter TargetName="BackgroundBorder" Property="Background" Value="Lime" />
<!--<Setter TargetName="BackgroundBorder" Property="BorderBrush" Value="{StaticResource CheckedOrangeBorder}" />-->
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<!-- ToDo: Add Style for Isenabled == False -->
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleCheckBoxRcpValue" TargetType="CheckBox">
<Setter Property="Margin" Value="5,8,5,5"/>
</Style>
<!--ComboBox-->
<Style x:Key="styleComboBox" TargetType="ComboBox">
<Setter Property="Height" Value="30"/>
</Style>
<!--Border-->
<Style x:Key="stylePatternIdButtonBorder" TargetType="Border">
<Setter Property="BorderThickness" Value="2"/>
</Style>
<!--PasswordBox-->
<Style x:Key="stylePasswordInput" TargetType="PasswordBox">
<Setter Property="Width" Value="110"/>
<Setter Property="Height" Value="25"/>
<Setter Property="Margin" Value="1,7"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="PasswordChar" Value="*"/>
</Style>
<!--Button-->
<Style x:Key="styleMsgBoxButton" TargetType="Button">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Name="border"
CornerRadius="5"
Background="LightGray">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.7" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="stylePatternIdButton" TargetType="Button">
<Setter Property="Width" Value="65"/>
<Setter Property="Height" Value="65"/>
<Setter Property="Background" Value="Black"/>
</Style>
<Style x:Key="styleBtnNormalCamTool" TargetType="Button">
<Setter Property="Width" Value="33"/>
<Setter Property="Height" Value="33"/>
<Setter Property="Margin" Value="1"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnGreenCamTool" TargetType="Button">
<Setter Property="Width" Value="33"/>
<Setter Property="Height" Value="33"/>
<Setter Property="Margin" Value="1"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Lime"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnAction" TargetType="Button">
<Setter Property="Width" Value="35"/>
<Setter Property="Height" Value="35"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnGreenAction" TargetType="Button">
<Setter Property="Width" Value="35"/>
<Setter Property="Height" Value="35"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Lime"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnProc" TargetType="Button">
<Setter Property="Margin" Value="5"/>
<Setter Property="Height" Value="35"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="DimGray"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="FontWeight" Value="Regular"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="5" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnPatternSetting" TargetType="Button" BasedOn="{StaticResource styleBtnProc}">
<Setter Property="Width" Value="110"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="5" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnLightPlusMinus" TargetType="RepeatButton">
<Setter Property="Width" Value="19"/>
<Setter Property="Height" Value="19"/>
<Setter Property="Margin" Value="1"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border x:Name="jogBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnPlusMinus" TargetType="Button">
<Setter Property="Width" Value="19"/>
<Setter Property="Height" Value="19"/>
<Setter Property="Margin" Value="1"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--Pattern Type Button (SinglePattern/MultiPattern/DpIsp)-->
<Style x:Key="styleBtnPatternType" TargetType="Button">
<Setter Property="Margin" Value="2"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="WhiteSmoke"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="7" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--Auto Setup Sequence Flow Button-->
<Style x:Key="styleBtnSeqFlow" TargetType="Button">
<Setter Property="Width" Value="47"/>
<Setter Property="Height" Value="47"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="seqBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnSeqFlowRunning" TargetType="Button">
<Setter Property="Width" Value="51"/>
<Setter Property="Height" Value="51"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="seqBtnBorder" CornerRadius="100" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Border.Effect>
<DropShadowEffect BlurRadius="20" ShadowDepth="0" Color="Lime"/>
</Border.Effect>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<EventTrigger RoutedEvent="Button.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"
From="WhiteSmoke" To="Lime" Duration="0:0:1" RepeatBehavior="Forever" AutoReverse="True"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleBtnSeqTitle" TargetType="Button">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="WhiteSmoke"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="jogBtnBorder" CornerRadius="5" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="jogBtnBorder" Value="Lime"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleTrainOriginControlStraightButton" TargetType="Button">
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="Width" Value="40"/>
<Setter Property="Height" Value="40"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style x:Key="styleTrainOriginControlDiagonalButton" TargetType="Button">
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="Width" Value="30"/>
<Setter Property="Height" Value="30"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!--Pattern Thumbnail Radio Button-->
<Style x:Key="styleRbPatternThumbnail" TargetType="RadioButton">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border Name="border" BorderThickness="1"
BorderBrush="LightGray" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="Lime" />
<Setter TargetName="border" Property="BorderThickness" Value="2" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--Image-->
<Style x:Key="styleImgCamTool" TargetType="Image">
<Setter Property="Width" Value="25"/>
<Setter Property="Height" Value="25"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<Style x:Key="styleImgBtnAcition" TargetType="Image">
<Setter Property="Width" Value="31"/>
<Setter Property="Height" Value="31"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<Style x:Key="styleImgBtnPatternType" TargetType="Image">
<Setter Property="Width" Value="41"/>
<Setter Property="Height" Value="41"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<Style x:Key="styleImgContextMenuItemIcon" TargetType="Image">
<Setter Property="Margin" Value="2"/>
<Setter Property="Width" Value="23"/>
<Setter Property="Height" Value="23"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<Style x:Key="styleImgLightPlusMinus" TargetType="Image">
<Setter Property="Width" Value="15"/>
<Setter Property="Height" Value="15"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<Style x:Key="styleMotorObject" TargetType="Image">
<Setter Property="Width" Value="40"/>
<Setter Property="Height" Value="40"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<Style x:Key="styleImgClose" TargetType="Image">
<Setter Property="Width" Value="18"/>
<Setter Property="Height" Value="18"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
<!--TabItem-->
<Style x:Key="stylePlusTabItem" TargetType="TabItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Grid Background="{TemplateBinding Background}">
<Image Style="{StaticResource styleImgClose}" Margin="7,0,0,0"
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_add.png"/>
<ContentPresenter ContentSource="Header"/>
</Grid>
<!--<Border Background="{TemplateBinding Background}"
CornerRadius="7,7,0,0"
BorderThickness="1,1,1,0"
Padding="10,5,10,5">
<ContentPresenter ContentSource="Header"/>
</Border>-->
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="DarkRed"/>
</Trigger>
<Trigger Property="IsSelected" Value="False">
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="Transparent"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--TabItem-->
<Style x:Key="styleSubMenuRootTabItem" TargetType="TabItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Border Background="{TemplateBinding Background}"
CornerRadius="7,7,0,0"
BorderThickness="1,1,1,0"
Padding="10,5,10,5">
<ContentPresenter ContentSource="Header"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="DarkRed"/>
</Trigger>
<Trigger Property="IsSelected" Value="False">
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="Transparent"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--TreeView-->
<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
<Setter Property="Focusable" Value="False"/>
<Setter Property="Width" Value="16"/>
<Setter Property="Height" Value="16"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border Background="Transparent" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
<Image x:Name="PART_Image" RenderOptions.BitmapScalingMode="HighQuality"
Source="{Binding ImageSource}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="TreeViewItemStyle" TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="False"/>
<Setter Property="IsSelected" Value="{Binding IsInitiallySelected, Mode=OneTime}"/>
<Setter Property="KeyboardNavigation.AcceptsReturn" Value="True"/>
</Style>
<HierarchicalDataTemplate x:Key="CheckBoxItemTemplate" ItemsSource="{Binding Children, Mode=OneTime}">
<StackPanel Orientation="Horizontal">
<CheckBox Margin="4" Focusable="False" IsChecked="{Binding IsChecked}" VerticalAlignment="Center"/>
<ContentPresenter Margin="4,0,200,0" Content="{Binding Name, Mode=OneTime}" VerticalAlignment="Center"/>
</StackPanel>
</HierarchicalDataTemplate>
<Style x:Key="StRegisterPatternImage" TargetType="Image">
<Setter Property="Width" Value="24"/>
<Setter Property="Height" Value="24"/>
<Setter Property="Margin" Value="5, 0, -3, 0"/>
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style>
</ResourceDictionary>