1 <Application x:Class="Application"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:local="clr-namespace:NEA"
5 StartupUri="SplashPage.xaml">
6 <Application.Resources>
8 <Style x:Key="FocusVisual">
9 <Setter Property="Control.Template">
12 <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
17 <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
18 <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
19 <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#00BEE6FD"/>
20 <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#003C7FB1"/>
21 <SolidColorBrush x:Key="Button.Pressed.Background" Color="#00C4E5F6"/>
22 <SolidColorBrush x:Key="Button.Pressed.Border" Color="#002C628B"/>
23 <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
24 <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
25 <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
26 <Style x:Key="NoBlueHighlightOnWordButton" TargetType="{x:Type Button}">
27 <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
28 <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
29 <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
30 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
31 <Setter Property="BorderThickness" Value="1"/>
32 <Setter Property="HorizontalContentAlignment" Value="Center"/>
33 <Setter Property="VerticalContentAlignment" Value="Center"/>
34 <Setter Property="Padding" Value="1"/>
35 <Setter Property="Template">
37 <ControlTemplate TargetType="{x:Type Button}">
38 <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
39 <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
41 <ControlTemplate.Triggers>
42 <Trigger Property="IsDefaulted" Value="true">
43 <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
45 <Trigger Property="IsMouseOver" Value="true">
46 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
47 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
49 <Trigger Property="IsPressed" Value="true">
50 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
51 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
53 <Trigger Property="IsEnabled" Value="false">
54 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
55 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
56 <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
58 </ControlTemplate.Triggers>
63 <SolidColorBrush x:Key="Button.MouseOver.Background2" Color="#FFBEE6FD"/>
64 <SolidColorBrush x:Key="Button.MouseOver.Border2" Color="#FF3C7FB1"/>
65 <SolidColorBrush x:Key="Button.Pressed.Background2" Color="#FFC4E5F6"/>
66 <SolidColorBrush x:Key="Button.Pressed.Border2" Color="#FF2C628B"/>
67 <Style x:Key="NoBlueHighlightOnPictureButton" TargetType="{x:Type Button}">
68 <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
69 <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
70 <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
71 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
72 <Setter Property="BorderThickness" Value="1"/>
73 <Setter Property="HorizontalContentAlignment" Value="Center"/>
74 <Setter Property="VerticalContentAlignment" Value="Center"/>
75 <Setter Property="Padding" Value="1"/>
76 <Setter Property="Template">
78 <ControlTemplate TargetType="{x:Type Button}">
79 <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
80 <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
82 <ControlTemplate.Triggers>
83 <Trigger Property="IsDefaulted" Value="true">
84 <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
87 <Trigger Property="IsEnabled" Value="false">
88 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
89 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
90 <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
92 </ControlTemplate.Triggers>
97 <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
98 <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
99 <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
100 <Style x:Key="TextboxHint" TargetType="{x:Type TextBox}">
101 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
102 <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}"/>
103 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
104 <Setter Property="BorderThickness" Value="1"/>
105 <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
106 <Setter Property="HorizontalContentAlignment" Value="Left"/>
107 <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
108 <Setter Property="AllowDrop" Value="true"/>
109 <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
110 <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
111 <Setter Property="Template">
113 <ControlTemplate TargetType="{x:Type TextBox}">
114 <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
115 <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
117 <ControlTemplate.Triggers>
118 <Trigger Property="IsEnabled" Value="false">
119 <Setter Property="Opacity" TargetName="border" Value="0.56"/>
121 <Trigger Property="IsMouseOver" Value="true">
122 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.MouseOver.Border}"/>
124 <Trigger Property="IsKeyboardFocused" Value="true">
125 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.Focus.Border}"/>
127 </ControlTemplate.Triggers>
133 <MultiTrigger.Conditions>
134 <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
135 <Condition Property="IsSelectionActive" Value="false"/>
136 </MultiTrigger.Conditions>
137 <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
142 </Application.Resources>