761490510b
- aggiunto bottone per visualizzare/nascondere ferramenta - impostata path cartella profilo nel costruttore
483 lines
28 KiB
XML
483 lines
28 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:EgtWindowMaker"
|
|
xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
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).
|
|
-->
|
|
<local:MainWindowVM x:Key="MainWindowVM"/>
|
|
<local:HomePageVM x:Key="HomePageVM"/>
|
|
<local:CRMPageVM x:Key="CRMPageVM"/>
|
|
<local:EstimatingPageVM x:Key="EstimatingPageVM"/>
|
|
<local:EstimationDetailPageVM x:Key="EstimationDetailPageVM"/>
|
|
<local:EstimationListPageVM x:Key="EstimationListPageVM"/>
|
|
<local:ProducingPageVM x:Key="ProducingPageVM"/>
|
|
<local:ProjManagerVM x:Key="ProjManagerVM"/>
|
|
<local:ManageWindowVM x:Key="ManageWindowVM"/>
|
|
<EgtWPFLib5:ShowPanelVM x:Key="ShowPanelVM"/>
|
|
<EgtWPFLib5:ViewPanelVM x:Key="ViewPanelVM"/>
|
|
|
|
<!--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" />
|
|
|
|
<!--#838383-->
|
|
<Color x:Key="EgtWindow.Color.Gray" R="131" G="131" B="131" A="255"/>
|
|
<SolidColorBrush x:Key="EgtWindow.Gray" Color="{StaticResource EgtWindow.Color.Gray}" />
|
|
<!--#5480a5-->
|
|
<Color x:Key="EgtWindow.Color.DarkBlue" R="83" G="128" B="165" A="255"/>
|
|
<SolidColorBrush x:Key="EgtWindow.DarkBlue" Color="{StaticResource EgtWindow.Color.DarkBlue}" />
|
|
<!--#e2eaf6-->
|
|
<Color x:Key="EgtWindow.Color.LightBlue" R="226" G="234" B="246" A="255"/>
|
|
<SolidColorBrush x:Key="EgtWindow.LightBlue" Color="{StaticResource EgtWindow.Color.LightBlue}" />
|
|
<!--#eeeeee-->
|
|
<Color x:Key="EgtWindow.Color.LightGray" R="238" G="238" B="238" A="255"/>
|
|
<SolidColorBrush x:Key="EgtWindow.LightGray" Color="{StaticResource EgtWindow.Color.LightGray}" />
|
|
<!--#afc5d6-->
|
|
<Color x:Key="EgtWindow.Color.VeryLightGray" R="175" G="197" B="214" A="255"/>
|
|
<SolidColorBrush x:Key="EgtWindow.VeryLightGray" Color="{StaticResource EgtWindow.Color.VeryLightGray}" />
|
|
|
|
|
|
|
|
<!--#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}" />
|
|
|
|
|
|
<!--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>
|
|
|
|
<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>
|
|
|
|
<!--#region USERCONTROL -->
|
|
|
|
<!--#region Button-->
|
|
|
|
<!--Colori default dei controlli-->
|
|
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
|
|
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
|
|
<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"/>
|
|
|
|
<Style TargetType="{x:Type Button}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
<Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<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" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" 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}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Button.EffectorWindow.TitleBar" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter"
|
|
Margin="0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Focusable="False"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource MouseOverOverlayBackgroundBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource PressedOverlayBackgroundBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Button.HomePage" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="350"/>
|
|
<Setter Property="Width" Value="350"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="15"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource EgtWindow.Gray}"/>
|
|
<Setter Property="FontSize" Value="60"/>
|
|
<Setter Property="FontWeight" Value="Medium"/>
|
|
<Setter Property="Foreground" Value="{StaticResource EgtWindow.Gray}"/>
|
|
<Setter Property="Margin" Value="20"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border x:Name="internal"
|
|
Background="{StaticResource EgtWindow.Gray}"
|
|
BorderThickness="0"
|
|
Margin="5"
|
|
Height="50"
|
|
VerticalAlignment="Top"/>
|
|
<ContentPresenter x:Name="contentPresenter" Grid.Row="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Grid>
|
|
</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="internal" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource EgtWindow.LightBlue}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="internal" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource EgtWindow.LightBlue}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="internal" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<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}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--#endregion Button-->
|
|
|
|
<Style x:Key="Button.CRMPage" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="Width" Value="120"/>
|
|
<Setter Property="Background" Value="{StaticResource EgtWindow.LightGray}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" 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 EgtWindow.DarkBlue}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</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}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Button.EstimationDetail.WindowList" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="Width" Value="160"/>
|
|
<Setter Property="Background" Value="{StaticResource EgtWindow.LightBlue}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" 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 EgtWindow.DarkBlue}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource EgtWindow.DarkBlue}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</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}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="Button.ManageWindow.LeftBar" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Button.Confirm" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="70"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</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="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="ToggleButton.ToolBar.DShowMode" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="50"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
|
|
<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>
|
|
|
|
|
|
<!-- Image -->
|
|
|
|
<!--#region Image-->
|
|
|
|
<Style x:Key="Button.Image.DoorList" TargetType="{x:Type Image}">
|
|
<Setter Property="Stretch" Value="Uniform" />
|
|
</Style>
|
|
|
|
<!--#endregion Image-->
|
|
|
|
<Style x:Key="Button_Image" TargetType="{x:Type Image}">
|
|
<Setter Property="Stretch" Value="Uniform" />
|
|
</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>
|
|
|
|
<Style x:Key="TextBlock.DataGridTextColumn" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TextBlock.EstimationDetail" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TextBlock.ManageWindow" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TextBlock.ManageWindow.SelArea" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Margin" Value="10"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ComboBox.EstimationDetail" TargetType="{x:Type ComboBox}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="ComboBox.ManageWindow" TargetType="{x:Type ComboBox}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TextBox.ManageWindow" TargetType="{x:Type TextBox}">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TabItem.EstimationDetail" TargetType="{x:Type TabItem}" BasedOn="{StaticResource {x:Type TabItem}}">
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="Width" Value="150"/>
|
|
</Style>
|
|
|
|
<Style x:Key="TabItem.ManageWindow" TargetType="{x:Type TabItem}" BasedOn="{StaticResource {x:Type TabItem}}">
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="Width" Value="100"/>
|
|
</Style>
|
|
|
|
<ControlTemplate x:Key="ControlTemplate.TabControl.NoHeader" TargetType="{x:Type TabControl}">
|
|
<Grid x:Name="templateRoot" ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
|
|
<Border x:Name="contentPanel" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabIndex="1" KeyboardNavigation.TabNavigation="Local">
|
|
<ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="TextElement.Foreground" TargetName="templateRoot" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
<Style x:Key="TabControl.NoHeader" TargetType="{x:Type TabControl}">
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="Template" Value="{StaticResource ControlTemplate.TabControl.NoHeader}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Expander.CheckBoxHeader" TargetType="{x:Type Expander}">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Expander}">
|
|
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" SnapsToDevicePixels="true">
|
|
<DockPanel>
|
|
<CheckBox x:Name="HeaderSite" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" DockPanel.Dock="Top" FontStretch="{TemplateBinding FontStretch}" Foreground="{TemplateBinding Foreground}" FocusVisualStyle="{StaticResource FocusVisual}" FontStyle="{TemplateBinding FontStyle}" FontFamily="{TemplateBinding FontFamily}" FontWeight="{TemplateBinding FontWeight}" FontSize="{TemplateBinding FontSize}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="1,1,5,1" MinWidth="0" MinHeight="0" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
<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="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--#endregion USERCONTROL-->
|
|
|
|
</ResourceDictionary>
|