69
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 <Application x:Class="SilverlightValidation.App"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4 xmlns:p="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 xmlns:s="clr-namespace:System;assembly=mscorlib"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 <Application.Resources>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 <ControlTemplate x:Key="ValidationToolTipTemplate">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 <Grid x:Name="Root"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10 Margin="5,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 Opacity="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 RenderTransformOrigin="0,0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 <Grid.RenderTransform>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14 <TranslateTransform x:Name="xform" X="-25" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15 </Grid.RenderTransform>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 <VisualStateGroup x:Name="OpenStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 <VisualStateGroup.Transitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 <VisualTransition GeneratedDuration="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20 <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 <DoubleAnimation Duration="0:0:0.2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 Storyboard.TargetName="xform"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24 Storyboard.TargetProperty="X"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 To="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 <DoubleAnimation.EasingFunction>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27 <BackEase Amplitude=".3" EasingMode="EaseOut" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 </DoubleAnimation.EasingFunction>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 </DoubleAnimation>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 <DoubleAnimation Duration="0:0:0.2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 Storyboard.TargetName="Root"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 </VisualTransition>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36 </VisualStateGroup.Transitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 <VisualState x:Name="Closed">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 Storyboard.TargetName="Root"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42 To="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
43 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
44 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
45 <VisualState x:Name="Open">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
46 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
47 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
48 Storyboard.TargetName="xform"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
49 Storyboard.TargetProperty="X"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
50 To="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
51 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
52 Storyboard.TargetName="Root"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
53 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
54 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
55 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
56 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
57 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
58 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
59 <Border Margin="4,4,-4,-4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
60 Background="#052A2E31"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
61 CornerRadius="5" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
62 <Border Margin="3,3,-3,-3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
63 Background="#152A2E31"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
64 CornerRadius="4" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
65 <Border Margin="2,2,-2,-2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
66 Background="#252A2E31"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
67 CornerRadius="3" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
68 <Border Margin="1,1,-1,-1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
69 Background="#352A2E31"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
70 CornerRadius="2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
71 <Border Background="#FFDC000C" CornerRadius="2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
72 <Border CornerRadius="2">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
73 <TextBlock MaxWidth="250"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
74 Margin="8,4,8,4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
75 Foreground="White"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
76 Text="{Binding (Validation.Errors)[0].ErrorContent}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
77 TextWrapping="Wrap"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
78 UseLayoutRounding="false" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
79 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
80 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
81 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
82
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
83 <Style x:Key="LabelStyle" TargetType="TextBlock">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
84 <Setter Property="Height" Value="18" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
85 <Setter Property="FontFamily" Value="Segoe UI Light" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
86 <Setter Property="FontSize" Value="14" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
87 <Setter Property="VerticalAlignment" Value="Center" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
88 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
89
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
90 <Style x:Key="TextBoxStyle" TargetType="TextBox">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
91 <Setter Property="BorderThickness" Value="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
92 <Setter Property="Background" Value="#FFFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
93 <Setter Property="FontFamily" Value="Segoe UI Light" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
94 <Setter Property="FontSize" Value="12" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
95 <Setter Property="Height" Value="24" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
96 <Setter Property="VerticalAlignment" Value="Center" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
97 <Setter Property="Foreground" Value="#FF000000" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
98 <Setter Property="Padding" Value="2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
99 <Setter Property="BorderBrush">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
100 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
101 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
102 <GradientStop Offset="0" Color="#FFA3AEB9" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
103 <GradientStop Offset="0.375" Color="#FF8399A9" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
104 <GradientStop Offset="0.375" Color="#FF718597" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
105 <GradientStop Offset="1" Color="#FF617584" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
106 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
107 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
108 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
109 <Setter Property="Template">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
110 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
111 <ControlTemplate TargetType="TextBox">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
112 <Grid x:Name="RootElement">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
113 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
114 <VisualStateGroup x:Name="CommonStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
115 <VisualState x:Name="Normal" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
116 <VisualState x:Name="MouseOver">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
117 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
118 <ColorAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
119 Storyboard.TargetName="MouseOverBorder"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
120 Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
121 To="#FF99C1E2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
122 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
123 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
124 <VisualState x:Name="Disabled">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
125 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
126 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
127 Storyboard.TargetName="DisabledVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
128 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
129 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
130 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
131 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
132 <VisualState x:Name="ReadOnly">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
133 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
134 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
135 Storyboard.TargetName="ReadOnlyVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
136 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
137 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
138 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
139 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
140 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
141 <VisualStateGroup x:Name="FocusStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
142 <VisualState x:Name="Focused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
143 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
144 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
145 Storyboard.TargetName="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
146 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
147 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
148 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
149 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
150 <VisualState x:Name="Unfocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
151 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
152 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
153 Storyboard.TargetName="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
154 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
155 To="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
156 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
157 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
158 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
159 <VisualStateGroup x:Name="ValidationStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
160 <VisualState x:Name="Valid" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
161 <VisualState x:Name="InvalidUnfocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
162 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
163 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
164 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
165 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
166 <Visibility>Visible</Visibility>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
167 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
168 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
169 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
170 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
171 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
172 <VisualState x:Name="InvalidFocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
173 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
174 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
175 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
176 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
177 <Visibility>Visible</Visibility>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
178 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
179 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
180 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
181 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
182 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
183 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
184 <s:Boolean>True</s:Boolean>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
185 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
186 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
187 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
188 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
189 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
190 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
191 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
192 <Border x:Name="Border"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
193 Background="{TemplateBinding Background}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
194 BorderBrush="{TemplateBinding BorderBrush}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
195 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
196 CornerRadius="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
197 Opacity="1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
198 <Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
199 <Border x:Name="ReadOnlyVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
200 Background="#5EC9C9C9"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
201 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
202 <Border x:Name="MouseOverBorder"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
203 BorderBrush="Transparent"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
204 BorderThickness="1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
205 <ScrollViewer x:Name="ContentElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
206 BorderThickness="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
207 IsTabStop="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
208 Padding="{TemplateBinding Padding}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
209 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
210 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
211 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
212 <Border x:Name="DisabledVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
213 Background="#A5F7F7F7"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
214 BorderBrush="#A5F7F7F7"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
215 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
216 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
217 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
218 <Border x:Name="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
219 Margin="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
220 BorderBrush="#FF6DBDD1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
221 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
222 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
223 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
224 <Border x:Name="ValidationErrorElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
225 BorderBrush="#FFDC000C"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
226 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
227 CornerRadius="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
228 Visibility="Collapsed">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
229 <ToolTipService.ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
230 <ToolTip x:Name="validationTooltip"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
231 DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
232 Placement="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
233 PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
234 Template="{StaticResource ValidationToolTipTemplate}">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
235 <ToolTip.Triggers>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
236 <EventTrigger RoutedEvent="Canvas.Loaded">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
237 <EventTrigger.Actions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
238 <BeginStoryboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
239 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
240 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
241 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
242 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
243 <s:Boolean>true</s:Boolean>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
244 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
245 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
246 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
247 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
248 </BeginStoryboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
249 </EventTrigger.Actions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
250 </EventTrigger>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
251 </ToolTip.Triggers>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
252 </ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
253 </ToolTipService.ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
254 <Grid Width="12"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
255 Height="12"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
256 Margin="1,-4,-4,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
257 HorizontalAlignment="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
258 VerticalAlignment="Top"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
259 Background="Transparent">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
260 <Path Margin="1,3,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
261 Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
262 Fill="#FFDC000C" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
263 <Path Margin="1,3,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
264 Data="M 0,0 L2,0 L 8,6 L8,8"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
265 Fill="#ffffff" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
266 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
267 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
268 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
269 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
270 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
271 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
272 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
273
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
274 <Style x:Key="DatePickerStyle" TargetType="sdk:DatePicker">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
275 <Setter Property="FontFamily" Value="Segoe UI Light" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
276 <Setter Property="FontSize" Value="14" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
277 <Setter Property="Height" Value="24" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
278 <Setter Property="VerticalAlignment" Value="Center" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
279 <Setter Property="IsTabStop" Value="False" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
280 <Setter Property="Background" Value="#FFFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
281 <Setter Property="Padding" Value="2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
282 <Setter Property="SelectionBackground" Value="#FF444444" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
283 <Setter Property="BorderBrush">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
284 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
285 <LinearGradientBrush StartPoint=".5,1" EndPoint=".5,0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
286 <GradientStop Offset="0" Color="#FF617584" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
287 <GradientStop Offset="0.375" Color="#FF718597" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
288 <GradientStop Offset="0.375" Color="#FF8399A9" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
289 <GradientStop Offset="1" Color="#FFA3AEB9" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
290 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
291 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
292 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
293 <Setter Property="BorderThickness" Value="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
294 <Setter Property="Template">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
295 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
296 <ControlTemplate TargetType="sdk:DatePicker">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
297 <Grid x:Name="Root">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
298 <Grid.Resources>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
299 <SolidColorBrush x:Key="DisabledBrush" Color="#8CFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
300 <ControlTemplate x:Key="DropDownButtonTemplate" TargetType="Button">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
301 <Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
302 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
303 <VisualStateGroup x:Name="CommonStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
304 <VisualStateGroup.Transitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
305 <VisualTransition GeneratedDuration="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
306 <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
307 <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
308 </VisualStateGroup.Transitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
309 <VisualState x:Name="Normal" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
310 <VisualState x:Name="MouseOver">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
311 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
312 <ColorAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
313 Storyboard.TargetName="Background"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
314 Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
315 To="#FF448DCA" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
316 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
317 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
318 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
319 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
320 <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
321 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
322 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
323 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
324 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
325 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
326 <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
327 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
328 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
329 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
330 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
331 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
332 <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
333 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
334 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
335 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
336 <VisualState x:Name="Pressed">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
337 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
338 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
339 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
340 Storyboard.TargetName="Background"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
341 Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
342 <SplineColorKeyFrame KeyTime="0" Value="#FF448DCA" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
343 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
344 <DoubleAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
345 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
346 Storyboard.TargetName="Highlight"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
347 Storyboard.TargetProperty="(UIElement.Opacity)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
348 <SplineDoubleKeyFrame KeyTime="0" Value="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
349 </DoubleAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
350 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
351 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
352 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
353 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
354 <SplineColorKeyFrame KeyTime="0" Value="#EAFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
355 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
356 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
357 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
358 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
359 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
360 <SplineColorKeyFrame KeyTime="0" Value="#C6FFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
361 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
362 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
363 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
364 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
365 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
366 <SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
367 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
368 <ColorAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
369 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
370 Storyboard.TargetName="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
371 Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
372 <SplineColorKeyFrame KeyTime="0" Value="#F4FFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
373 </ColorAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
374 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
375 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
376 <VisualState x:Name="Disabled">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
377 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
378 <DoubleAnimationUsingKeyFrames BeginTime="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
379 Duration="00:00:00.001"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
380 Storyboard.TargetName="DisabledVisual"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
381 Storyboard.TargetProperty="(UIElement.Opacity)">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
382 <SplineDoubleKeyFrame KeyTime="0" Value="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
383 </DoubleAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
384 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
385 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
386 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
387 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
388 <Grid Width="19"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
389 Height="18"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
390 Margin="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
391 HorizontalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
392 VerticalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
393 Background="#11FFFFFF">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
394 <Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
395 <RowDefinition Height="23*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
396 <RowDefinition Height="19*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
397 <RowDefinition Height="19*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
398 <RowDefinition Height="19*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
399 </Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
400 <Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
401 <ColumnDefinition Width="20*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
402 <ColumnDefinition Width="20*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
403 <ColumnDefinition Width="20*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
404 <ColumnDefinition Width="20*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
405 </Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
406 <Border x:Name="Highlight"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
407 Grid.Row="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
408 Grid.RowSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
409 Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
410 Margin="-1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
411 BorderBrush="#FF6DBDD1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
412 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
413 CornerRadius="0,0,1,1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
414 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
415 <Border x:Name="Background"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
416 Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
417 Grid.RowSpan="3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
418 Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
419 Margin="0,-1,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
420 Background="#FF1F3B53"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
421 BorderBrush="#FFFFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
422 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
423 CornerRadius=".5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
424 Opacity="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
425 <Border x:Name="BackgroundGradient"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
426 Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
427 Grid.RowSpan="3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
428 Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
429 Margin="0,-1,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
430 BorderBrush="#BF000000"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
431 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
432 CornerRadius=".5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
433 Opacity="1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
434 <Border.Background>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
435 <LinearGradientBrush StartPoint=".7,0" EndPoint=".7,1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
436 <GradientStop Offset="0" Color="#FFFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
437 <GradientStop Offset="0.375" Color="#F9FFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
438 <GradientStop Offset="0.625" Color="#E5FFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
439 <GradientStop Offset="1" Color="#C6FFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
440 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
441 </Border.Background>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
442 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
443 <Rectangle Grid.RowSpan="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
444 Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
445 StrokeThickness="1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
446 <Rectangle.Stroke>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
447 <LinearGradientBrush StartPoint="0.48,1.25" EndPoint="0.48,-1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
448 <GradientStop Color="#FF494949" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
449 <GradientStop Offset="1" Color="#FF9F9F9F" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
450 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
451 </Rectangle.Stroke>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
452 <Rectangle.Fill>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
453 <LinearGradientBrush StartPoint="0.46,1.6" EndPoint="0.3,-1.1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
454 <GradientStop Color="#FF4084BD" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
455 <GradientStop Offset="1" Color="#FFAFCFEA" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
456 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
457 </Rectangle.Fill>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
458 </Rectangle>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
459 <Path Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
460 Grid.RowSpan="3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
461 Grid.Column="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
462 Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
463 Margin="4,3,4,3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
464 HorizontalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
465 VerticalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
466 Data="M11.426758,8.4305077 L11.749023,8.4305077 L11.749023,16.331387 L10.674805,16.331387 L10.674805,10.299648 L9.0742188,11.298672 L9.0742188,10.294277 C9.4788408,10.090176 9.9094238,9.8090878 10.365967,9.4510155 C10.82251,9.0929432 11.176106,8.7527733 11.426758,8.4305077 z M14.65086,8.4305077 L18.566387,8.4305077 L18.566387,9.3435936 L15.671368,9.3435936 L15.671368,11.255703 C15.936341,11.058764 16.27293,10.960293 16.681133,10.960293 C17.411602,10.960293 17.969301,11.178717 18.354229,11.615566 C18.739157,12.052416 18.931622,12.673672 18.931622,13.479336 C18.931622,15.452317 18.052553,16.438808 16.294415,16.438808 C15.560365,16.438808 14.951641,16.234707 14.468243,15.826504 L14.881817,14.929531 C15.368796,15.326992 15.837872,15.525723 16.289043,15.525723 C17.298809,15.525723 17.803692,14.895514 17.803692,13.635098 C17.803692,12.460618 17.305971,11.873379 16.310528,11.873379 C15.83071,11.873379 15.399232,12.079271 15.016094,12.491055 L14.65086,12.238613 z"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
467 Fill="#FF2F2F2F"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
468 RenderTransformOrigin="0.5,0.5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
469 Stretch="Fill" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
470 <Ellipse Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
471 Width="3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
472 Height="3"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
473 HorizontalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
474 VerticalAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
475 Fill="#FFFFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
476 StrokeThickness="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
477 <Border x:Name="DisabledVisual"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
478 Grid.Row="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
479 Grid.RowSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
480 Grid.ColumnSpan="4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
481 BorderBrush="#B2FFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
482 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
483 CornerRadius="0,0,.5,.5"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
484 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
485 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
486 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
487 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
488 </Grid.Resources>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
489 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
490 <VisualStateGroup x:Name="CommonStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
491 <VisualState x:Name="Normal" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
492 <VisualState x:Name="Disabled">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
493 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
494 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
495 Storyboard.TargetName="DisabledVisual"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
496 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
497 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
498 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
499 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
500 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
501 <VisualStateGroup x:Name="ValidationStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
502 <VisualState x:Name="Valid" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
503 <VisualState x:Name="InvalidUnfocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
504 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
505 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
506 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
507 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
508 <Visibility>Visible</Visibility>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
509 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
510 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
511 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
512 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
513 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
514 <VisualState x:Name="InvalidFocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
515 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
516 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
517 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
518 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
519 <Visibility>Visible</Visibility>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
520 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
521 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
522 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
523 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
524 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
525 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
526 <s:Boolean>True</s:Boolean>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
527 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
528 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
529 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
530 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
531 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
532 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
533 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
534 <Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
535 <ColumnDefinition Width="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
536 <ColumnDefinition Width="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
537 </Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
538 <p:DatePickerTextBox x:Name="TextBox"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
539 Grid.Column="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
540 Background="{TemplateBinding Background}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
541 BorderBrush="{TemplateBinding BorderBrush}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
542 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
543 Padding="{TemplateBinding Padding}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
544 SelectionBackground="{TemplateBinding SelectionBackground}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
545 <Button x:Name="Button"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
546 Grid.Column="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
547 Width="20"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
548 Margin="2,0,2,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
549 BorderBrush="{TemplateBinding BorderBrush}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
550 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
551 Foreground="{TemplateBinding Foreground}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
552 Template="{StaticResource DropDownButtonTemplate}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
553 <Grid x:Name="DisabledVisual"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
554 Grid.ColumnSpan="2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
555 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
556 Opacity="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
557 <Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
558 <ColumnDefinition Width="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
559 <ColumnDefinition Width="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
560 </Grid.ColumnDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
561 <Rectangle Fill="#8CFFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
562 RadiusX="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
563 RadiusY="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
564 <Rectangle Grid.Column="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
565 Width="19"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
566 Height="18"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
567 Margin="2,0,2,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
568 Fill="#8CFFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
569 RadiusX="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
570 RadiusY="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
571 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
572 <Popup x:Name="Popup" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
573 <Border x:Name="ValidationErrorElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
574 BorderBrush="#FFDC000C"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
575 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
576 CornerRadius="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
577 Visibility="Collapsed">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
578 <ToolTipService.ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
579 <ToolTip x:Name="validationTooltip"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
580 DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
581 Placement="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
582 PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
583 Template="{StaticResource ValidationToolTipTemplate}">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
584 <ToolTip.Triggers>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
585 <EventTrigger RoutedEvent="Canvas.Loaded">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
586 <BeginStoryboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
587 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
588 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
589 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
590 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
591 <s:Boolean>true</s:Boolean>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
592 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
593 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
594 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
595 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
596 </BeginStoryboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
597 </EventTrigger>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
598 </ToolTip.Triggers>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
599 </ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
600 </ToolTipService.ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
601 <Grid Width="12"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
602 Height="12"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
603 Margin="1,-4,-4,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
604 HorizontalAlignment="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
605 VerticalAlignment="Top"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
606 Background="Transparent">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
607 <Path Margin="1,3,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
608 Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
609 Fill="#FFDC000C" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
610 <Path Margin="1,3,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
611 Data="M 0,0 L2,0 L 8,6 L8,8"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
612 Fill="#ffffff" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
613 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
614 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
615 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
616 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
617 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
618 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
619 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
620
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
621 <Style x:Key="ButtonStyle" TargetType="Button">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
622 <Setter Property="Height" Value="22" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
623 <Setter Property="Margin" Value="5,0,0,0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
624 <Setter Property="VerticalAlignment" Value="Center" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
625 <Setter Property="Width" Value="60" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
626 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
627
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
628 <Style x:Key="ValidationSummaryStyle" TargetType="sdk:ValidationSummary">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
629 <Setter Property="IsTabStop" Value="False" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
630 <Setter Property="Background" Value="#FFEFEFEA" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
631 <Setter Property="BorderBrush" Value="#FFCECEC7" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
632 <Setter Property="BorderThickness" Value="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
633 <Setter Property="Padding" Value="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
634
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
635 <Setter Property="HeaderTemplate">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
636 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
637 <DataTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
638 <Border x:Name="Header"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
639 Margin="-1,-1,-1,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
640 Background="#FFDC000C"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
641 CornerRadius="2">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
642 <StackPanel Margin="6,2,6,4"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
643 VerticalAlignment="Top"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
644 Orientation="Horizontal">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
645 <Grid Width="13" Height="13">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
646 <Ellipse Margin="0" RenderTransformOrigin="0.5,0.5">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
647 <Ellipse.Fill>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
648 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
649 <GradientStop Offset="0" Color="#FFFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
650 <GradientStop Offset="1" Color="#FFFDC8C8" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
651 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
652 </Ellipse.Fill>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
653 <Ellipse.Stroke>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
654 <LinearGradientBrush StartPoint="0.505,0.65" EndPoint="0.5,0.058">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
655 <GradientStop Offset="0" Color="#FFDC000C" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
656 <GradientStop Offset="0.991" Color="#FFFF9298" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
657 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
658 </Ellipse.Stroke>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
659 </Ellipse>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
660 <Path Data="M5.5,2.5 L7.5,2.5 L7.5,8 L5.5,8 M5.5,9.5 L7.5,9.5 L7.5,10.5 L5.5,10.5" Fill="#DDD43940" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
661 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
662 <TextBlock FontWeight="Bold"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
663 Foreground="#FFFFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
664 Padding="4,1,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
665 Text="{Binding}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
666 </StackPanel>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
667 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
668 </DataTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
669 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
670 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
671 <Setter Property="ErrorStyle">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
672 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
673 <Style TargetType="ListBoxItem">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
674 <Setter Property="Template">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
675 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
676 <ControlTemplate TargetType="ListBoxItem">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
677 <Grid Background="{TemplateBinding Background}">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
678 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
679 <VisualStateGroup x:Name="CommonStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
680 <VisualState x:Name="Normal" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
681 <VisualState x:Name="MouseOver">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
682 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
683 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
684 Storyboard.TargetName="FillColor"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
685 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
686 To=".35" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
687 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
688 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
689 <VisualState x:Name="Disabled">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
690 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
691 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
692 Storyboard.TargetName="ContentPresenter"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
693 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
694 To=".55" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
695 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
696 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
697 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
698 <VisualStateGroup x:Name="SelectionStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
699 <VisualState x:Name="Unselected" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
700 <VisualState x:Name="Selected">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
701 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
702 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
703 Storyboard.TargetName="FillColor2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
704 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
705 To=".75" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
706 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
707 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
708 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
709 <VisualStateGroup x:Name="FocusStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
710 <VisualState x:Name="Focused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
711 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
712 <ObjectAnimationUsingKeyFrames Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
713 Storyboard.TargetName="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
714 Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
715 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
716 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
717 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
718 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
719 <VisualState x:Name="Unfocused" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
720 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
721 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
722 <Rectangle x:Name="FillColor"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
723 Fill="#59F7D8DB"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
724 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
725 Opacity="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
726 RadiusX="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
727 RadiusY="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
728 <Rectangle x:Name="FillColor2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
729 Fill="#FFF7D8DB"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
730 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
731 Opacity="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
732 RadiusX="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
733 RadiusY="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
734 <ContentPresenter x:Name="ContentPresenter"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
735 Margin="{TemplateBinding Padding}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
736 HorizontalAlignment="Left"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
737 Content="{TemplateBinding Content}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
738 ContentTemplate="{TemplateBinding ContentTemplate}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
739 <Rectangle x:Name="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
740 RadiusX="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
741 RadiusY="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
742 Stroke="#FFF7D8DB"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
743 StrokeThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
744 Visibility="Collapsed" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
745 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
746 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
747 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
748 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
749 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
750 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
751 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
752 <Setter Property="Template">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
753 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
754 <ControlTemplate TargetType="sdk:ValidationSummary">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
755 <Grid x:Name="ValidationSummary">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
756 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
757 <VisualStateGroup x:Name="CommonStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
758 <VisualState x:Name="Normal" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
759 <VisualState x:Name="Disabled">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
760 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
761 <ObjectAnimationUsingKeyFrames Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
762 Storyboard.TargetName="DisabledVisual"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
763 Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
764 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
765 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
766 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
767 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
768 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
769 <VisualStateGroup x:Name="ValidationStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
770 <VisualState x:Name="Empty">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
771 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
772 <ObjectAnimationUsingKeyFrames Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
773 Storyboard.TargetName="Content"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
774 Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
775 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
776 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
777 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
778 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
779 <VisualState x:Name="HasErrors" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
780 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
781 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
782 <Border x:Name="Content"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
783 Background="{TemplateBinding Background}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
784 BorderBrush="{TemplateBinding BorderBrush}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
785 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
786 CornerRadius="0,0,2,2">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
787 <Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
788 <Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
789 <RowDefinition Height="Auto" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
790 <RowDefinition Height="*" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
791 </Grid.RowDefinitions>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
792 <ListBox x:Name="SummaryListBox"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
793 Grid.Row="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
794 Height="Auto"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
795 Background="{x:Null}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
796 BorderThickness="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
797 Foreground="{TemplateBinding Foreground}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
798 ItemContainerStyle="{TemplateBinding ErrorStyle}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
799 Padding="{TemplateBinding Padding}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
800 Style="{TemplateBinding SummaryListBoxStyle}">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
801 <ListBox.ItemTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
802 <DataTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
803 <StackPanel Orientation="Horizontal">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
804 <TextBlock Margin="4,0,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
805 FontWeight="Bold"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
806 Text="{Binding MessageHeader}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
807 <TextBlock Margin="4,0,0,0" Text="{Binding Message}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
808 </StackPanel>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
809 </DataTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
810 </ListBox.ItemTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
811 </ListBox>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
812 <Border x:Name="DisabledVisual"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
813 Grid.RowSpan="2"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
814 Background="#80FFFFFF"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
815 IsHitTestVisible="True"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
816 Visibility="Collapsed" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
817 <ContentControl x:Name="HeaderContentControl"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
818 HorizontalContentAlignment="Stretch"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
819 VerticalContentAlignment="Center"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
820 Content="{TemplateBinding Header}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
821 ContentTemplate="{TemplateBinding HeaderTemplate}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
822 IsTabStop="False" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
823 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
824 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
825 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
826 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
827 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
828 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
829 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
830
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
831 <Style x:Key="PasswordBoxStyle" TargetType="PasswordBox">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
832 <Setter Property="FontFamily" Value="Segoe UI Light" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
833 <Setter Property="FontSize" Value="12" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
834 <Setter Property="Height" Value="24" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
835 <Setter Property="VerticalAlignment" Value="Center" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
836 <Setter Property="BorderThickness" Value="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
837 <Setter Property="Background" Value="#FFFFFFFF" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
838 <Setter Property="Foreground" Value="#FF000000" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
839 <Setter Property="Padding" Value="2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
840 <Setter Property="BorderBrush">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
841 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
842 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
843 <GradientStop Offset="0" Color="#FFA3AEB9" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
844 <GradientStop Offset="0.375" Color="#FF8399A9" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
845 <GradientStop Offset="0.375" Color="#FF718597" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
846 <GradientStop Offset="1" Color="#FF617584" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
847 </LinearGradientBrush>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
848 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
849 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
850 <Setter Property="Template">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
851 <Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
852 <ControlTemplate TargetType="PasswordBox">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
853 <Grid x:Name="RootElement">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
854 <VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
855 <VisualStateGroup x:Name="CommonStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
856 <VisualState x:Name="Normal" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
857 <VisualState x:Name="MouseOver">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
858 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
859 <ColorAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
860 Storyboard.TargetName="MouseOverBorder"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
861 Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
862 To="#FF99C1E2" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
863 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
864 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
865 <VisualState x:Name="Disabled">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
866 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
867 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
868 Storyboard.TargetName="DisabledVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
869 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
870 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
871 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
872 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
873 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
874 <VisualStateGroup x:Name="FocusStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
875 <VisualState x:Name="Focused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
876 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
877 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
878 Storyboard.TargetName="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
879 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
880 To="1" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
881 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
882 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
883 <VisualState x:Name="Unfocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
884 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
885 <DoubleAnimation Duration="0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
886 Storyboard.TargetName="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
887 Storyboard.TargetProperty="Opacity"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
888 To="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
889 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
890 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
891 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
892 <VisualStateGroup x:Name="ValidationStates">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
893 <VisualState x:Name="Valid" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
894 <VisualState x:Name="InvalidUnfocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
895 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
896 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
897 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
898 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
899 <Visibility>Visible</Visibility>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
900 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
901 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
902 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
903 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
904 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
905 <VisualState x:Name="InvalidFocused">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
906 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
907 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
908 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
909 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
910 <Visibility>Visible</Visibility>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
911 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
912 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
913 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
914 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
915 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
916 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
917 <s:Boolean>True</s:Boolean>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
918 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
919 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
920 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
921 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
922 </VisualState>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
923 </VisualStateGroup>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
924 </VisualStateManager.VisualStateGroups>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
925 <Border x:Name="Border"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
926 Background="{TemplateBinding Background}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
927 BorderBrush="{TemplateBinding BorderBrush}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
928 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
929 CornerRadius="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
930 Opacity="1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
931 <Border x:Name="MouseOverBorder"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
932 BorderBrush="Transparent"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
933 BorderThickness="1">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
934 <Border x:Name="ContentElement" Margin="{TemplateBinding Padding}" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
935 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
936 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
937 <Border x:Name="DisabledVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
938 Background="#A5F7F7F7"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
939 BorderBrush="#A5F7F7F7"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
940 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
941 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
942 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
943 <Border x:Name="FocusVisualElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
944 Margin="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
945 BorderBrush="#FF6DBDD1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
946 BorderThickness="{TemplateBinding BorderThickness}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
947 IsHitTestVisible="False"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
948 Opacity="0" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
949 <Border x:Name="ValidationErrorElement"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
950 BorderBrush="#FFDC000C"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
951 BorderThickness="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
952 CornerRadius="1"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
953 Visibility="Collapsed">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
954 <ToolTipService.ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
955 <ToolTip x:Name="validationTooltip"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
956 DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
957 Placement="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
958 PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
959 Template="{StaticResource ValidationToolTipTemplate}">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
960 <ToolTip.Triggers>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
961 <EventTrigger RoutedEvent="Canvas.Loaded">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
962 <BeginStoryboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
963 <Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
964 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
965 <DiscreteObjectKeyFrame KeyTime="0">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
966 <DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
967 <s:Boolean>true</s:Boolean>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
968 </DiscreteObjectKeyFrame.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
969 </DiscreteObjectKeyFrame>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
970 </ObjectAnimationUsingKeyFrames>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
971 </Storyboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
972 </BeginStoryboard>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
973 </EventTrigger>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
974 </ToolTip.Triggers>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
975 </ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
976 </ToolTipService.ToolTip>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
977 <Grid Width="12"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
978 Height="12"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
979 Margin="1,-4,-4,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
980 HorizontalAlignment="Right"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
981 VerticalAlignment="Top"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
982 Background="Transparent">
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
983 <Path Margin="1,3,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
984 Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
985 Fill="#FFDC000C" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
986 <Path Margin="1,3,0,0"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
987 Data="M 0,0 L2,0 L 8,6 L8,8"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
988 Fill="#ffffff" />
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
989 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
990 </Border>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
991 </Grid>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
992 </ControlTemplate>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
993 </Setter.Value>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
994 </Setter>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
995 </Style>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
996 </Application.Resources>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
997 </Application>
|