186 lines
8.3 KiB
XML
186 lines
8.3 KiB
XML
<ResourceDictionary x:Class="Dictionary"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
>
|
|
|
|
<!--
|
|
Assign a Key to every Panel ViewModel to use
|
|
it in xaml file(ProjectView.xaml).
|
|
-->
|
|
<!--<local:FiveLakesUIVM x:Key="FiveLakesUIVM"/>
|
|
<local:DoorListPageVM x:Key="DoorListVM"/>
|
|
<local:MachinePageVM x:Key="MachinePageVM"/>-->
|
|
|
|
<!--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>
|
|
|
|
<Style x:Key="MainWindow" TargetType="{x:Type Window}">
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<WindowChrome CaptionHeight="32"
|
|
GlassFrameThickness="0"
|
|
CornerRadius="0"
|
|
ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Window}">
|
|
<Border BorderThickness="0"
|
|
BorderBrush="LightGray"
|
|
Background="{TemplateBinding Background}">
|
|
<!--<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<ContentPresenter Grid.Row="1"
|
|
Content="{TemplateBinding Content}"/>
|
|
</Grid>-->
|
|
<ContentPresenter Grid.Row="1"
|
|
Content="{TemplateBinding Content}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="WindowState" Value="Maximized">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Window}">
|
|
<Border BorderThickness="7"
|
|
BorderBrush="LightGray"
|
|
Background="{TemplateBinding Background}">
|
|
<!--<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<ContentPresenter Grid.Row="1"
|
|
Content="{TemplateBinding Content}"/>
|
|
</Grid>-->
|
|
<ContentPresenter Grid.Row="1"
|
|
Content="{TemplateBinding Content}"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="TitleBarButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="{DynamicResource WindowTextBrush}" />
|
|
<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="TitleBarCloseButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
<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 MouseOverWindowCloseButtonBackgroundBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource MouseOverWindowCloseButtonForegroundBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource PressedWindowCloseButtonBackgroundBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource MouseOverWindowCloseButtonForegroundBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|