4707 lines
272 KiB
XML
4707 lines
272 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:PrintApp="clr-namespace:Icarus"
|
|
xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
xmlns:EgtWPFLib48="clr-namespace:EgtWPFLib48;assembly=EgtWPFLib48"
|
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
>
|
|
|
|
<!--
|
|
Assign a Key to every Panel ViewModel to use
|
|
it in xaml file(ProjectView.xaml).
|
|
-->
|
|
<PrintApp:MainWindowVM x:Key="MainWindowVM"/>
|
|
<PrintApp:MyStatusBarVM x:Key="StatusBarVM"/>
|
|
<PrintApp:MySceneHostVM x:Key="MySceneHostVM"/>
|
|
<PrintApp:ProjManagerVM x:Key="ProjManagerVM"/>
|
|
<!--<EgtBEAMWALL:ProdManagerVM x:Key="ProdManagerVM"/>
|
|
<EgtBEAMWALL:MainMenuVM x:Key="MainMenuVM"/>-->
|
|
<PrintApp:ProjectVM x:Key="ProjectVM"/>
|
|
<PrintApp:MyShowPanelVM x:Key="ShowPanelVM"/>
|
|
<!--<EgtBEAMWALL:ShowBeamPanelVM x:Key="ShowBeamPanelVM"/>-->
|
|
<PrintApp:ViewPanelVM x:Key="ViewPanelVM"/>
|
|
<PrintApp:SecondaryWindowVM x:Key="SecondaryWindowVM"/>
|
|
<PrintApp:MyInstrumentPanelVM x:Key="InstrumentPanelVM"/>
|
|
<PrintApp:CurrLayerSliderVM x:Key="CurrLayerSliderVM"/>
|
|
<PrintApp:Printing3DPanelVM x:Key="Printing3DPanelVM"/>
|
|
<PrintApp:MachinePanelVM x:Key="MachinePanelVM"/>
|
|
<PrintApp:LeftPanelVM x:Key="LeftPanelVM"/>
|
|
<PrintApp:RightPanelVM x:Key="RightPanelVM"/>
|
|
<PrintApp:DispositionPanelVM x:Key="DispositionPanelVM"/>
|
|
<PrintApp:StartMachPanelVM x:Key="StartMachPanelVM"/>
|
|
<PrintApp:RibPanelVM x:Key="RibPanelVM"/>
|
|
<!--<PrintApp:ImportPanelVM x:Key="ImportPanelVM"/>-->
|
|
<PrintApp:TopPanelVM x:Key="TopPanelVM"/>
|
|
<PrintApp:ControllerInputPanelVM x:Key="ControllerInputPanelVM"/>
|
|
<PrintApp:SliceManagerVM x:Key="SliceManagerVM"/>
|
|
<PrintApp:TFSEditorVM x:Key="TFSEditorVM"/>
|
|
<PrintApp:CurrMachiningPanelVM x:Key="CurrMachiningPanelVM"/>
|
|
<PrintApp:MachiningDbVM x:Key="MachiningDbVM"/>
|
|
<PrintApp:MaterialDbVM x:Key="MaterialDbVM"/>
|
|
<PrintApp:SliderManagerVM x:Key="SliderManagerVM"/>
|
|
<PrintApp:RibParamPanelVM x:Key="RibParamPanelVM"/>
|
|
<PrintApp:ShellNumberPanelVM x:Key="ShellNumberPanelVM"/>
|
|
<PrintApp:ShellNumberParamPanelVM x:Key="ShellNumberParamPanelVM"/>
|
|
<PrintApp:FilledSolidPanelVM x:Key="FilledSolidPanelVM"/>
|
|
<PrintApp:FilledSolidParamPanelVM x:Key="FilledSolidParamPanelVM"/>
|
|
<PrintApp:SimulationPanelVM x:Key="SimulationPanelVM"/>
|
|
<PrintApp:ReferencePanelVM x:Key="ReferencePanelVM"/>
|
|
<PrintApp:ViewLayerManagerVM x:Key="ViewLayerManagerVM"/>
|
|
<PrintApp:MachineViewPanelVM x:Key="MachineViewPanelVM"/>
|
|
<!--<PrintApp:ModifyPartPanelVM x:Key="ModifyPartPanelVM"/>-->
|
|
<PrintApp:ManagePartPanelVM x:Key="ManagePartPanelVM"/>
|
|
<!--<EgtBEAMWALL:CALCPanelVM x:Key="CALCPanelVM"/>
|
|
<EgtBEAMWALL:PartParametersVM x:Key="PartParametersVM"/>
|
|
<EgtBEAMWALL:LeftPanelVM x:Key="LeftPanelVM"/>
|
|
<EgtBEAMWALL:BottomPanelVM x:Key="BottomPanelVM"/>
|
|
<EgtBEAMWALL:ConfigurationPageVM x:Key="ConfigurationPageVM"/>
|
|
<EgtBEAMWALL:TopPanelVM x:Key="TopPanelVM"/>
|
|
<EgtBEAMWALL:RawPartListVM x:Key="RawPartListVM"/>
|
|
<EgtBEAMWALL:BTLPartListVM x:Key="PartListVM"/>
|
|
<EgtBEAMWALL:FeatureListVM x:Key="FeatureListVM"/>
|
|
<EgtBEAMWALL:PartInRawPartListVM x:Key="PartInRawPartListVM"/>
|
|
<EgtBEAMWALL:FeatureInPartInRawPartListVM x:Key="FeatureInPartInRawPartListVM"/>
|
|
<EgtBEAMWALL:PParameterListVM x:Key="PParameterListVM"/>
|
|
<EgtBEAMWALL:QParameterListVM x:Key="QParameterListVM"/>
|
|
<EgtBEAMWALL:DuploQParameterListVM x:Key="DuploQParameterListVM"/>
|
|
<EgtBEAMWALL:BTLDataWndVM x:Key="BTLDataWndVM"/>
|
|
<EgtBEAMWALL:OptimizePanelVM x:Key="OptimizePanelVM"/>
|
|
<EgtBEAMWALL:FreeContourManagerVM x:Key="FreeContourManagerVM"/>
|
|
<EgtBEAMWALL:FreeContourInputVM x:Key="FreeContourInputVM"/>
|
|
<EgtBEAMWALL:FeatureManagerVM x:Key="FeatureManagerVM"/>
|
|
<EgtBEAMWALL:StatisticsVM x:Key="StatisticsVM"/>
|
|
<EgtBEAMWALL:PartManagerVM x:Key="PartManagerVM"/>
|
|
<EgtBEAMWALL:StatisticsTimePanelVM x:Key="StatisticsTimePanelVM"/>-->
|
|
<!--<OmagOFFICE:VeinMatchPanelVM x:Key="VeinMatchPanelVM"/>
|
|
<OmagOFFICE:OptionPanelVM x:Key="OptionPanelVM"/>
|
|
<OmagOFFICE:RawPartTabVM x:Key="RawPartTabVM"/>
|
|
<OmagOFFICE:NestingTabVM x:Key="NestingTabVM"/>
|
|
<OmagOFFICE:MachiningTabVM x:Key="MachiningTabVM"/>
|
|
<OmagOFFICE:SimulTabVM x:Key="SimulTabVM"/>-->
|
|
<!--
|
|
<EgtBEAMWALL:MyMachGroupPanelVM x:Key="MachGroupPanelVM"/>-->
|
|
|
|
<!--Colori predefiniti-->
|
|
<SolidColorBrush x:Key="EgaltechBlue1" Color="#FF4D84C4" />
|
|
<SolidColorBrush x:Key="EgaltechBlue2" Color="#FF7096CE" />
|
|
<SolidColorBrush x:Key="EgaltechBlue3" Color="#FF90ABD9" />
|
|
<SolidColorBrush x:Key="EgaltechBlue4" Color="#FFB2C3E4" />
|
|
<SolidColorBrush x:Key="EgaltechWhite" Color="#FFFFFFFF" />
|
|
<SolidColorBrush x:Key="EgaltechGray" Color="#FF585858" />
|
|
<SolidColorBrush x:Key="EgaltechLightGray" Color="LightGray" />
|
|
<SolidColorBrush x:Key="EgaltechUltralightGray" Color="#FFF2F2F2" />
|
|
<SolidColorBrush x:Key="EgaltechGreen" Color="#FF00FF00" />
|
|
|
|
<!--#92908d-->
|
|
<Color x:Key="Icarus_Gray_Color" R="146" G="144" B="141" A="255"/>
|
|
<SolidColorBrush x:Key="Icarus_Gray" Color="{StaticResource Icarus_Gray_Color}" />
|
|
<!--#3c89c9-->
|
|
<Color x:Key="Icarus_LightBlue_Color" R="60" G="137" B="201" A="255"/>
|
|
<SolidColorBrush x:Key="Icarus_LightBlue" Color="{StaticResource Icarus_LightBlue_Color}" />
|
|
<!--#2e5a81-->
|
|
<Color x:Key="Icarus_Blue_Color" R="46" G="90" B="129" A="255"/>
|
|
<SolidColorBrush x:Key="Icarus_Blue" Color="{StaticResource Icarus_Blue_Color}" />
|
|
<!--#50A388-->
|
|
<Color x:Key="Icarus_Green_Color" R="80" G="163" B="136" A="255"/>
|
|
<SolidColorBrush x:Key="Icarus_Green" Color="{StaticResource Icarus_Green_Color}" />
|
|
<!--#BC373E-->
|
|
<Color x:Key="Icarus_Orange_Color" R="188" G="55" B="62" A="255"/>
|
|
<SolidColorBrush x:Key="Icarus_Orange" Color="{StaticResource Icarus_Orange_Color}" />
|
|
<!--#A74C77-->
|
|
<Color x:Key="Icarus_Purple_Color" R="167" G="76" B="119" A="255"/>
|
|
<SolidColorBrush x:Key="Icarus_Purple" Color="{StaticResource Icarus_Purple_Color}" />
|
|
|
|
<!--Colori per EgtWPFLib5-->
|
|
<SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
|
|
|
|
<!--Risorsa che toglie le animazioni dai menù popup per evitare che i menù mru di scelta dei file rimangano aperti se il file è grosso -->
|
|
<!--o viene eseguito un lua che non aggiorna l'interfaccia-->
|
|
<PopupAnimation x:Key="{x:Static SystemParameters.MenuPopupAnimationKey}">None</PopupAnimation>
|
|
|
|
<!--convertert per visibilita' stringa di testo con misure in StatusBar-->
|
|
<PrintApp:StringToVisibilityConverter x:Key="StringToVisibilityConverter"/>
|
|
|
|
<GridLength x:Key="TitleBarHeight">30</GridLength>
|
|
<Thickness x:Key="WindowBorder_Thickness">2</Thickness>
|
|
<sys:Double x:Key="WindowBorder_Height">2</sys:Double>
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- FocusVisual standard-->
|
|
<Style x:Key="FocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Button -->
|
|
|
|
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
|
|
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#afcfe9"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Background" Color="#b5b4b2"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
|
|
|
|
<SolidColorBrush x:Key="Button.NoBackground.MouseOver.Background" Color="White"/>
|
|
<SolidColorBrush x:Key="Button.NoBackground.MouseOver.Border" Color="#FF3C7FB1"/>
|
|
<SolidColorBrush x:Key="Button.NoBackground.Pressed.Background" Color="#afcfe9"/>
|
|
<SolidColorBrush x:Key="Button.NoBackground.Pressed.Border" Color="#FF2C628B"/>
|
|
<SolidColorBrush x:Key="Button.NoBackground.Disabled.Background" Color="#FFF4F4F4"/>
|
|
<SolidColorBrush x:Key="Button.NoBackground.Disabled.Border" Color="#FFADB2B5"/>
|
|
<SolidColorBrush x:Key="Button.NoBackground.Disabled.Foreground" Color="#FF838383"/>
|
|
|
|
<ControlTemplate x:Key="Button.HalfRoundButton" TargetType="{x:Type Button}">
|
|
<Border x:Name="border" CornerRadius="4,4,0,0" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<ControlTemplate x:Key="Button.NoBackgroundButton" TargetType="{x:Type Button}">
|
|
<Border x:Name="border" CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.NoBackground.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.NoBackground.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.NoBackground.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.NoBackground.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.NoBackground.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.NoBackground.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.NoBackground.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<Style TargetType="{x:Type Button}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="ToolTipService.ShowOnDisabled" Value="True"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--Template che permette di andare a capo-->
|
|
<DataTemplate x:Key="WrapButton_DataTemplate">
|
|
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding}"/>
|
|
</DataTemplate>
|
|
|
|
<Style x:Key="ToolBar_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
<Style x:Key="ToolBar_SmallButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="20"/>
|
|
<Setter Property="Width" Value="20"/>
|
|
</Style>
|
|
<Style x:Key="ToolBar_TextButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="70"/>
|
|
</Style>
|
|
<Style x:Key="OptionPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="Width" Value="60"/>
|
|
</Style>
|
|
<Style x:Key="OptionPanel_TextButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
</Style>
|
|
<Style x:Key="OptionPanel_TextWrapButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="ContentTemplate" Value="{StaticResource WrapButton_DataTemplate}" />
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
|
|
<Setter Property="Height" Value="45"/>
|
|
</Style>
|
|
<Style x:Key="OptionPanel_NestingButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="Width" Value="60"/>
|
|
</Style>
|
|
<Style x:Key="CompoWindow_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="40"/>
|
|
</Style>
|
|
<Style x:Key="EgtWPFLib5_InputButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="60"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_TextButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
</Style>
|
|
|
|
<Style x:Key="PrintParamDb_Button" TargetType="{x:Type Button}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Background" Value="{StaticResource EgaltechWhite}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="ProjManager_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="25"/>
|
|
<Setter Property="Width" Value="25"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TitleBar_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanel_CurrMachining_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="4"/>
|
|
<Setter Property="Template" Value="{StaticResource Button.HalfRoundButton}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="SliceMannager_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="28"/>
|
|
<Setter Property="Width" Value="64"/>
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Template" Value="{StaticResource Button.HalfRoundButton}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="RightPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="24"/>
|
|
<Setter Property="Width" Value="64"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
</Style>
|
|
|
|
<Style x:Key="BottomPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="White" Opacity="0.01"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template" Value="{StaticResource Button.NoBackgroundButton}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="RightPanel_HalfRound_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="24"/>
|
|
<Setter Property="Width" Value="64"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="1,1,1,0"/>
|
|
<Setter Property="Template" Value="{StaticResource Button.HalfRoundButton}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="SimulationPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="86"/>
|
|
<Setter Property="Width" Value="86"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ToggleButton Style -->
|
|
<sys:Double x:Key="ToggleButton.Image.Height">NaN</sys:Double>
|
|
<sys:Double x:Key="ToggleButton.Image.Width">NaN</sys:Double>
|
|
|
|
<Style TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Button.IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="White"/>
|
|
<!--<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>-->
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<ControlTemplate x:Key="ToggleButton.NoBackgroundButton" TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Button.IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.NoBackground.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.NoBackground.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.NoBackground.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.NoBackground.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="White"/>
|
|
<!--<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>-->
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.NoBackground.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.NoBackground.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.NoBackground.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<Style x:Key="ToolBar_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ToolBar_TextToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="70"/>
|
|
</Style>
|
|
|
|
<Style x:Key="OptionPanel_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
</Style>
|
|
|
|
<Style x:Key="OptionPanel_NestingToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="Width" Value="60"/>
|
|
</Style>
|
|
|
|
<Style x:Key="CompoWindow_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="40"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MainMenu_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Background" Value="{StaticResource Omag_White}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Omag_DarkGray}"/>
|
|
<Setter Property="TextBlock.FontWeight" Value="Normal"/>
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="90"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="TextBlock.FontWeight" Value="ExtraBold"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="MainMenu_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Background" Value="{StaticResource EgaltechWhite}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource EgaltechGray}"/>
|
|
<Setter Property="TextBlock.FontWeight" Value="Normal"/>
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="90"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Option_ColorButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Padding" Value="5"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#FFB8C3CD"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="OpacityMask" Value="#33FF0000"/>
|
|
</Trigger>
|
|
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Background" Value="#FFF4F4F4"/>
|
|
<Setter Property="BorderBrush" Value="#FFADB2B5"/>
|
|
<Setter Property="TextElement.Foreground" Value="#FF838383"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="ModifyMode_ToggleButton" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Background" Value="{StaticResource EgaltechWhite}"/>
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--<Style x:Key="PrintParam_ToggleButton" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Background" Value="{StaticResource EgaltechWhite}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>-->
|
|
|
|
<Style x:Key="TopPanel_Modify_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}" />
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="4"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" CornerRadius="4,4,0,0" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Button.IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="White"/>
|
|
<!--<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>-->
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanel_ModifyMode_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="28"/>
|
|
<Setter Property="Width" Value="125"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="28"/>
|
|
<Setter Property="Width" Value="125"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="Padding" Value="20,0,0,0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Button.IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="White"/>
|
|
<Setter Property="CornerRadius" TargetName="border" Value="4,0,0,4"/>
|
|
<Setter Property="Width" Value="136"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_Parameters_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="28"/>
|
|
<Setter Property="Width" Value="125"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="Padding" Value="20,0,0,0"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="Width" Value="136"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="StatusBar_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="BottomPanel_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="White" Opacity="0.01"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template" Value="{StaticResource ToggleButton.NoBackgroundButton}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TFSExpand_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template" Value="{StaticResource ToggleButton.NoBackgroundButton}"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- TextBlock -->
|
|
|
|
<Style x:Key="BaseTextBlock" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="ToolsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="Margin" Value="10,0,0,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MachiningsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="Margin" Value="10,0,0,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MachiningsToolTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="Margin" Value="10,5,0,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ValidationErrorTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="FontStyle" Value="Italic"/>
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
<Setter Property="Foreground" Value="Red"/>
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
<Setter Property="Margin" Value="0,1"/>
|
|
</Style>
|
|
|
|
<Style x:Key="OptionTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="10,0,10,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MachParamTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="5,0,5,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="PartParam_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="10,0,10,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanelFixed_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanelData_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="SliceManager_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="StatusBar_SnapPointType_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="FontSize" Value="35"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Title_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<!--<Setter Property="FontSize" Value="18"/>-->
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TSFEditor_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="DialogWindow_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ParameterList_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ControllerInput_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Simulation_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Version_AboutBox_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
<Setter Property="FontSize" Value="24"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Copyright_AboutBox_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="Foreground" Value="black"/>
|
|
<Setter Property="FontSize" Value="17"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Move_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MeasureUnit_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlock}">
|
|
<Setter Property="FontSize" Value="10"/>
|
|
<Setter Property="FontStyle" Value="Italic"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- TextBox -->
|
|
|
|
<SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
|
|
<SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
|
|
|
|
<Style TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
|
<Setter Property="ExplicitUpdateSource" Value="EnterKeyPress"/>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type EgtWPFLib5:EgtTextBox2}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox2}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
|
<Setter Property="TextAlignment" Value="Right"/>
|
|
<Setter Property="ExplicitUpdateSource" Value="EnterKeyPress"/>
|
|
<Setter Property="ResetValueOnLostFocus" Value="True"/>
|
|
</Style>
|
|
|
|
<Style x:Key="BaseTextBox" TargetType="{x:Type TextBox}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="TextAlignment" Value="Right"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ToolsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MachiningsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Margin" Value="0,0,0,10"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MachiningsToolTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="OptionTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
</Style>
|
|
<Style x:Key="OptionTextBox2" TargetType="{x:Type EgtWPFLib5:EgtTextBox2}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox2}}">
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="PartParam_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Width" Value="150"/>
|
|
<Setter Property="Margin" Value="5"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Width" Value="50"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_TextBox2" TargetType="{x:Type EgtWPFLib5:EgtTextBox2}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox2}}">
|
|
<Setter Property="Width" Value="50"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ControllerInputPanel_TextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource BaseTextBox}">
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Name_MachinePanel" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ParameterList_TextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource BaseTextBox}">
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
|
</Style>
|
|
<Style x:Key="ParameterList_TextBox2" TargetType="{x:Type EgtWPFLib5:EgtTextBox2}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox2}}">
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
|
<Setter Property="ExplicitUpdateSource" Value="EnterKeyPressOrLostFocus"/>
|
|
<Setter Property="ResetValueOnLostFocus" Value="False"/>
|
|
</Style>
|
|
|
|
<Style x:Key="SimulationPanel_Axes_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox2}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox2}}">
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib5:EgtTextBox2}">
|
|
<TextBox Name="PART_TextBox"
|
|
AcceptsReturn="{TemplateBinding AcceptsReturn}"
|
|
AcceptsTab="{TemplateBinding AcceptsTab}"
|
|
AllowDrop="{TemplateBinding AllowDrop}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CacheMode="{TemplateBinding CacheMode}"
|
|
CaretBrush="{TemplateBinding CaretBrush}"
|
|
CharacterCasing="{TemplateBinding CharacterCasing}"
|
|
Clip="{TemplateBinding Clip}"
|
|
ClipToBounds="{TemplateBinding ClipToBounds}"
|
|
ContextMenu="{TemplateBinding ContextMenu}"
|
|
Cursor="{TemplateBinding Cursor}"
|
|
DataContext="{TemplateBinding DataContext}"
|
|
Effect="{TemplateBinding Effect}"
|
|
FlowDirection="{TemplateBinding FlowDirection}"
|
|
Focusable="{TemplateBinding Focusable}"
|
|
FocusVisualStyle="{TemplateBinding FocusVisualStyle}"
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
FontStretch="{TemplateBinding FontStretch}"
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
ForceCursor="{TemplateBinding ForceCursor}"
|
|
Foreground="{TemplateBinding Foreground}"
|
|
Height="{TemplateBinding Height}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"
|
|
InputScope="{TemplateBinding InputScope}"
|
|
IsEnabled="{TemplateBinding IsEnabled}"
|
|
IsHitTestVisible="{TemplateBinding IsHitTestVisible}"
|
|
IsManipulationEnabled="{TemplateBinding IsManipulationEnabled}"
|
|
IsReadOnly="{TemplateBinding IsReadOnly}"
|
|
IsTabStop="{TemplateBinding IsTabStop}"
|
|
IsReadOnlyCaretVisible="{TemplateBinding IsReadOnlyCaretVisible}"
|
|
IsUndoEnabled="{TemplateBinding IsUndoEnabled}"
|
|
Language="{TemplateBinding Language}"
|
|
LayoutTransform="{TemplateBinding LayoutTransform}"
|
|
Margin="0"
|
|
MaxHeight="{TemplateBinding MaxHeight}"
|
|
MaxLength="{TemplateBinding MaxLength}"
|
|
MaxLines="{TemplateBinding MaxLines}"
|
|
MaxWidth="{TemplateBinding MaxWidth}"
|
|
MinHeight="{TemplateBinding MinHeight}"
|
|
MinLines="{TemplateBinding MinLines}"
|
|
MinWidth="{TemplateBinding MinWidth}"
|
|
Opacity="{TemplateBinding Opacity}"
|
|
OpacityMask="{TemplateBinding OpacityMask}"
|
|
OverridesDefaultStyle="{TemplateBinding OverridesDefaultStyle}"
|
|
Padding="{TemplateBinding Padding}"
|
|
RenderTransform="{TemplateBinding RenderTransform}"
|
|
RenderTransformOrigin="{TemplateBinding RenderTransformOrigin}"
|
|
SelectionBrush="{TemplateBinding SelectionBrush}"
|
|
SelectionOpacity="{TemplateBinding SelectionOpacity}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TabIndex="{TemplateBinding TabIndex}"
|
|
Tag="{TemplateBinding Tag}"
|
|
TextAlignment="{TemplateBinding TextAlignment}"
|
|
TextDecorations="{TemplateBinding TextDecorations}"
|
|
TextWrapping="{TemplateBinding TextWrapping}"
|
|
ToolTip="{TemplateBinding ToolTip}"
|
|
Uid="{TemplateBinding Uid}"
|
|
UndoLimit="{TemplateBinding UndoLimit}"
|
|
UseLayoutRounding="{TemplateBinding UseLayoutRounding}"
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}"
|
|
Visibility="{TemplateBinding Visibility}"
|
|
Width="{TemplateBinding Width}">
|
|
<TextBox.Style>
|
|
<Style TargetType="{x:Type TextBox}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
|
<Border x:Name="border" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="True">
|
|
<ScrollViewer x:Name="PART_ContentHost"
|
|
Focusable="false"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
VerticalScrollBarVisibility="Hidden"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.Focus.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</TextBox.Style>
|
|
</TextBox>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="AboutBox_TextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="IsReadOnly" Value="True"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Image -->
|
|
|
|
<Style x:Key="Button_Image" TargetType="{x:Type Image}">
|
|
<Setter Property="Stretch" Value="Uniform" />
|
|
</Style>
|
|
|
|
<Style x:Key="SimulationButton_Image" TargetType="{x:Type Image}">
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="Width" Value="60"/>
|
|
<Setter Property="Stretch" Value="Uniform" />
|
|
</Style>
|
|
|
|
<!--<Style x:Key="ToggleButton_ControlTemplate_Image" TargetType="{x:Type Image}">
|
|
<Setter Property="Stretch" Value="Uniform" />
|
|
<Setter Property="Focusable" Value="False" />
|
|
<Setter Property="HorizontalAlignment" Value="{TemplateBinding HorizontalContentAlignment}" />
|
|
<Setter Property="Margin" Value="{TemplateBinding Padding}" />
|
|
<Setter Property="SnapsToDevicePixels" Value="{TemplateBinding SnapsToDevicePixels}" />
|
|
<Setter Property="VerticalAlignment" Value="{TemplateBinding VerticalContentAlignment}" />
|
|
</Style>-->
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ContextMenu -->
|
|
|
|
<Style x:Key="Icarus_ContextMenu" TargetType="{x:Type ContextMenu}">
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
<Setter Property="OverridesDefaultStyle" Value="True" />
|
|
<Setter Property="Grid.IsSharedSizeScope" Value="true" />
|
|
<Setter Property="HasDropShadow" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ContextMenu}">
|
|
<Border x:Name="Border"
|
|
CornerRadius="4"
|
|
Background="White"
|
|
BorderBrush="{StaticResource Icarus_Gray}"
|
|
BorderThickness="1"
|
|
Padding="4">
|
|
<StackPanel IsItemsHost="True"
|
|
KeyboardNavigation.DirectionalNavigation="Cycle" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="HasDropShadow" Value="true">
|
|
<Setter TargetName="Border" Property="Padding" Value="4" />
|
|
<Setter TargetName="Border" Property="CornerRadius" Value="4" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
|
|
<!-- ContextMenuItem -->
|
|
|
|
<!-- Fill Brushes -->
|
|
|
|
<LinearGradientBrush x:Key="NormalBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#FFF" Offset="0.0"/>
|
|
<GradientStop Color="#CCC" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="HorizontalNormalBrush" StartPoint="0,0" EndPoint="1,0">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#FFF" Offset="0.0"/>
|
|
<GradientStop Color="#CCC" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="LightBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#FFF" Offset="0.0"/>
|
|
<GradientStop Color="#EEE" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="HorizontalLightBrush" StartPoint="0,0" EndPoint="1,0">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#FFF" Offset="0.0"/>
|
|
<GradientStop Color="#EEE" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="DarkBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#FFF" Offset="0.0"/>
|
|
<GradientStop Color="#AAA" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="PressedBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#BBB" Offset="0.0"/>
|
|
<GradientStop Color="#EEE" Offset="0.1"/>
|
|
<GradientStop Color="#EEE" Offset="0.9"/>
|
|
<GradientStop Color="#FFF" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" />
|
|
|
|
<SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />
|
|
|
|
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF" />
|
|
|
|
<SolidColorBrush x:Key="SelectedBackgroundBrush" Color="#DDD" />
|
|
|
|
<!-- Border Brushes -->
|
|
|
|
<LinearGradientBrush x:Key="NormalBorderBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#CCC" Offset="0.0"/>
|
|
<GradientStop Color="#444" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="HorizontalNormalBorderBrush" StartPoint="0,0" EndPoint="1,0">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#CCC" Offset="0.0"/>
|
|
<GradientStop Color="#444" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="DefaultedBorderBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#777" Offset="0.0"/>
|
|
<GradientStop Color="#000" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="PressedBorderBrush" StartPoint="0,0" EndPoint="0,1">
|
|
<GradientBrush.GradientStops>
|
|
<GradientStopCollection>
|
|
<GradientStop Color="#444" Offset="0.0"/>
|
|
<GradientStop Color="#888" Offset="1.0"/>
|
|
</GradientStopCollection>
|
|
</GradientBrush.GradientStops>
|
|
</LinearGradientBrush>
|
|
|
|
<SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />
|
|
|
|
<SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />
|
|
|
|
<SolidColorBrush x:Key="LightBorderBrush" Color="#AAA" />
|
|
|
|
<!-- Miscellaneous Brushes -->
|
|
<SolidColorBrush x:Key="GlyphBrush" Color="#444" />
|
|
|
|
<SolidColorBrush x:Key="LightColorBrush" Color="#DDD" />
|
|
<Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="Separator">
|
|
<Setter Property="Height" Value="1"/>
|
|
<Setter Property="Margin" Value="0,4,0,4"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Separator">
|
|
<Border BorderBrush="{StaticResource SolidBorderBrush}"
|
|
BorderThickness="1"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- TopLevelHeader -->
|
|
<ControlTemplate x:Key="{x:Static MenuItem.TopLevelHeaderTemplateKey}" TargetType="MenuItem">
|
|
<Border Name="Border">
|
|
<Grid>
|
|
<ContentPresenter Margin="6,3,6,3"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True" />
|
|
<Popup Name="Popup"
|
|
Placement="Bottom"
|
|
IsOpen="{TemplateBinding IsSubmenuOpen}"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
PopupAnimation="Fade">
|
|
<Border Name="SubmenuBorder"
|
|
SnapsToDevicePixels="True"
|
|
Background="{StaticResource WindowBackgroundBrush}"
|
|
BorderBrush="{StaticResource SolidBorderBrush}"
|
|
BorderThickness="1" >
|
|
<StackPanel IsItemsHost="True"
|
|
KeyboardNavigation.DirectionalNavigation="Cycle" />
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
|
<Setter TargetName="Popup" Property="PopupAnimation" Value="None"/>
|
|
</Trigger>
|
|
<Trigger Property="IsHighlighted" Value="true">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource NormalBrush}"/>
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="Transparent"/>
|
|
</Trigger>
|
|
<Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="True">
|
|
<Setter TargetName="SubmenuBorder" Property="CornerRadius" Value="0,0,4,4"/>
|
|
<Setter TargetName="SubmenuBorder" Property="Padding" Value="0,0,0,3"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<!-- TopLevelItem -->
|
|
<ControlTemplate x:Key="{x:Static MenuItem.TopLevelItemTemplateKey}" TargetType="MenuItem">
|
|
<Border Name="Border">
|
|
<Grid>
|
|
<ContentPresenter Margin="6,3,6,3"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True" />
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsHighlighted" Value="true">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource NormalBrush}"/>
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="Transparent"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<!-- SubmenuItem -->
|
|
<ControlTemplate x:Key="{x:Static MenuItem.SubmenuItemTemplateKey}" TargetType="MenuItem">
|
|
<Border Name="Border"
|
|
Padding="3,3,3,3">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="12"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Height="8"
|
|
Width="8"
|
|
Background="{StaticResource Icarus_Gray}"
|
|
BorderThickness="0"
|
|
HorizontalAlignment="Left"/>
|
|
<ContentPresenter Name="HeaderHost"
|
|
Grid.Column="1"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True"
|
|
VerticalAlignment="Center"
|
|
TextBlock.FontSize="12"/>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<!--<Trigger Property="Icon" Value="{x:Null}">
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Hidden"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="CheckMark" Property="Visibility" Value="Visible"/>
|
|
</Trigger>
|
|
<Trigger Property="IsCheckable" Value="true">
|
|
<Setter TargetName="Check" Property="Visibility" Value="Visible"/>
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Hidden"/>
|
|
</Trigger>-->
|
|
<Trigger Property="IsHighlighted" Value="true">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource SelectedBackgroundBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
<!--<Border Name="Border">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="Icon"/>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="Shortcut"/>
|
|
<ColumnDefinition Width="13"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Name="Icon"
|
|
Margin="6,0,6,0"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Icon"/>
|
|
<Border Name="Check"
|
|
Width="13" Height="13"
|
|
Visibility="Collapsed"
|
|
Margin="6,0,6,0"
|
|
Background="{StaticResource NormalBrush}"
|
|
BorderThickness="1"
|
|
BorderBrush="{StaticResource NormalBorderBrush}">
|
|
<Path Name="CheckMark"
|
|
Width="7" Height="7"
|
|
Visibility="Hidden"
|
|
SnapsToDevicePixels="False"
|
|
Stroke="{StaticResource GlyphBrush}"
|
|
StrokeThickness="2"
|
|
Data="M 0 0 L 7 7 M 0 7 L 7 0" />
|
|
</Border>
|
|
<ContentPresenter Name="HeaderHost"
|
|
Grid.Column="1"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True"/>
|
|
<TextBlock x:Name="InputGestureText"
|
|
Grid.Column="2"
|
|
Text="{TemplateBinding InputGestureText}"
|
|
Margin="5,2,0,2"
|
|
DockPanel.Dock="Right" />
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Icon" Value="{x:Null}">
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Hidden"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="CheckMark" Property="Visibility" Value="Visible"/>
|
|
</Trigger>
|
|
<Trigger Property="IsCheckable" Value="true">
|
|
<Setter TargetName="Check" Property="Visibility" Value="Visible"/>
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Hidden"/>
|
|
</Trigger>
|
|
<Trigger Property="IsHighlighted" Value="true">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource SelectedBackgroundBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>-->
|
|
</ControlTemplate>
|
|
|
|
<!-- SubmenuHeader -->
|
|
<ControlTemplate x:Key="{x:Static MenuItem.SubmenuHeaderTemplateKey}" TargetType="MenuItem">
|
|
<Border Name="Border">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="Icon"/>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="Shortcut"/>
|
|
<ColumnDefinition Width="13"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Name="Icon"
|
|
Margin="6,0,6,0"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Icon"/>
|
|
<ContentPresenter Name="HeaderHost"
|
|
Grid.Column="1"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True"/>
|
|
<TextBlock x:Name="InputGestureText"
|
|
Grid.Column="2"
|
|
Text="{TemplateBinding InputGestureText}"
|
|
Margin="5,2,2,2"
|
|
DockPanel.Dock="Right"/>
|
|
<Path Grid.Column="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Data="M 0 0 L 0 7 L 4 3.5 Z"
|
|
Fill="{StaticResource GlyphBrush}" />
|
|
<Popup Name="Popup"
|
|
Placement="Right"
|
|
HorizontalOffset="-4"
|
|
IsOpen="{TemplateBinding IsSubmenuOpen}"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
PopupAnimation="Fade">
|
|
<Border Name="SubmenuBorder"
|
|
SnapsToDevicePixels="True"
|
|
Background="{StaticResource WindowBackgroundBrush}"
|
|
BorderBrush="{StaticResource SolidBorderBrush}"
|
|
BorderThickness="1" >
|
|
<StackPanel IsItemsHost="True"
|
|
KeyboardNavigation.DirectionalNavigation="Cycle" />
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Icon" Value="{x:Null}">
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed"/>
|
|
</Trigger>
|
|
<Trigger Property="IsHighlighted" Value="true">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource SelectedBackgroundBrush}"/>
|
|
</Trigger>
|
|
<Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="True">
|
|
<Setter TargetName="SubmenuBorder" Property="CornerRadius" Value="4"/>
|
|
<Setter TargetName="SubmenuBorder" Property="Padding" Value="0,3,0,3"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<!-- MenuItem Style -->
|
|
<Style x:Key="Icarus_MenuItem" TargetType="{x:Type MenuItem}">
|
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="Role" Value="TopLevelHeader">
|
|
<Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelHeaderTemplateKey}}"/>
|
|
<Setter Property="Grid.IsSharedSizeScope" Value="true"/>
|
|
</Trigger>
|
|
<Trigger Property="Role" Value="TopLevelItem">
|
|
<Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelItemTemplateKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="Role" Value="SubmenuHeader">
|
|
<Setter Property="Template" Value="{StaticResource {x:Static MenuItem.SubmenuHeaderTemplateKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="Role" Value="SubmenuItem">
|
|
<Setter Property="Template" Value="{StaticResource {x:Static MenuItem.SubmenuItemTemplateKey}}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ProgressBar -->
|
|
|
|
<SolidColorBrush x:Key="ProgressBar.Progress" Color="#FF06B025"/>
|
|
<SolidColorBrush x:Key="ProgressBar.Background" Color="#FFE6E6E6"/>
|
|
<SolidColorBrush x:Key="ProgressBar.Border" Color="#FFBCBCBC"/>
|
|
<Style TargetType="{x:Type ProgressBar}">
|
|
<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="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ProgressBar}">
|
|
<Grid x:Name="TemplateRoot">
|
|
<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>
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<Grid>
|
|
<Rectangle x:Name="PART_Track"/>
|
|
<Grid x:Name="PART_Indicator" ClipToBounds="true" HorizontalAlignment="Left">
|
|
<Rectangle x:Name="Indicator" Fill="{TemplateBinding Foreground}"/>
|
|
<Rectangle x:Name="Animation" Fill="{TemplateBinding Foreground}" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Orientation" Value="Vertical">
|
|
<Setter Property="LayoutTransform" TargetName="TemplateRoot">
|
|
<Setter.Value>
|
|
<RotateTransform Angle="-90"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="IsIndeterminate" Value="true">
|
|
<Setter Property="Visibility" TargetName="Indicator" Value="Collapsed"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Icarus_ProgressBar" TargetType="{x:Type ProgressBar}" BasedOn="{StaticResource {x:Type ProgressBar}}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Green}"/>
|
|
<Setter Property="Height" Value="15"/>
|
|
<Setter Property="Minimum" Value="0"/>
|
|
<Setter Property="Maximum" Value="100"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Border -->
|
|
|
|
<Style x:Key="DefaultBorder" TargetType="{x:Type Border}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="Border" TargetType="{x:Type Border}">
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Omag_Gray}"/>
|
|
<Setter Property="CornerRadius" Value="3"/>
|
|
<Setter Property="Padding" Value="3"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanelTitle_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
<Setter Property="CornerRadius" Value="3" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource EgaltechBlue1}" />
|
|
<Setter Property="Padding" Value="3,0,0,0" />
|
|
</Style>
|
|
|
|
<Style x:Key="RightPanel_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
<Setter Property="CornerRadius" Value="3" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource EgaltechBlue1}" />
|
|
<Setter Property="Padding" Value="5" />
|
|
</Style>
|
|
|
|
<Style x:Key="BottomBlueRow_Border" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="{StaticResource Icarus_LightBlue}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Blue}"/>
|
|
<Setter Property="BorderThickness" Value="0,0,0,5"/>
|
|
<Setter Property="CornerRadius" Value="0,0,0,0"/>
|
|
<Setter Property="Padding" Value="0,0,0,0"/>
|
|
<Setter Property="Margin" Value="0,0,0,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="BottomGrayRow_Border" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="0,0,0,5"/>
|
|
<Setter Property="CornerRadius" Value="4,4,0,0"/>
|
|
<Setter Property="Padding" Value="0,0,0,0"/>
|
|
<Setter Property="Margin" Value="0,0,0,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanel_Border" TargetType="{x:Type Border}" BasedOn="{StaticResource DefaultBorder}">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="CornerRadius" Value="4,4,0,0"/>
|
|
<Setter Property="Padding" Value="4"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanel_ModifyMode_Border" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="CornerRadius" Value="4"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_Popup_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}" />
|
|
<Setter Property="Padding" Value="4" />
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_PopupButton_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}" />
|
|
<Setter Property="Padding" Value="2.5,4,2.5,4" />
|
|
</Style>
|
|
|
|
<Style x:Key="ViewLayerManager_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="White" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="Padding" Value="5" />
|
|
</Style>
|
|
|
|
<Style x:Key="StatusBar_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="White" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="CornerRadius" Value="4,4,0,0" />
|
|
<Setter Property="Padding" Value="5" />
|
|
</Style>
|
|
|
|
<Style x:Key="Title_Border" TargetType="Border">
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="CornerRadius" Value="4"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="SimulPanel_KeyValue_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}" />
|
|
<Setter Property="Padding" Value="4"/>
|
|
<Setter Property="Margin" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="WhiteBottomBlueRow_Border" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Blue}"/>
|
|
<Setter Property="BorderThickness" Value="0,0,0,5"/>
|
|
<Setter Property="CornerRadius" Value="8,8,0,0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="Margin" Value="0"/>
|
|
</Style>
|
|
|
|
<!--<Style x:Key="ToggleButton_ControlTemplate_Border" TargetType="Border">
|
|
<Setter Property="CornerRadius" Value="4"/>
|
|
<Setter Property="Background" Value="{TemplateBinding Background}"/>
|
|
<Setter Property="BorderBrush" Value="{TemplateBinding BorderBrush}"/>
|
|
<Setter Property="BorderThickness" Value="{TemplateBinding BorderThickness}"/>
|
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
|
</Style>-->
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- EgtCustomWindow --><!--
|
|
|
|
<Style TargetType="{x:Type EgtWPFLib5:EgtCustomWindow}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
|
|
<Setter Property="TitleBarHeight" Value="30"/>
|
|
<Setter Property="TitleBarBrush" Value="White"/>
|
|
<Setter Property="TitleBarForeground" Value="Black"/>
|
|
<Setter Property="ShowInTaskbar" Value="False"/>
|
|
</Style>-->
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- EgtFloatingPanel -->
|
|
|
|
<Style x:Key="ToolBar_EgtFloatingPanel" TargetType="{x:Type EgtFloating:EgtFloatingPanel}" BasedOn="{StaticResource {x:Type EgtFloating:EgtFloatingPanel}}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="TitleBarHeight" Value="0"/>
|
|
<Setter Property="Margin" Value="3"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Option_EgtFloatingPanel" TargetType="{x:Type EgtFloating:EgtFloatingPanel}" BasedOn="{StaticResource {x:Type EgtFloating:EgtFloatingPanel}}">
|
|
<Setter Property="IsToolBar" Value="False"/>
|
|
<Setter Property="TitleBarOrientation" Value="Vertical"/>
|
|
<Setter Property="Background" Value="{StaticResource Omag_Gray}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Omag_Gray}"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- TreeViewItem -->
|
|
|
|
<PrintApp:LeftMarginMultiplierConverter Length="19" x:Key="lengthConverter" />
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Circle.Stroke" Color="{StaticResource Icarus_Gray_Color}"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Circle.Fill" Color="White"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Arrow.Stroke" Color="{StaticResource Icarus_Gray_Color}"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Circle.Stroke" Color="#FF5593FF"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Circle.Fill" Color="#FFF3F9FF"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Arrow.Stroke" Color="#FF5593FF"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Checked.Stroke" Color="#FF262626"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Checked.Fill" Color="#FF595959"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Checked.Stroke" Color="#FF1CC4F7"/>
|
|
<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Checked.Fill" Color="#FF82DFFB"/>
|
|
<SolidColorBrush x:Key="Item.MouseOver.Background" Color="#1F26A0DA"/>
|
|
<SolidColorBrush x:Key="Item.MouseOver.Border" Color="#a826A0Da"/>
|
|
<SolidColorBrush x:Key="Item.SelectedActive.Background" Color="#3D26A0DA"/>
|
|
<SolidColorBrush x:Key="Item.SelectedActive.Border" Color="#FF26A0DA"/>
|
|
<SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
|
|
<SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="#FFDADADA"/>
|
|
<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Focusable" Value="False"/>
|
|
<Setter Property="Width" Value="12"/>
|
|
<Setter Property="Height" Value="12"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border Background="Transparent">
|
|
<Grid>
|
|
<Path x:Name="arrow"
|
|
Data="M 2.5,6.5 6.5,2.5 6.5,5.5 Q6.5,6.5 5.5,6.5 Z"
|
|
Fill="{StaticResource TreeViewItem.TreeArrow.Static.Arrow.Stroke}"
|
|
HorizontalAlignment="Center"
|
|
Stroke="{StaticResource TreeViewItem.TreeArrow.Static.Arrow.Stroke}"
|
|
SnapsToDevicePixels="false"
|
|
StrokeThickness="2"
|
|
VerticalAlignment="Center">
|
|
</Path>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="RenderTransform" TargetName="arrow">
|
|
<Setter.Value>
|
|
<RotateTransform Angle="-45" CenterY="6.25" CenterX="3.25"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<MultiTrigger>
|
|
</MultiTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="TreeViewItemFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
|
|
<Setter Property="Padding" Value="1,0,0,0"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TreeViewItem}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border x:Name="Bd"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Grid.Column="1"
|
|
Padding="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="true">
|
|
<Grid Margin="{Binding Converter={StaticResource lengthConverter}, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition MinWidth="16" Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ToggleButton x:Name="Expander"
|
|
ClickMode="Press"
|
|
IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Style="{StaticResource ExpandCollapseToggleStyle}"/>
|
|
<ContentPresenter x:Name="PART_Header"
|
|
Grid.Column="1"
|
|
ContentSource="Header"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</Border>
|
|
<ItemsPresenter x:Name="ItemsHost" Grid.Column="1" Grid.Row="1"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsExpanded" Value="false">
|
|
<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
|
|
</Trigger>
|
|
<Trigger Property="HasItems" Value="false">
|
|
<Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource Item.SelectedActive.Background}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Item.SelectedActive.Border}" />
|
|
</Trigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="PrintApp:TreeViewItemHelper.IsMouseDirectlyOverItem" Value="True" />
|
|
<Condition Property="IsSelected" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="Background" Value="{StaticResource Item.MouseOver.Background}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Item.MouseOver.Border}" />
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsSelected" Value="True" />
|
|
<Condition Property="IsSelectionActive" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="Background" Value="{StaticResource Item.SelectedInactive.Background}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Item.SelectedInactive.Border}" />
|
|
</MultiTrigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="VirtualizingPanel.IsVirtualizing" Value="true">
|
|
<Setter Property="ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<VirtualizingStackPanel/>
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- TreeView -->
|
|
|
|
<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
|
|
<Style TargetType="{x:Type TreeView}">
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="PrintApp:TreeViewItemHelper.SelectItemOnRightClick" Value="true"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TreeView}">
|
|
<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
|
|
<ScrollViewer x:Name="_tv_scrollviewer_"
|
|
Background="{TemplateBinding Background}"
|
|
CanContentScroll="false"
|
|
Focusable="false"
|
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
Padding="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
|
<ItemsPresenter/>
|
|
</ScrollViewer>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="VirtualizingPanel.IsVirtualizing" Value="true">
|
|
<Setter Property="CanContentScroll" TargetName="_tv_scrollviewer_" Value="true"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="VirtualizingPanel.IsVirtualizing" Value="true">
|
|
<Setter Property="ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<VirtualizingStackPanel/>
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ComboBox -->
|
|
|
|
<Style x:Key="ComboBox_FocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Background" Color="White"/>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Border" Color="#FFACACAC"/>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="#FFFFFFFF"/>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="#FFABADB3"/>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="Transparent"/>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="Transparent"/>
|
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="#FF000000"/>
|
|
<LinearGradientBrush x:Key="ComboBox.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#FFECF4FC" Offset="0.0"/>
|
|
<GradientStop Color="#FFDCECFC" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="#FF7EB4EA"/>
|
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="#FFFFFFFF"/>
|
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="#FF7EB4EA"/>
|
|
<LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#FFEBF4FC" Offset="0.0"/>
|
|
<GradientStop Color="#FFDCECFC" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="#FF7EB4EA"/>
|
|
<SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="#FF000000"/>
|
|
<LinearGradientBrush x:Key="ComboBox.Pressed.Background" EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#FFDAECFC" Offset="0.0"/>
|
|
<GradientStop Color="#FFC4E0FC" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
<SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="#FF569DE5"/>
|
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="#FFFFFFFF"/>
|
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="#FF569DE5"/>
|
|
<LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#FFDAEBFC" Offset="0.0"/>
|
|
<GradientStop Color="#FFC4E0FC" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="#FF569DE5"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="#FFBFBFBF"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="#FFF0F0F0"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="#FFD9D9D9"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="#FFFFFFFF"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="#FFBFBFBF"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="Transparent"/>
|
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="Transparent"/>
|
|
<SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="#FF606060"/>
|
|
<Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="OverridesDefaultStyle" Value="true"/>
|
|
<Setter Property="IsTabStop" Value="false"/>
|
|
<Setter Property="Focusable" Value="false"/>
|
|
<Setter Property="ClickMode" Value="Press"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="templateRoot"
|
|
BorderBrush="{StaticResource ComboBox.Static.Border}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{StaticResource ComboBox.Static.Background}"
|
|
CornerRadius="4"
|
|
SnapsToDevicePixels="true">
|
|
<Border x:Name="splitBorder"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="1"
|
|
HorizontalAlignment="Right"
|
|
Margin="0"
|
|
SnapsToDevicePixels="true"
|
|
Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
|
|
<Path x:Name="arrow"
|
|
Data="F1 M 0,0 L 7.11537,7.11502 L 14.23014,0 L 12.44846,0 L 7.11507,5.33338 L1.78168,0 L0,0 Z"
|
|
Fill="{StaticResource Icarus_Gray}"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,5,0"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Border}"/>
|
|
<Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Static.Editable.Button.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Static.Editable.Button.Border}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.MouseOver.Glyph}"/>
|
|
</Trigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Border}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Border}"/>
|
|
<Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.MouseOver.Editable.Button.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.MouseOver.Editable.Button.Border}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.Pressed.Glyph}"/>
|
|
</Trigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Border}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Border}"/>
|
|
<Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Pressed.Editable.Button.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Pressed.Editable.Button.Border}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.Disabled.Glyph}"/>
|
|
</Trigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Border}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Border}"/>
|
|
<Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Disabled.Editable.Button.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Disabled.Editable.Button.Border}"/>
|
|
</MultiDataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Popup x:Name="PART_Popup"
|
|
AllowsTransparency="true"
|
|
Grid.ColumnSpan="2"
|
|
IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
|
|
Margin="1"
|
|
Placement="Bottom">
|
|
<Border x:Name="dropDownBorder"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
MinWidth="{Binding ActualWidth, ElementName=templateRoot}"
|
|
BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
|
|
BorderThickness="1"
|
|
Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
|
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
|
<Grid x:Name="grid"
|
|
RenderOptions.ClearTypeHint="Enabled">
|
|
<Canvas x:Name="canvas"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Height="0"
|
|
Width="0">
|
|
<Rectangle x:Name="opaqueRect"
|
|
Fill="{Binding Background, ElementName=dropDownBorder}"
|
|
Height="{Binding ActualHeight, ElementName=dropDownBorder}"
|
|
Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
|
|
</Canvas>
|
|
<ItemsPresenter x:Name="ItemsPresenter"
|
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
<ToggleButton x:Name="toggleButton"
|
|
Grid.ColumnSpan="2"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}"
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Style="{StaticResource ComboBoxToggleButton}"/>
|
|
<ContentPresenter x:Name="contentPresenter"
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
|
|
IsHitTestVisible="false" Margin="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="HasItems" Value="false">
|
|
<Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
|
|
</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 Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
|
|
<Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
|
|
<Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<SolidColorBrush x:Key="TextBox.Static.Background" Color="#FFFFFFFF"/>
|
|
<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="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}">
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Popup x:Name="PART_Popup"
|
|
AllowsTransparency="true"
|
|
Grid.ColumnSpan="2"
|
|
IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
|
|
Placement="Bottom">
|
|
<Border x:Name="dropDownBorder"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
MinWidth="{Binding ActualWidth, ElementName=templateRoot}"
|
|
BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
|
|
BorderThickness="1"
|
|
Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
|
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
|
<Grid x:Name="grid"
|
|
RenderOptions.ClearTypeHint="Enabled">
|
|
<Canvas x:Name="canvas"
|
|
HorizontalAlignment="Left"
|
|
Height="0"
|
|
VerticalAlignment="Top"
|
|
Width="0">
|
|
<Rectangle x:Name="opaqueRect"
|
|
Fill="{Binding Background, ElementName=dropDownBorder}"
|
|
Height="{Binding ActualHeight, ElementName=dropDownBorder}"
|
|
Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
|
|
</Canvas>
|
|
<ItemsPresenter x:Name="ItemsPresenter"
|
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
<ToggleButton x:Name="toggleButton"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}"
|
|
Grid.ColumnSpan="2"
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Style="{StaticResource ComboBoxToggleButton}"/>
|
|
<Border x:Name="border"
|
|
Background="{StaticResource TextBox.Static.Background}"
|
|
Margin="{TemplateBinding BorderThickness}">
|
|
<TextBox x:Name="PART_EditableTextBox"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Margin="{TemplateBinding Padding}"
|
|
Style="{StaticResource ComboBoxEditableTextBox}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Opacity" TargetName="border" Value="0.56"/>
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocusWithin" Value="true">
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
</Trigger>
|
|
<Trigger Property="HasItems" Value="false">
|
|
<Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
|
|
</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 Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
|
|
<Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
|
|
<Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<Style TargetType="{x:Type ComboBox}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBox_FocusVisual}"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="White"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="Padding" Value="6,3,5,3"/>
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
|
|
<Setter Property="Template" Value="{StaticResource ComboBoxTemplate}"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsEditable" Value="true">
|
|
<Setter Property="IsTabStop" Value="false"/>
|
|
<Setter Property="Padding" Value="2"/>
|
|
<Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="MachiningsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Margin" Value="0,0,0,10"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MachiningsToolComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="FeatureComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="MinWidth" Value="55"/>
|
|
</Style>
|
|
|
|
<Style x:Key="PartParam_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="Width" Value="150"/>
|
|
</Style>
|
|
|
|
<Style x:Key="BtlData_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="Width" Value="150"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Warehouse_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Height" Value="22"/>
|
|
<Setter Property="Width" Value="100"/>
|
|
</Style>
|
|
|
|
|
|
<Style x:Key="TopPanel_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LeftPanel_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<!--<Setter Property="Height" Value="33"/>-->
|
|
<Setter Property="Width" Value="125"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
</Style>
|
|
|
|
<Style x:Key="RightPanel_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Height" Value="28"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
</Style>
|
|
|
|
<!--SelViewSlider_ComboBox-->
|
|
|
|
<PrintApp:CenterToolTipConverter x:Key="CenterToolTipConverter"/>
|
|
<SolidColorBrush x:Key="SelViewSlider_ComboBox.Popup.Background" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="SelViewSlider_ComboBox.Popup.Border" Color="White"/>
|
|
<SolidColorBrush x:Key="SelViewSlider_ComboBox.Static.Background" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="SelViewSlider_ComboBox.Static.Border" Color="White"/>
|
|
<SolidColorBrush x:Key="SelViewSlider_ComboBox.Static.Glyph" Color="#FF606060"/>
|
|
|
|
<Style x:Key="SelViewSlider_ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="OverridesDefaultStyle" Value="true"/>
|
|
<Setter Property="IsTabStop" Value="false"/>
|
|
<Setter Property="Focusable" Value="false"/>
|
|
<Setter Property="ClickMode" Value="Press"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="templateRoot"
|
|
Background="{StaticResource SelViewSlider_ComboBox.Static.Background}"
|
|
BorderBrush="{StaticResource SelViewSlider_ComboBox.Static.Border}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="true">
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Border}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
</Trigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Border}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Border}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
</Trigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Border}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Border}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
</Trigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Border}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Border}"/>
|
|
</MultiDataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<ControlTemplate x:Key="SelViewSlider_ComboBoxTemplate" TargetType="{x:Type ComboBox}">
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
|
|
<Popup x:Name="PART_Popup"
|
|
AllowsTransparency="true"
|
|
IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Margin="1"
|
|
PlacementTarget="{Binding ElementName=toggleButton}"
|
|
Placement="Center"
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
|
|
<!--<Popup.HorizontalOffset>
|
|
<MultiBinding Converter="{StaticResource CenterToolTipConverter}">
|
|
<Binding RelativeSource="{RelativeSource Self}" Path="PlacementTarget.ActualWidth"/>
|
|
<Binding RelativeSource="{RelativeSource Self}" Path="Child.ActualWidth"/>
|
|
</MultiBinding>
|
|
</Popup.HorizontalOffset>-->
|
|
<Border x:Name="dropDownBorder"
|
|
MinWidth="{Binding ActualWidth, ElementName=templateRoot}"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
Background="{StaticResource SelViewSlider_ComboBox.Popup.Background}"
|
|
BorderBrush="{StaticResource SelViewSlider_ComboBox.Popup.Border}"
|
|
BorderThickness="1">
|
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
|
<Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
|
|
<Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
|
|
<Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
|
|
</Canvas>
|
|
<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
<ToggleButton x:Name="toggleButton"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Style="{StaticResource SelViewSlider_ComboBoxToggleButton}"/>
|
|
<ContentPresenter x:Name="contentPresenter"
|
|
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
IsHitTestVisible="false"
|
|
Margin="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="HasItems" Value="false">
|
|
<Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
|
|
</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 Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
|
|
<Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
|
|
<Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<Style x:Key="SelViewSlider_ComboBox" TargetType="{x:Type ComboBox}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
<Setter Property="Background" Value="{StaticResource SelViewSlider_ComboBox.Static.Background}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource SelViewSlider_ComboBox.Static.Border}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="Padding" Value="2"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
|
|
<Setter Property="Template" Value="{StaticResource SelViewSlider_ComboBoxTemplate}"/>
|
|
</Style>
|
|
<Style x:Key="ComboBox.Image" TargetType="{x:Type Image}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
<Setter Property="Stretch" Value="Uniform"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ScrollBar -->
|
|
|
|
<Style x:Key="ScrollBar_FocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<SolidColorBrush x:Key="ScrollBar.Static.Background" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Static.Border" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Static.Glyph" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Static.Thumb" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Background" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Border" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Glyph" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Thumb" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Background" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Border" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Thumb" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Glyph" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Background" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Border" Color="White"/>
|
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Glyph" Color="#92908d"/>
|
|
<Style x:Key="ScrollBar_RepeatButtonTransparent" 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 Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ScrollBar_FocusVisual}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Focusable" Value="false"/>
|
|
<Setter Property="IsTabStop" Value="false"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
|
<Border x:Name="border" Background="{StaticResource ScrollBar.Static.Background}" BorderBrush="{StaticResource ScrollBar.Static.Border}" BorderThickness="1" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource ScrollBar.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource ScrollBar.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource ScrollBar.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource ScrollBar.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource ScrollBar.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource ScrollBar.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ScrollBarThumbVertical" TargetType="{x:Type Thumb}">
|
|
<Setter Property="OverridesDefaultStyle" Value="true"/>
|
|
<Setter Property="IsTabStop" Value="false"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
|
<Rectangle x:Name="rectangle" Fill="{StaticResource ScrollBar.Static.Thumb}" Height="{TemplateBinding Height}" SnapsToDevicePixels="True" Width="{TemplateBinding Width}"/>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.MouseOver.Thumb}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.Pressed.Thumb}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ScrollBarThumbHorizontal" TargetType="{x:Type Thumb}">
|
|
<Setter Property="OverridesDefaultStyle" Value="true"/>
|
|
<Setter Property="IsTabStop" Value="false"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
|
<Rectangle x:Name="rectangle" Fill="{StaticResource ScrollBar.Static.Thumb}" Height="{TemplateBinding Height}" SnapsToDevicePixels="True" Width="{TemplateBinding Width}"/>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.MouseOver.Thumb}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.Pressed.Thumb}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="{x:Type ScrollBar}">
|
|
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
|
|
<Setter Property="Background" Value="{StaticResource ScrollBar.Static.Background}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource ScrollBar.Static.Border}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="BorderThickness" Value="1,0"/>
|
|
<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
|
|
<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ScrollBar}">
|
|
<Grid x:Name="Bg" SnapsToDevicePixels="true">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
|
|
<RowDefinition Height="0.00001*"/>
|
|
<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Row="1"/>
|
|
<RepeatButton x:Name="PART_LineUpButton" Command="{x:Static ScrollBar.LineUpCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}">
|
|
<Path x:Name="ArrowTop"
|
|
Data="F1 M 0,0 L 7.11537,-7.11502 L 14.23014,0 L 12.44846,0 L 7.11507,-5.33338 L1.78168,0 L0,0 Z"
|
|
Fill="{StaticResource ScrollBar.Static.Glyph}"
|
|
Margin="1"
|
|
Stretch="Uniform"/>
|
|
</RepeatButton>
|
|
<Track x:Name="PART_Track" IsDirectionReversed="true" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="1">
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource ScrollBar_RepeatButtonTransparent}"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource ScrollBar_RepeatButtonTransparent}"/>
|
|
</Track.IncreaseRepeatButton>
|
|
<Track.Thumb>
|
|
<Thumb Style="{StaticResource ScrollBarThumbVertical}"/>
|
|
</Track.Thumb>
|
|
</Track>
|
|
<RepeatButton x:Name="PART_LineDownButton" Command="{x:Static ScrollBar.LineDownCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="2" Style="{StaticResource ScrollBarButton}">
|
|
<Path x:Name="ArrowBottom"
|
|
Data="F1 M 0,0 L 7.11537,7.11502 L 14.23014,0 L 12.44846,0 L 7.11507,5.33338 L1.78168,0 L0,0 Z"
|
|
Fill="{StaticResource ScrollBar.Static.Glyph}"
|
|
Margin="1"
|
|
Stretch="Uniform"/>
|
|
</RepeatButton>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineDownButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineDownButton}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowBottom" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineUpButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineUpButton}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowTop" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineDownButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineDownButton}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowBottom" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineUpButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineUpButton}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowTop" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="ArrowTop" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
|
|
<Setter Property="Fill" TargetName="ArrowBottom" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="Orientation" Value="Horizontal">
|
|
<Setter Property="Width" Value="Auto"/>
|
|
<Setter Property="MinWidth" Value="0"/>
|
|
<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
|
|
<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
|
|
<Setter Property="BorderThickness" Value="0,1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ScrollBar}">
|
|
<Grid x:Name="Bg" SnapsToDevicePixels="true">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
|
|
<ColumnDefinition Width="0.00001*"/>
|
|
<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1"/>
|
|
<RepeatButton x:Name="PART_LineLeftButton" Command="{x:Static ScrollBar.LineLeftCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}">
|
|
<Path x:Name="ArrowLeft" Data="M 3.18,7 C3.18,7 5,7 5,7 5,7 1.81,3.5 1.81,3.5 1.81,3.5 5,0 5,0 5,0 3.18,0 3.18,0 3.18,0 0,3.5 0,3.5 0,3.5 3.18,7 3.18,7 z" Fill="{StaticResource ScrollBar.Static.Glyph}" Margin="3" Stretch="Uniform"/>
|
|
</RepeatButton>
|
|
<Track x:Name="PART_Track" Grid.Column="1" IsEnabled="{TemplateBinding IsMouseOver}">
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource ScrollBar_RepeatButtonTransparent}"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource ScrollBar_RepeatButtonTransparent}"/>
|
|
</Track.IncreaseRepeatButton>
|
|
<Track.Thumb>
|
|
<Thumb Style="{StaticResource ScrollBarThumbHorizontal}"/>
|
|
</Track.Thumb>
|
|
</Track>
|
|
<RepeatButton x:Name="PART_LineRightButton" Command="{x:Static ScrollBar.LineRightCommand}" Grid.Column="2" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}">
|
|
<Path x:Name="ArrowRight" Data="M 1.81,7 C1.81,7 0,7 0,7 0,7 3.18,3.5 3.18,3.5 3.18,3.5 0,0 0,0 0,0 1.81,0 1.81,0 1.81,0 5,3.5 5,3.5 5,3.5 1.81,7 1.81,7 z" Fill="{StaticResource ScrollBar.Static.Glyph}" Margin="3" Stretch="Uniform"/>
|
|
</RepeatButton>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineRightButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineRightButton}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowRight" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineLeftButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineLeftButton}" Value="true"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowLeft" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineRightButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineRightButton}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowRight" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=PART_LineLeftButton}" Value="true"/>
|
|
<Condition Binding="{Binding IsPressed, ElementName=PART_LineLeftButton}" Value="false"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Fill" TargetName="ArrowLeft" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
|
|
</MultiDataTrigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="ArrowLeft" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
|
|
<Setter Property="Fill" TargetName="ArrowRight" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- CheckBox -->
|
|
|
|
<Style x:Key="OptionCheckBox" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
<Setter Property="Margin" Value="10,0,0,0"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- GroupBox -->
|
|
|
|
<Style x:Key="GroupBoxStyle_NoHeader" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="Margin" Value="1.5,3,3,0"/>
|
|
<Setter Property="Padding" Value="5,5,0,0"/>
|
|
<Setter Property="BorderBrush" Value="#FFD5DFE5"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<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>
|
|
<Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
|
|
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
|
|
<!--<Border.OpacityMask>
|
|
<MultiBinding ConverterParameter="7" UpdateSourceTrigger="Default">
|
|
<MultiBinding.Converter>
|
|
<BorderGapMaskConverter/>
|
|
</MultiBinding.Converter>
|
|
<Binding ElementName="Header" Path="ActualWidth"/>
|
|
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
|
|
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
|
|
</MultiBinding>
|
|
</Border.OpacityMask>-->
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
|
|
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
|
|
</Border>
|
|
</Border>
|
|
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
|
|
<ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Border>
|
|
<ContentPresenter Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" ContentStringFormat="{TemplateBinding ContentStringFormat}" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- TabControl that have only Headers and no Pages -->
|
|
|
|
<Style x:Key="TabControl_OnlyHeaders" TargetType="{x:Type TabControl}">
|
|
<Setter Property="OverridesDefaultStyle" Value="True" />
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabControl}">
|
|
<Grid KeyboardNavigation.TabNavigation="Local">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TabPanel Name="HeaderPanel"
|
|
Grid.Row="0"
|
|
Panel.ZIndex="1"
|
|
Margin="0,0,4,-1"
|
|
IsItemsHost="True"
|
|
KeyboardNavigation.TabIndex="1"
|
|
Background="Transparent" />
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Custom SelectedItem colors for DataGrid -->
|
|
|
|
<Style x:Key="RowDataGrid_CustomHighLight" TargetType="{x:Type DataGridRow}">
|
|
<Setter Property="BorderBrush" Value="LightGray" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="BorderThickness" Value="2,2,2,2" />
|
|
<Setter Property="BorderBrush" Value="Cyan" />
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
<Setter Property="Margin" Value="-2,0,-2,0" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
<Setter Property="Foreground" Value="Blue" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
<Style.Resources>
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="Black" />
|
|
</Style.Resources>
|
|
</Style>
|
|
|
|
<Style x:Key="DataGrid_CustomHighLight" TargetType="{x:Type DataGrid}">
|
|
<Style.Resources>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Style.Triggers>
|
|
<Trigger Property="DataGridCell.IsSelected" Value="True">
|
|
<Setter Property="BorderBrush" Value="Cyan" />
|
|
<Setter Property="Foreground" Value="Blue" />
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
|
<Setter Property="BorderBrush" Value="DodgerBlue" />
|
|
<Setter Property="Foreground" Value="Blue" />
|
|
</Trigger>
|
|
<Trigger Property="IsEditing" Value="True">
|
|
<Setter Property="BorderBrush" Value="DodgerBlue" />
|
|
<Setter Property="TextElement.Foreground" Value="Blue" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}"/>
|
|
</Style.Resources>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- DataGrid -->
|
|
|
|
<Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
|
|
<Setter Property="Width" Value="8"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Cursor" Value="SizeWE"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
|
<Border Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="{x:Type DataGridColumnHeader}" TargetType="{x:Type DataGridColumnHeader}">
|
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
|
<Setter Property="MinWidth" Value="0"/>
|
|
<Setter Property="MinHeight" Value="0"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="BorderThickness" Value="0 0 1 1"/>
|
|
<Setter Property="BorderBrush" Value="DarkGray"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
|
|
<Grid>
|
|
<Themes:DataGridHeaderBorder SortDirection="{TemplateBinding SortDirection}"
|
|
IsHovered="{TemplateBinding IsMouseOver}"
|
|
IsPressed="{TemplateBinding IsPressed}"
|
|
IsClickable="{TemplateBinding CanUserSort}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding ="{TemplateBinding Padding}"
|
|
SeparatorVisibility="{TemplateBinding SeparatorVisibility}"
|
|
SeparatorBrush="{TemplateBinding SeparatorBrush}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Margin="5,1,5,4"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
|
<Path x:Name="SortArrow"
|
|
Visibility="Collapsed"
|
|
Data="M 0,0 L 1,0 0.5,1 z"
|
|
Stretch="Fill"
|
|
Width="8"
|
|
Height="6"
|
|
Fill="Gray"
|
|
VerticalAlignment="Top"
|
|
HorizontalAlignment="Center"
|
|
RenderTransformOrigin="0.5, 0.4"/>
|
|
<Thumb x:Name="PART_LeftHeaderGripper"
|
|
HorizontalAlignment="Left"
|
|
Style="{StaticResource ColumnHeaderGripperStyle}"/>
|
|
<Thumb x:Name="PART_RightHeaderGripper"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
Style="{StaticResource ColumnHeaderGripperStyle}"/>
|
|
</Grid>
|
|
</Themes:DataGridHeaderBorder>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="SortDirection" Value="Ascending">
|
|
<Setter TargetName="SortArrow" Property="Visibility" Value="Visible"/>
|
|
<Setter TargetName="SortArrow" Property="RenderTransform">
|
|
<Setter.Value>
|
|
<RotateTransform Angle="180"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="SortDirection" Value="Descending">
|
|
<Setter TargetName="SortArrow" Property="Visibility" Value="Visible"/>
|
|
</Trigger>
|
|
<Trigger Property="DisplayIndex" Value="0">
|
|
<Setter TargetName="PART_LeftHeaderGripper" Property="Visibility" Value="Collapsed"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="{x:Type DataGrid}" TargetType="{x:Type DataGrid}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
<Setter Property="AutoGenerateColumns" Value="False"/>
|
|
<Setter Property="CanUserAddRows" Value="False"/>
|
|
<Setter Property="CanUserResizeRows" Value="False"/>
|
|
<Setter Property="CanUserResizeColumns" Value="False"/>
|
|
<Setter Property="CanUserReorderColumns" Value="False"/>
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
|
<Setter Property="ColumnHeaderHeight" Value="28"/>
|
|
<Setter Property="RowHeight" Value="24"/>
|
|
<Setter Property="HeadersVisibility" Value="Column"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- CheckBox with text on the left -->
|
|
|
|
<Style x:Key="CheckBox_TextAlignLeft" TargetType="CheckBox">
|
|
<Style.Resources>
|
|
<Style TargetType="Path">
|
|
<Setter Property="FlowDirection" Value="LeftToRight" />
|
|
</Style>
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="FlowDirection" Value="LeftToRight" />
|
|
</Style>
|
|
</Style.Resources>
|
|
|
|
<Setter Property="FlowDirection" Value="RightToLeft" />
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Popup -->
|
|
|
|
<Style x:Key="LeftPanel_Popup" TargetType="Popup">
|
|
<Setter Property="AllowsTransparency" Value="True" />
|
|
<Setter Property="StaysOpen" Value="True" />
|
|
<Setter Property="Placement" Value="Right" />
|
|
<Setter Property="HorizontalOffset" Value="5" />
|
|
<Setter Property="VerticalOffset">
|
|
<Setter.Value>
|
|
<MultiBinding Converter="{StaticResource CenterToolTipConverter}">
|
|
<Binding RelativeSource="{RelativeSource Self}" Path="PlacementTarget.ActualHeight"/>
|
|
<Binding RelativeSource="{RelativeSource Self}" Path="Child.ActualHeight"/>
|
|
</MultiBinding>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="BottomPanel_Popup" TargetType="Popup">
|
|
<Setter Property="AllowsTransparency" Value="True" />
|
|
<Setter Property="StaysOpen" Value="True" />
|
|
<Setter Property="Placement" Value="Bottom" />
|
|
<Setter Property="VerticalOffset" Value="5" />
|
|
<Setter Property="HorizontalOffset">
|
|
<Setter.Value>
|
|
<MultiBinding Converter="{StaticResource CenterToolTipConverter}">
|
|
<Binding RelativeSource="{RelativeSource Self}" Path="PlacementTarget.ActualWidth"/>
|
|
<Binding RelativeSource="{RelativeSource Self}" Path="Child.ActualWidth"/>
|
|
</MultiBinding>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="TopPanel_Popup_Border" TargetType="Border">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
<Setter Property="CornerRadius" Value="5" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
<Setter Property="Padding" Value="5" />
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Layer Slider -->
|
|
|
|
<Style x:Key="RepeatButtonTransparent" 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 Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<sys:Double x:Key="SliderThumb.Thumb.Diameter">28</sys:Double>
|
|
<SolidColorBrush x:Key="SliderThumb.Static.Background" Color="#2e5a81"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Static.Border" Color="#2e5a81"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Static.Foreground" Color="#92908d"/>
|
|
<SolidColorBrush x:Key="SliderThumb.MouseOver.Background" Color="#FFDCECFC"/>
|
|
<SolidColorBrush x:Key="SliderThumb.MouseOver.Border" Color="#FF7Eb4EA"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Pressed.Background" Color="#FFDAECFC"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Pressed.Border" Color="#FF569DE5"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Disabled.Background" Color="#FFF0F0F0"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Disabled.Border" Color="#FFD9D9D9"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Track.Background" Color="White"/>
|
|
<SolidColorBrush x:Key="SliderThumb.Track.Border" Color="White"/>
|
|
<SolidColorBrush x:Key="SliderThumb.TickBar.Background" Color="#D0D6DF"/>
|
|
<ControlTemplate x:Key="SliderThumbHorizontalDefault" TargetType="{x:Type Thumb}">
|
|
<Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
|
|
<Path x:Name="grip" Data="M 0,0 C0,0 11,0 11,0 11,0 11,18 11,18 11,18 0,18 0,18 0,18 0,0 0,0 z" Fill="{StaticResource SliderThumb.Static.Background}" Stroke="{StaticResource SliderThumb.Static.Border}" SnapsToDevicePixels="True" Stretch="Fill" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<ControlTemplate x:Key="SliderThumbHorizontalTop" TargetType="{x:Type Thumb}">
|
|
<Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
|
|
<Ellipse x:Name="grip"
|
|
Height="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
Width="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
HorizontalAlignment="Center"
|
|
Fill="{StaticResource SliderThumb.Static.Background}"
|
|
Stroke="{StaticResource SliderThumb.Static.Border}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<ControlTemplate x:Key="SliderThumbHorizontalBottom" TargetType="{x:Type Thumb}">
|
|
<Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
|
|
<Path x:Name="grip" Data="M 0,12 C0,12 5.5,18 5.5,18 5.5,18 11,12 11,12 11,12 11,0 11,0 11,0 0,0 0,0 0,0 0,12 0,12 z" Fill="{StaticResource SliderThumb.Static.Background}" Stroke="{StaticResource SliderThumb.Static.Border}" SnapsToDevicePixels="True" Stretch="Fill" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<ControlTemplate x:Key="SliderHorizontal" TargetType="{x:Type Slider}">
|
|
<Border x:Name="border"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid>
|
|
<Grid VerticalAlignment="Stretch">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="14*"/>
|
|
<RowDefinition Height="8*" MinHeight="{TemplateBinding MinHeight}"/>
|
|
<RowDefinition Height="14*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border x:Name="TopTick_Border"
|
|
Background="{StaticResource SliderThumb.TickBar.Background}"
|
|
BorderThickness="0"
|
|
Visibility="Collapsed">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="5*"/>
|
|
</Grid.RowDefinitions>
|
|
<TickBar x:Name="TopTick"
|
|
Grid.Row="1"
|
|
Fill="{TemplateBinding Foreground}"
|
|
Placement="Top"
|
|
Visibility="Collapsed"/>
|
|
</Grid>
|
|
</Border>
|
|
<Border x:Name="BottomTick_Border"
|
|
Grid.Row="2"
|
|
Background="{StaticResource SliderThumb.TickBar.Background}"
|
|
BorderThickness="0"
|
|
Visibility="Collapsed">
|
|
<TickBar x:Name="BottomTick"
|
|
Fill="{TemplateBinding Foreground}"
|
|
Height="4"
|
|
Placement="Bottom"
|
|
Visibility="Collapsed"/>
|
|
</Border>
|
|
<Border x:Name="TrackBackground"
|
|
Background="{DynamicResource SliderThumb.Track.Background}"
|
|
BorderBrush="{DynamicResource SliderThumb.Track.Border}"
|
|
BorderThickness="0"
|
|
Margin="0"
|
|
Padding="0"
|
|
Grid.Row="1"
|
|
VerticalAlignment="Stretch">
|
|
<Canvas>
|
|
<Rectangle x:Name="PART_SelectionRange"
|
|
Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
|
|
Height="4.0"
|
|
Visibility="Hidden"/>
|
|
</Canvas>
|
|
</Border>
|
|
</Grid>
|
|
<Track x:Name="PART_Track">
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
|
|
</Track.IncreaseRepeatButton>
|
|
<Track.Thumb>
|
|
<Thumb x:Name="Thumb"
|
|
Focusable="False"
|
|
Height="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
Width="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
OverridesDefaultStyle="True"
|
|
Template="{StaticResource SliderThumbHorizontalDefault}"
|
|
VerticalAlignment="Center"/>
|
|
</Track.Thumb>
|
|
</Track>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="TickPlacement" Value="TopLeft">
|
|
<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="TopTick_Border" Value="Visible"/>
|
|
<Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalTop}"/>
|
|
</Trigger>
|
|
<Trigger Property="TickPlacement" Value="BottomRight">
|
|
<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="BottomTick_Border" Value="Visible"/>
|
|
<Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalBottom}"/>
|
|
</Trigger>
|
|
<Trigger Property="TickPlacement" Value="Both">
|
|
<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="TopTick_Border" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="BottomTick_Border" 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>
|
|
<ControlTemplate x:Key="SliderThumbVerticalDefault" TargetType="{x:Type Thumb}">
|
|
<Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
|
|
<Path x:Name="grip"
|
|
Data="M0.5,0.5 L18.5,0.5 18.5,11.5 0.5,11.5z"
|
|
Fill="{StaticResource SliderThumb.Static.Background}"
|
|
Stroke="{StaticResource SliderThumb.Static.Border}"
|
|
Stretch="Fill"/>
|
|
<Ellipse Height="5" Width="5"
|
|
Fill="{StaticResource SliderThumb.Static.Background}"
|
|
Stroke="{StaticResource SliderThumb.Static.Border}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<ControlTemplate x:Key="SliderThumbVerticalLeft" TargetType="{x:Type Thumb}">
|
|
<Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
|
|
<Canvas Width="{Binding ActualWidth, ElementName=GridCanvas}"
|
|
Height="{Binding ActualHeight, ElementName=GridCanvas}"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center">
|
|
<Grid x:Name="GridCanvas"
|
|
Canvas.Right="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="5"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="{Binding ValueIndex, RelativeSource={RelativeSource AncestorType={x:Type Slider}}}"
|
|
Foreground="{StaticResource SliderThumb.Static.Foreground}"
|
|
HorizontalAlignment="Center"
|
|
Style="{StaticResource BaseTextBlock}"/>
|
|
<Border Grid.Row="1"
|
|
Grid.ColumnSpan="3"
|
|
Background="{StaticResource SliderThumb.Static.Background}"
|
|
BorderBrush="{StaticResource SliderThumb.Static.Background}"
|
|
BorderThickness="0"
|
|
Height="2"/>
|
|
<TextBlock Grid.Row="2"
|
|
Text="{Binding ValueHeight, RelativeSource={RelativeSource AncestorType={x:Type Slider}}}"
|
|
Foreground="{StaticResource SliderThumb.Static.Foreground}"
|
|
HorizontalAlignment="Center"
|
|
Style="{StaticResource BaseTextBlock}"/>
|
|
<Ellipse Grid.Column="2"
|
|
Grid.RowSpan="3"
|
|
x:Name="grip"
|
|
Height="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
Width="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
VerticalAlignment="Center"
|
|
Fill="{StaticResource SliderThumb.Static.Background}"
|
|
Stroke="{StaticResource SliderThumb.Static.Border}"/>
|
|
</Grid>
|
|
</Canvas>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<ControlTemplate x:Key="SliderThumbVerticalRight" TargetType="{x:Type Thumb}">
|
|
<Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
|
|
<Path x:Name="grip"
|
|
Data="M 12,11 C12,11 18,5.5 18,5.5 18,5.5 12,0 12,0 12,0 0,0 0,0 0,0 0,11 0,11 0,11 12,11 12,11 z"
|
|
Fill="{StaticResource SliderThumb.Static.Background}"
|
|
Stroke="{StaticResource SliderThumb.Static.Border}"
|
|
Stretch="Fill"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="true">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
|
|
<Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<ControlTemplate x:Key="SliderVertical" TargetType="{x:Type Slider}">
|
|
<Border x:Name="border"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid>
|
|
<Grid HorizontalAlignment="Stretch">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="14*"/>
|
|
<ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="8*"/>
|
|
<ColumnDefinition Width="14*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border x:Name="TopTick_Border"
|
|
Background="{StaticResource SliderThumb.TickBar.Background}"
|
|
BorderThickness="0"
|
|
Visibility="Collapsed">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="5*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TickBar x:Name="TopTick"
|
|
Grid.Column="1"
|
|
Fill="{TemplateBinding Foreground}"
|
|
Placement="Left"
|
|
Visibility="Collapsed"/>
|
|
</Grid>
|
|
</Border>
|
|
<Border x:Name="BottomTick_Border"
|
|
Grid.Column="2"
|
|
Background="{StaticResource SliderThumb.TickBar.Background}"
|
|
BorderThickness="0"
|
|
Visibility="Collapsed">
|
|
<TickBar x:Name="BottomTick"
|
|
Fill="{TemplateBinding Foreground}"
|
|
Placement="Right"
|
|
Visibility="Collapsed"
|
|
Width="4"/>
|
|
</Border>
|
|
<Border x:Name="TrackBackground"
|
|
Background="{StaticResource SliderThumb.Track.Background}"
|
|
BorderBrush="{StaticResource SliderThumb.Track.Border}"
|
|
BorderThickness="1"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Stretch"
|
|
Margin="0" Padding="0">
|
|
<Canvas>
|
|
<Rectangle x:Name="PART_SelectionRange"
|
|
Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
|
|
Visibility="Hidden"/>
|
|
</Canvas>
|
|
</Border>
|
|
</Grid>
|
|
<Track x:Name="PART_Track">
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static Slider.DecreaseLarge}"
|
|
Style="{StaticResource RepeatButtonTransparent}"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Command="{x:Static Slider.IncreaseLarge}"
|
|
Style="{StaticResource RepeatButtonTransparent}"/>
|
|
</Track.IncreaseRepeatButton>
|
|
<Track.Thumb>
|
|
<Thumb x:Name="Thumb"
|
|
Focusable="False"
|
|
Height="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
Width="{StaticResource SliderThumb.Thumb.Diameter}"
|
|
OverridesDefaultStyle="True"
|
|
Template="{StaticResource SliderThumbVerticalDefault}"
|
|
VerticalAlignment="Top"/>
|
|
</Track.Thumb>
|
|
</Track>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="TickPlacement" Value="TopLeft">
|
|
<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="TopTick_Border" Value="Visible"/>
|
|
<Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalLeft}"/>
|
|
</Trigger>
|
|
<Trigger Property="TickPlacement" Value="BottomRight">
|
|
<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="BottomTick_Border" Value="Visible"/>
|
|
<Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalRight}"/>
|
|
</Trigger>
|
|
<Trigger Property="TickPlacement" Value="Both">
|
|
<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="TopTick_Border" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
|
|
<Setter Property="Visibility" TargetName="BottomTick_Border" 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>
|
|
<Style x:Key="LayerIndex_Slider" TargetType="{x:Type Slider}">
|
|
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="Foreground" Value="{StaticResource SliderThumb.Static.Foreground}"/>
|
|
<Setter Property="Template" Value="{StaticResource SliderHorizontal}"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="Orientation" Value="Vertical">
|
|
<Setter Property="Template" Value="{StaticResource SliderVertical}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- Expander -->
|
|
|
|
<SolidColorBrush x:Key="Expander.Static.Circle.Stroke" Color="{StaticResource Icarus_Gray_Color}"/>
|
|
<SolidColorBrush x:Key="Expander.Static.Circle.Fill" Color="White"/>
|
|
<SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="{StaticResource Icarus_Gray_Color}"/>
|
|
<SolidColorBrush x:Key="Expander.Static.Foreground" Color="{StaticResource Icarus_Gray_Color}"/>
|
|
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Stroke" Color="#FF5593FF"/>
|
|
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Fill" Color="#FFF3F9FF"/>
|
|
<SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="#FF000000"/>
|
|
<SolidColorBrush x:Key="Expander.Pressed.Circle.Stroke" Color="#FF3C77DD"/>
|
|
<SolidColorBrush x:Key="Expander.Pressed.Circle.Fill" Color="#FFD9ECFF"/>
|
|
<SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="#FF000000"/>
|
|
<SolidColorBrush x:Key="Expander.Disabled.Circle.Stroke" Color="#FFBCBCBC"/>
|
|
<SolidColorBrush x:Key="Expander.Disabled.Circle.Fill" Color="#FFE6E6E6"/>
|
|
<SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="#FF707070"/>
|
|
<Style x:Key="ExpanderHeaderFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Border>
|
|
<Rectangle Margin="0" StrokeDashArray="1 2" Stroke="Black" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="19"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Rectangle x:Name="circle"
|
|
RadiusX="4"
|
|
RadiusY="4"
|
|
Fill="{StaticResource Expander.Static.Circle.Fill}"
|
|
HorizontalAlignment="Center"
|
|
Height="19"
|
|
Width="19"
|
|
Stroke="{StaticResource Expander.Static.Circle.Stroke}"
|
|
VerticalAlignment="Center"/>
|
|
<Path x:Name="arrow"
|
|
Data="M 6,14 14,6 14,12 Q14,14 12,14 Z"
|
|
Fill="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
HorizontalAlignment="Center"
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
SnapsToDevicePixels="false"
|
|
StrokeThickness="2"
|
|
VerticalAlignment="Center"/>
|
|
<ContentPresenter Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
Margin="4,0,0,0"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="True"
|
|
VerticalAlignment="Center"/>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Data" TargetName="arrow" Value="M 6,-2 14,6 14,0 Q14,-2 12,-2 Z"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
|
|
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="19"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid>
|
|
<Grid.LayoutTransform>
|
|
<TransformGroup>
|
|
<TransformGroup.Children>
|
|
<TransformCollection>
|
|
<RotateTransform Angle="180"/>
|
|
</TransformCollection>
|
|
</TransformGroup.Children>
|
|
</TransformGroup>
|
|
</Grid.LayoutTransform>
|
|
<Ellipse x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="19" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
|
|
<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
<ContentPresenter Grid.Column="1" HorizontalAlignment="Left" Margin="4,0,0,0" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
|
|
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="19"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.LayoutTransform>
|
|
<TransformGroup>
|
|
<TransformGroup.Children>
|
|
<TransformCollection>
|
|
<RotateTransform Angle="90"/>
|
|
</TransformCollection>
|
|
</TransformGroup.Children>
|
|
</TransformGroup>
|
|
</Grid.LayoutTransform>
|
|
<Ellipse x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="19" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
|
|
<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
<ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" RecognizesAccessKey="True" Grid.Row="1" SnapsToDevicePixels="True" VerticalAlignment="Top"/>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
|
|
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="19"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.LayoutTransform>
|
|
<TransformGroup>
|
|
<TransformGroup.Children>
|
|
<TransformCollection>
|
|
<RotateTransform Angle="-90"/>
|
|
</TransformCollection>
|
|
</TransformGroup.Children>
|
|
</TransformGroup>
|
|
</Grid.LayoutTransform>
|
|
<Ellipse x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="19" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
|
|
<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
<ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" RecognizesAccessKey="True" Grid.Row="1" SnapsToDevicePixels="True" VerticalAlignment="Top"/>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
|
|
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
|
|
<Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
|
|
<Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="{x:Type Expander}">
|
|
<Setter Property="Foreground" Value="{StaticResource Expander.Static.Foreground}"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Expander}">
|
|
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" SnapsToDevicePixels="true">
|
|
<DockPanel>
|
|
<ToggleButton x:Name="HeaderSite"
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
Content="{TemplateBinding Header}"
|
|
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
|
DockPanel.Dock="Top" FontStretch="{TemplateBinding FontStretch}"
|
|
Foreground="{TemplateBinding Foreground}"
|
|
FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
|
FontStyle="{TemplateBinding FontStyle}"
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
FontWeight="Bold"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Margin="1"
|
|
MinWidth="0"
|
|
MinHeight="0"
|
|
Padding="{TemplateBinding Padding}"
|
|
Style="{StaticResource ExpanderDownHeaderStyle}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
<Grid x:Name="GridSite"
|
|
Margin="25,0,0,0"/>
|
|
<ContentPresenter x:Name="ExpandSite"
|
|
DockPanel.Dock="Bottom"
|
|
Focusable="false"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
Margin="{TemplateBinding Padding}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Visibility="Collapsed"/>
|
|
</DockPanel>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsExpanded" Value="true">
|
|
<Setter Property="Visibility" TargetName="ExpandSite" Value="Visible"/>
|
|
</Trigger>
|
|
<Trigger Property="ExpandDirection" Value="Right">
|
|
<Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Right"/>
|
|
<Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Left"/>
|
|
<Setter Property="Margin" TargetName="GridSite" Value="0,0,0,0"/>
|
|
<Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderRightHeaderStyle}"/>
|
|
</Trigger>
|
|
<Trigger Property="ExpandDirection" Value="Up">
|
|
<Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Top"/>
|
|
<Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Bottom"/>
|
|
<Setter Property="Margin" TargetName="GridSite" Value="0,0,0,0"/>
|
|
<Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderUpHeaderStyle}"/>
|
|
</Trigger>
|
|
<Trigger Property="ExpandDirection" Value="Left">
|
|
<Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Left"/>
|
|
<Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Right"/>
|
|
<Setter Property="Margin" TargetName="GridSite" Value="0,0,0,0"/>
|
|
<Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderLeftHeaderStyle}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ScrollViewer -->
|
|
|
|
<Style x:Key="RightPanel_ScrollViewer" TargetType="{x:Type ScrollViewer}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
|
<Grid x:Name="Grid" Background="{TemplateBinding Background}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Rectangle x:Name="Corner"
|
|
Grid.Column="1"
|
|
Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
|
|
Grid.Row="1"/>
|
|
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
|
|
CanHorizontallyScroll="False"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
CanVerticallyScroll="False"
|
|
Grid.Column="0"
|
|
Content="{TemplateBinding Content}"
|
|
CanContentScroll="{TemplateBinding CanContentScroll}"
|
|
Margin="{TemplateBinding Padding}"
|
|
Grid.Row="0"/>
|
|
<ScrollBar x:Name="PART_VerticalScrollBar"
|
|
AutomationProperties.AutomationId="VerticalScrollBar"
|
|
Cursor="Arrow"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Maximum="{TemplateBinding ScrollableHeight}"
|
|
Minimum="0"
|
|
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ViewportSize="{TemplateBinding ViewportHeight}"
|
|
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
|
|
Margin="2.5,0,2.5,0"/>
|
|
<ScrollBar x:Name="PART_HorizontalScrollBar"
|
|
AutomationProperties.AutomationId="HorizontalScrollBar"
|
|
Cursor="Arrow"
|
|
Grid.Column="0"
|
|
Maximum="{TemplateBinding ScrollableWidth}"
|
|
Minimum="0"
|
|
Orientation="Horizontal"
|
|
Grid.Row="1"
|
|
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ViewportSize="{TemplateBinding ViewportWidth}"
|
|
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ListBox -->
|
|
|
|
<Style TargetType="{x:Type ListBox}">
|
|
<Setter Property="FontFamily" Value="/Resources/Fonts/#Roboto"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Icarus_Gray}"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- TabItem -->
|
|
|
|
<Style x:Key="TabItem_FocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#F0F0F0" Offset="0.0"/>
|
|
<GradientStop Color="#E5E5E5" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
<SolidColorBrush x:Key="TabItem.Static.Border" Color="#ACACAC"/>
|
|
<LinearGradientBrush x:Key="TabItem.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#ECF4FC" Offset="0.0"/>
|
|
<GradientStop Color="#DCECFC" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
<SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="#7EB4EA"/>
|
|
<SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FFFFFF"/>
|
|
<SolidColorBrush x:Key="TabItem.Selected.Border" Color="#ACACAC"/>
|
|
<SolidColorBrush x:Key="TabItem.Disabled.Background" Color="#F0F0F0"/>
|
|
<SolidColorBrush x:Key="TabItem.Disabled.Border" Color="#D9D9D9"/>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource TabItem_FocusVisual}"/>
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
<Setter Property="Background" Value="{StaticResource TabItem.Static.Background}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource TabItem.Static.Border}"/>
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Setter Property="Padding" Value="6,2,6,2"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
|
|
<Border x:Name="mainBorder"
|
|
CornerRadius="4,4,0,0"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1,1,1,0" Margin="0">
|
|
<Border x:Name="innerBorder"
|
|
CornerRadius="4,4,0,0"
|
|
Background="{StaticResource TabItem.Selected.Background}"
|
|
BorderBrush="{StaticResource TabItem.Selected.Border}"
|
|
BorderThickness="1,1,1,0"
|
|
Margin="-1"
|
|
Opacity="0"/>
|
|
</Border>
|
|
<ContentPresenter x:Name="contentPresenter" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
|
|
<Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
|
<Setter Property="Margin" Value="-2,-2,0,-2"/>
|
|
<Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
|
<Setter Property="Margin" Value="-2,0,-2,-2"/>
|
|
<Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
|
<Setter Property="Margin" Value="0,-2,-2,-2"/>
|
|
<Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
|
|
<Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
|
<Setter Property="Margin" Value="-2,-2,-2,0"/>
|
|
<Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
|
|
<Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
|
|
<Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
|
|
</MultiDataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!--EgtCustomWindow-->
|
|
|
|
<Style x:Key="AboutBox_Button" TargetType="{x:Type Button}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
<Setter Property="MinHeight" Value="320"/>
|
|
<Setter Property="MinWidth" Value="480"/>
|
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
<Setter Property="Title" Value="{Binding Title}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
<Grid Background="Transparent" x:Name="WindowRoot">
|
|
<Border x:Name="ResizeBorder"
|
|
BorderBrush="{StaticResource Icarus_Gray}"
|
|
BorderThickness="{StaticResource WindowBorder_Thickness}">
|
|
<Grid x:Name="LayoutRoot"
|
|
Background="{TemplateBinding Background}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="{StaticResource TitleBarHeight}"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!--TitleBar-->
|
|
<Grid x:Name="PART_HeaderBar"
|
|
Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button Command="{Binding AboutBoxCommand}"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource AboutBox_Button}">
|
|
<Image Source="{TemplateBinding Icon}"/>
|
|
</Button>
|
|
<Grid Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Content="{TemplateBinding TitlePanel}"
|
|
VerticalAlignment="Center"/>
|
|
<TextBlock Text="{TemplateBinding ProjectName}"
|
|
ToolTip="{TemplateBinding ProjectPath}"
|
|
Grid.Column="1"
|
|
TextTrimming="CharacterEllipsis"
|
|
FontSize="14"
|
|
VerticalAlignment="Center"
|
|
Background="{StaticResource Icarus_Gray}"
|
|
Padding="5,2,5,3"
|
|
Margin="10,0,0,0"
|
|
Foreground="White"/>
|
|
<TextBlock x:Name="PART_MoveRectangle"
|
|
Text="{TemplateBinding Title}"
|
|
Grid.Column="2"
|
|
TextTrimming="CharacterEllipsis"
|
|
HorizontalAlignment="Stretch"
|
|
FontSize="14"
|
|
TextAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Width="Auto"
|
|
Foreground="{StaticResource Icarus_Gray}"
|
|
Panel.ZIndex="0"/>
|
|
</Grid>
|
|
|
|
<Grid x:Name="WindowControlsGrid"
|
|
Grid.Column="2"
|
|
Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button x:Name="MinimizeButton"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Minimize.png"/>
|
|
</Button>
|
|
<Button x:Name="MaximizeButton"
|
|
Grid.Column="1"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Maximize.png"/>
|
|
</Button>
|
|
<Button x:Name="RestoreButton"
|
|
Grid.Column="1"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource TitleBar_Button}"
|
|
Visibility="Collapsed">
|
|
<Image Source="\Resources\Common\Restore.png"/>
|
|
</Button>
|
|
<Button x:Name="CloseButton"
|
|
Grid.Column="2"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Command="{TemplateBinding CloseCommand}"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Close.png"/>
|
|
</Button>
|
|
</Grid>
|
|
</Grid>
|
|
<Grid x:Name="PART_MainContentGrid"
|
|
Grid.Row="1"
|
|
Panel.ZIndex="10">
|
|
<ContentPresenter x:Name="PART_MainContentPresenter"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<!-- Resize grid to be inserted here -->
|
|
<Grid x:Name="PART_ResizeGrid">
|
|
<Rectangle x:Name="top"
|
|
Height="{StaticResource WindowBorder_Height}"
|
|
VerticalAlignment="Top"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"
|
|
Margin="5,0,5,0" />
|
|
<Rectangle x:Name="bottom"
|
|
Height="{StaticResource WindowBorder_Height}"
|
|
VerticalAlignment="Bottom"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"
|
|
Margin="5,0,5,0" />
|
|
<Rectangle x:Name="left"
|
|
Width="{StaticResource WindowBorder_Height}"
|
|
HorizontalAlignment="Left"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"
|
|
Margin="0,5,0,5"/>
|
|
<Rectangle x:Name="right"
|
|
Width="{StaticResource WindowBorder_Height}"
|
|
HorizontalAlignment="Right"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"
|
|
Margin="0,5,0,5"/>
|
|
<Rectangle x:Name="bottomLeft"
|
|
Height="{StaticResource WindowBorder_Height}"
|
|
Width="{StaticResource WindowBorder_Height}"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"/>
|
|
<Rectangle x:Name="bottomRight"
|
|
Height="{StaticResource WindowBorder_Height}"
|
|
Width="{StaticResource WindowBorder_Height}"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"/>
|
|
<Rectangle x:Name="topRight"
|
|
Height="{StaticResource WindowBorder_Height}"
|
|
Width="{StaticResource WindowBorder_Height}"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Fill="Transparent"
|
|
Stroke="{x:Null}"/>
|
|
<Rectangle
|
|
Stroke="{x:Null}"
|
|
Fill="Transparent"
|
|
HorizontalAlignment="Left"
|
|
Width="{StaticResource WindowBorder_Height}"
|
|
VerticalAlignment="Top"
|
|
Height="{StaticResource WindowBorder_Height}"
|
|
x:Name="topLeft" />
|
|
</Grid>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="WindowState" Value="Maximized">
|
|
<Setter TargetName="ResizeBorder" Property="BorderThickness" Value="0"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="NoStyle_Window" TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
<Setter Property="MinHeight" Value="320"/>
|
|
<Setter Property="MinWidth" Value="480"/>
|
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
<Setter Property="Title" Value="{Binding Title}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
<Grid Background="{TemplateBinding Background}" x:Name="WindowRoot">
|
|
<Border x:Name="ResizeBorder"
|
|
BorderBrush="{StaticResource Icarus_Gray}"
|
|
BorderThickness="{StaticResource WindowBorder_Thickness}">
|
|
<Grid x:Name="LayoutRoot">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="{StaticResource TitleBarHeight}"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid x:Name="PART_MainContentGrid"
|
|
Grid.Row="1"
|
|
Panel.ZIndex="10">
|
|
<ContentPresenter x:Name="PART_MainContentPresenter" Grid.Row="1"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="WindowState" Value="Maximized">
|
|
<Setter TargetName="ResizeBorder" Property="BorderThickness" Value="0"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Dialog_Window" TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
<Setter Property="WindowStyle" Value="None"/>
|
|
<Setter Property="ResizeMode" Value="NoResize"/>
|
|
<Setter Property="AllowsTransparency" Value="True"/>
|
|
<Setter Property="ShowInTaskbar" Value="False"/>
|
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
<Setter Property="Title" Value="{Binding Title}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
|
|
<Grid Background="Transparent" x:Name="WindowRoot">
|
|
|
|
<Grid x:Name="LayoutRoot"
|
|
Background="{TemplateBinding Background}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!--TitleBar-->
|
|
<Border Margin="0,0,0,2.5"
|
|
Style="{StaticResource Title_Border}">
|
|
<Grid x:Name="PART_HeaderBar">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{TemplateBinding Title}"
|
|
Grid.Column="1"
|
|
TextTrimming="CharacterEllipsis"
|
|
HorizontalAlignment="Stretch"
|
|
FontSize="14"
|
|
TextAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Width="Auto"
|
|
Foreground="{StaticResource Icarus_Gray}"
|
|
Panel.ZIndex="0"
|
|
IsEnabled="{TemplateBinding IsActive}"/>
|
|
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Row="1"
|
|
CornerRadius="4,4,0,0"
|
|
Margin="0,2.5,0,0"
|
|
Panel.ZIndex="10"
|
|
Style="{StaticResource WhiteBottomBlueRow_Border}">
|
|
<Grid x:Name="PART_MainContentGrid">
|
|
<ContentPresenter x:Name="PART_MainContentPresenter"/>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!--EgtMainWindow-->
|
|
<!--
|
|
|
|
<Style x:Key="AboutBox_Button" TargetType="{x:Type Button}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type EgtWPFLib48:EgtMainWindow}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
<Setter Property="MinHeight" Value="320"/>
|
|
<Setter Property="MinWidth" Value="480"/>
|
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
<Setter Property="Title" Value="{Binding Title}"/>
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<WindowChrome GlassFrameThickness="1"
|
|
ResizeBorderThickness="4"
|
|
CaptionHeight="0"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib48:EgtMainWindow}">
|
|
|
|
<Grid Background="Transparent" x:Name="WindowRoot">
|
|
|
|
<Grid x:Name="LayoutRoot"
|
|
Background="{TemplateBinding Background}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="{StaticResource TitleBarHeight}"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
-->
|
|
<!--TitleBar-->
|
|
<!--
|
|
<Grid x:Name="PART_HeaderBar">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button Command="{Binding AboutBoxCommand}"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource AboutBox_Button}">
|
|
<Image Source="{TemplateBinding Icon}"/>
|
|
</Button>
|
|
<Grid Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Content="{TemplateBinding TitlePanel}"
|
|
VerticalAlignment="Center"/>
|
|
<TextBlock Text="{TemplateBinding ProjectName}"
|
|
ToolTip="{TemplateBinding ProjectPath}"
|
|
Grid.Column="1"
|
|
TextTrimming="CharacterEllipsis"
|
|
FontSize="14"
|
|
VerticalAlignment="Center"
|
|
Background="{StaticResource Icarus_Gray}"
|
|
Padding="5,2,5,3"
|
|
Margin="10,0,0,0"
|
|
Foreground="White"
|
|
IsEnabled="{TemplateBinding IsActive}"/>
|
|
<TextBlock Text="{TemplateBinding Title}"
|
|
Grid.Column="2"
|
|
TextTrimming="CharacterEllipsis"
|
|
HorizontalAlignment="Stretch"
|
|
FontSize="14"
|
|
TextAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Width="Auto"
|
|
Foreground="{StaticResource Icarus_Gray}"
|
|
Panel.ZIndex="0"
|
|
IsEnabled="{TemplateBinding IsActive}"/>
|
|
</Grid>
|
|
|
|
<Grid x:Name="WindowControlsGrid"
|
|
Grid.Column="2"
|
|
Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button x:Name="MinimizeButton"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Minimize.png"/>
|
|
</Button>
|
|
<Button x:Name="MaximizeButton"
|
|
Grid.Column="1"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Maximize.png"/>
|
|
</Button>
|
|
<Button x:Name="RestoreButton"
|
|
Grid.Column="1"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Visibility="Collapsed"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Restore.png"/>
|
|
</Button>
|
|
<Button x:Name="CloseButton"
|
|
Grid.Column="2"
|
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
Command="{TemplateBinding CloseCommand}"
|
|
Style="{StaticResource TitleBar_Button}">
|
|
<Image Source="\Resources\Common\Close.png"/>
|
|
</Button>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Grid x:Name="PART_MainContentGrid"
|
|
Grid.Row="1"
|
|
Panel.ZIndex="10">
|
|
<ContentPresenter x:Name="PART_MainContentPresenter"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="NoStyle_Window" TargetType="{x:Type EgtWPFLib48:EgtMainWindow}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
<Setter Property="MinHeight" Value="320"/>
|
|
<Setter Property="MinWidth" Value="480"/>
|
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
<Setter Property="Title" Value="{Binding Title}"/>
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<WindowChrome GlassFrameThickness="1"
|
|
ResizeBorderThickness="4"
|
|
CaptionHeight="0"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib48:EgtMainWindow}">
|
|
|
|
<Grid Background="Transparent" x:Name="WindowRoot">
|
|
|
|
<Grid x:Name="LayoutRoot"
|
|
Background="{TemplateBinding Background}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="{StaticResource TitleBarHeight}"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid x:Name="PART_MainContentGrid"
|
|
Grid.Row="1"
|
|
Panel.ZIndex="10">
|
|
<ContentPresenter x:Name="PART_MainContentPresenter" Grid.Row="1"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Dialog_Window" TargetType="{x:Type EgtWPFLib48:EgtMainWindow}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
<Setter Property="WindowStyle" Value="None"/>
|
|
<Setter Property="ResizeMode" Value="NoResize"/>
|
|
<Setter Property="AllowsTransparency" Value="True"/>
|
|
<Setter Property="ShowInTaskbar" Value="False"/>
|
|
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
<Setter Property="Title" Value="{Binding Title}"/>
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<WindowChrome GlassFrameThickness="1"
|
|
ResizeBorderThickness="4"
|
|
CaptionHeight="0"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type EgtWPFLib48:EgtMainWindow}">
|
|
|
|
<Grid Background="Transparent" x:Name="WindowRoot">
|
|
|
|
<Grid x:Name="LayoutRoot"
|
|
Background="{TemplateBinding Background}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
-->
|
|
<!--TitleBar-->
|
|
<!--
|
|
<Border Margin="0,0,0,2.5"
|
|
Style="{StaticResource Title_Border}">
|
|
<Grid x:Name="PART_HeaderBar">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{TemplateBinding Title}"
|
|
Grid.Column="1"
|
|
TextTrimming="CharacterEllipsis"
|
|
HorizontalAlignment="Stretch"
|
|
FontSize="14"
|
|
TextAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Width="Auto"
|
|
Foreground="{StaticResource Icarus_Gray}"
|
|
Panel.ZIndex="0"
|
|
IsEnabled="{TemplateBinding IsActive}"/>
|
|
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Row="1"
|
|
CornerRadius="4,4,0,0"
|
|
Margin="0,2.5,0,0"
|
|
Panel.ZIndex="10"
|
|
Style="{StaticResource WhiteBottomBlueRow_Border}">
|
|
<Grid x:Name="PART_MainContentGrid">
|
|
<ContentPresenter x:Name="PART_MainContentPresenter"/>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
-->
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
</ResourceDictionary>
|