Mercurial > silverbladetech
comparison Chronosv2/source/Themes/Metro/CoreStyles.xaml @ 10:443821e55f06
Initial cleaned up add from Codeplex files
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:25:44 +0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:904a9faadf8b | 10:443821e55f06 |
---|---|
1 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
3 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
4 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
5 xmlns:sys="clr-namespace:System;assembly=mscorlib" | |
6 xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" | |
7 mc:Ignorable="d"> | |
8 | |
9 <!-- Global Settings--> | |
10 <ResourceDictionary.MergedDictionaries> | |
11 <ResourceDictionary Source="Colors.xaml"/> | |
12 <ResourceDictionary Source="Brushes.xaml"/> | |
13 <ResourceDictionary Source="Fonts.xaml"/> | |
14 <ResourceDictionary Source="VectorIconStyles.xaml" /> | |
15 </ResourceDictionary.MergedDictionaries> | |
16 | |
17 <!--ValidationToolTipTemplate Style--> | |
18 <ControlTemplate x:Key="ValidationToolTipTemplate"> | |
19 <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0"> | |
20 <Grid.RenderTransform> | |
21 <TranslateTransform x:Name="xform" X="-25"/> | |
22 </Grid.RenderTransform> | |
23 <VisualStateManager.VisualStateGroups> | |
24 <VisualStateGroup x:Name="OpenStates"> | |
25 <VisualStateGroup.Transitions> | |
26 <VisualTransition GeneratedDuration="0"/> | |
27 <VisualTransition GeneratedDuration="0:0:0.2" To="Open"> | |
28 <Storyboard> | |
29 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="xform"> | |
30 <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/> | |
31 </DoubleAnimationUsingKeyFrames> | |
32 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"> | |
33 <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/> | |
34 </DoubleAnimationUsingKeyFrames> | |
35 </Storyboard> | |
36 </VisualTransition> | |
37 </VisualStateGroup.Transitions> | |
38 <VisualState x:Name="Closed"> | |
39 <Storyboard> | |
40 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"> | |
41 <SplineDoubleKeyFrame KeyTime="0" Value="0"/> | |
42 </DoubleAnimationUsingKeyFrames> | |
43 </Storyboard> | |
44 </VisualState> | |
45 <VisualState x:Name="Open"> | |
46 <Storyboard> | |
47 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="xform"> | |
48 <SplineDoubleKeyFrame KeyTime="0" Value="0"/> | |
49 </DoubleAnimationUsingKeyFrames> | |
50 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"> | |
51 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
52 </DoubleAnimationUsingKeyFrames> | |
53 </Storyboard> | |
54 </VisualState> | |
55 </VisualStateGroup> | |
56 </VisualStateManager.VisualStateGroups> | |
57 <Border Background="{StaticResource ValidationBrush1}" CornerRadius="5" Margin="4,4,-4,-4"/> | |
58 <Border Background="{StaticResource ValidationBrush2}" CornerRadius="4" Margin="3,3,-3,-3"/> | |
59 <Border Background="{StaticResource ValidationBrush3}" CornerRadius="3" Margin="2,2,-2,-2"/> | |
60 <Border Background="{StaticResource ValidationBrush4}" CornerRadius="2" Margin="1,1,-1,-1"/> | |
61 <Border Background="{StaticResource ValidationBrush5}" CornerRadius="2"/> | |
62 <Border CornerRadius="2"> | |
63 <TextBlock Foreground="{StaticResource WhiteColorBrush}" FontWeight="SemiBold" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding (Validation.Errors)[0].ErrorContent}" UseLayoutRounding="false"/> | |
64 </Border> | |
65 </Grid> | |
66 </ControlTemplate> | |
67 | |
68 <!--CommonValidationToolTipTemplate Style--> | |
69 <ControlTemplate x:Key="CommonValidationToolTipTemplate" TargetType="ToolTip"> | |
70 <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0"> | |
71 <VisualStateManager.VisualStateGroups> | |
72 <VisualStateGroup x:Name="OpenStates"> | |
73 <VisualStateGroup.Transitions> | |
74 <VisualTransition GeneratedDuration="0" /> | |
75 <VisualTransition GeneratedDuration="0:0:0.2" To="Open"> | |
76 <Storyboard> | |
77 <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" To="0"> | |
78 <DoubleAnimation.EasingFunction> | |
79 <BackEase Amplitude=".3" EasingMode="EaseOut" /> | |
80 </DoubleAnimation.EasingFunction> | |
81 </DoubleAnimation> | |
82 <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1" /> | |
83 </Storyboard> | |
84 </VisualTransition> | |
85 </VisualStateGroup.Transitions> | |
86 <VisualState x:Name="Closed"> | |
87 <Storyboard> | |
88 <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0" /> | |
89 </Storyboard> | |
90 </VisualState> | |
91 <VisualState x:Name="Open"> | |
92 <Storyboard> | |
93 <DoubleAnimation Duration="0" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" To="0" /> | |
94 <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1" /> | |
95 </Storyboard> | |
96 </VisualState> | |
97 </VisualStateGroup> | |
98 </VisualStateManager.VisualStateGroups> | |
99 <Grid.RenderTransform> | |
100 <TranslateTransform x:Name="Translation" X="-25" /> | |
101 </Grid.RenderTransform> | |
102 <Border Margin="4,4,-4,-4" Background="{StaticResource ValidationBrush1}" CornerRadius="5" /> | |
103 <Border Margin="3,3,-3,-3" Background="{StaticResource ValidationBrush2}" CornerRadius="4" /> | |
104 <Border Margin="2,2,-2,-2" Background="{StaticResource ValidationBrush3}" CornerRadius="3" /> | |
105 <Border Margin="1,1,-1,-1" Background="{StaticResource ValidationBrush4}" CornerRadius="2" /> | |
106 <Border Background="{StaticResource ValidationBrush5}" CornerRadius="2"> | |
107 <TextBlock Margin="8,4,8,4" MaxWidth="250" UseLayoutRounding="false" Foreground="{StaticResource WhiteColorBrush}" Text="{Binding (Validation.Errors)[0].Exception.Message}" TextWrapping="Wrap"/> | |
108 </Border> | |
109 </Grid> | |
110 </ControlTemplate> | |
111 | |
112 <!--Button Style--> | |
113 <Style TargetType="Button" x:Key="DefaultButtonStyle"> | |
114 <Setter Property="Background" Value="{StaticResource GrayBrush7}"/> | |
115 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
116 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
117 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
118 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
119 <Setter Property="FontWeight" Value="SemiBold"/> | |
120 <Setter Property="Padding" Value="5,6"/> | |
121 <Setter Property="BorderThickness" Value="1"/> | |
122 <Setter Property="IsTabStop" Value="False" /> | |
123 <Setter Property="Focusable" Value="False" /> | |
124 <Setter Property="Template"> | |
125 <Setter.Value> | |
126 <ControlTemplate TargetType="Button"> | |
127 <Grid> | |
128 <VisualStateManager.VisualStateGroups> | |
129 <VisualStateGroup x:Name="CommonStates"> | |
130 <VisualState x:Name="Normal"/> | |
131 <VisualState x:Name="MouseOver"> | |
132 <Storyboard> | |
133 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder"> | |
134 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
135 </DoubleAnimationUsingKeyFrames> | |
136 </Storyboard> | |
137 </VisualState> | |
138 <VisualState x:Name="Pressed"> | |
139 <Storyboard> | |
140 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
141 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
142 </DoubleAnimationUsingKeyFrames> | |
143 </Storyboard> | |
144 </VisualState> | |
145 <VisualState x:Name="Disabled"> | |
146 <Storyboard> | |
147 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
148 <SplineDoubleKeyFrame KeyTime="0" Value="0.7"/> | |
149 </DoubleAnimationUsingKeyFrames> | |
150 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
151 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
152 </DoubleAnimationUsingKeyFrames> | |
153 </Storyboard> | |
154 </VisualState> | |
155 </VisualStateGroup> | |
156 <VisualStateGroup x:Name="FocusStates"> | |
157 <VisualState x:Name="Focused"> | |
158 <Storyboard> | |
159 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle"> | |
160 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
161 </DoubleAnimationUsingKeyFrames> | |
162 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"> | |
163 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
164 </DoubleAnimationUsingKeyFrames> | |
165 | |
166 </Storyboard> | |
167 </VisualState> | |
168 <VisualState x:Name="Unfocused"/> | |
169 </VisualStateGroup> | |
170 </VisualStateManager.VisualStateGroups> | |
171 <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3"/> | |
172 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource ControlsDisabledBrush}" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/> | |
173 <Border x:Name="MouseOverBorder" Background="{StaticResource GrayBrush8}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
174 <Border x:Name="PressedBorder" Background="{StaticResource GrayBrush5}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
175 <Rectangle x:Name="FocusRectangle" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" RadiusY="4" RadiusX="4" Margin="-1" Opacity="0" /> | |
176 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" RadiusX="3" RadiusY="3" Opacity="0" /> | |
177 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
178 RenderOptions.ClearTypeHint="Enabled"/> | |
179 </Grid> | |
180 </ControlTemplate> | |
181 </Setter.Value> | |
182 </Setter> | |
183 </Style> | |
184 | |
185 <!-- Button Focus Visual Style --> | |
186 <Style x:Key="ButtonFocusVisual"> | |
187 <Setter Property="Control.Template"> | |
188 <Setter.Value> | |
189 <ControlTemplate> | |
190 <Rectangle SnapsToDevicePixels="True" Margin="4" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" /> | |
191 </ControlTemplate> | |
192 </Setter.Value> | |
193 </Setter> | |
194 </Style> | |
195 | |
196 <!-- Metro Button Style --> | |
197 <Style x:Key="MetroButtonStyle" TargetType="Button"> | |
198 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
199 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
200 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
201 <Setter Property="IsTabStop" Value="False" /> | |
202 <Setter Property="Focusable" Value="False" /> | |
203 <Setter Property="Template"> | |
204 <Setter.Value> | |
205 <ControlTemplate TargetType="Button"> | |
206 <Border Background="Transparent"> | |
207 <VisualStateManager.VisualStateGroups> | |
208 <VisualStateGroup x:Name="CommonStates"> | |
209 <VisualState x:Name="Normal"> | |
210 <Storyboard> | |
211 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> | |
212 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
213 </DoubleAnimationUsingKeyFrames> | |
214 </Storyboard> | |
215 </VisualState> | |
216 <VisualState x:Name="MouseOver"> | |
217 <Storyboard> | |
218 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> | |
219 <EasingDoubleKeyFrame KeyTime="0" Value="1.0"/> | |
220 </DoubleAnimationUsingKeyFrames> | |
221 </Storyboard> | |
222 </VisualState> | |
223 <VisualState x:Name="Pressed"> | |
224 <Storyboard> | |
225 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> | |
226 <EasingDoubleKeyFrame KeyTime="0" Value="0.4"/> | |
227 </DoubleAnimationUsingKeyFrames> | |
228 </Storyboard> | |
229 </VisualState> | |
230 <VisualState x:Name="Disabled"> | |
231 <Storyboard> | |
232 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> | |
233 <EasingDoubleKeyFrame KeyTime="0" Value="0.2"/> | |
234 </DoubleAnimationUsingKeyFrames> | |
235 </Storyboard> | |
236 </VisualState> | |
237 </VisualStateGroup> | |
238 </VisualStateManager.VisualStateGroups> | |
239 | |
240 <ContentPresenter x:Name="ContentPresenter" | |
241 ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" | |
242 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
243 Margin="{TemplateBinding Padding}" | |
244 RenderOptions.ClearTypeHint="Enabled"/> | |
245 </Border> | |
246 </ControlTemplate> | |
247 </Setter.Value> | |
248 </Setter> | |
249 </Style> | |
250 | |
251 <!--HyperlinkButton Style--> | |
252 <Style TargetType="Button" x:Key="HyperlinkButtonStyle"> | |
253 <Setter Property="Foreground" Value="{StaticResource HighlightBrush}"/> | |
254 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
255 <Setter Property="FontSize" Value="{StaticResource HyperlinkFontSize}"/> | |
256 <Setter Property="Padding" Value="2,0,2,0"/> | |
257 <Setter Property="Cursor" Value="Hand"/> | |
258 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
259 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
260 <Setter Property="Background" Value="Transparent"/> | |
261 <Setter Property="IsTabStop" Value="False" /> | |
262 <Setter Property="Focusable" Value="False" /> | |
263 <Setter Property="Template"> | |
264 <Setter.Value> | |
265 <ControlTemplate TargetType="Button"> | |
266 <Grid Background="{TemplateBinding Background}" Cursor="{TemplateBinding Cursor}"> | |
267 <VisualStateManager.VisualStateGroups> | |
268 <VisualStateGroup x:Name="CommonStates"> | |
269 <VisualState x:Name="Normal"/> | |
270 <VisualState x:Name="MouseOver"> | |
271 <Storyboard> | |
272 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="UnderlineTextBlock"> | |
273 <DiscreteObjectKeyFrame KeyTime="0"> | |
274 <DiscreteObjectKeyFrame.Value> | |
275 <Visibility>Visible</Visibility> | |
276 </DiscreteObjectKeyFrame.Value> | |
277 </DiscreteObjectKeyFrame> | |
278 </ObjectAnimationUsingKeyFrames> | |
279 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
280 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource AccentColorLightBlue}"/> | |
281 </ColorAnimationUsingKeyFrames> | |
282 </Storyboard> | |
283 </VisualState> | |
284 <VisualState x:Name="Pressed"> | |
285 <Storyboard> | |
286 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="UnderlineTextBlock"> | |
287 <DiscreteObjectKeyFrame KeyTime="0"> | |
288 <DiscreteObjectKeyFrame.Value> | |
289 <Visibility>Visible</Visibility> | |
290 </DiscreteObjectKeyFrame.Value> | |
291 </DiscreteObjectKeyFrame> | |
292 </ObjectAnimationUsingKeyFrames> | |
293 </Storyboard> | |
294 </VisualState> | |
295 <VisualState x:Name="Disabled"> | |
296 <Storyboard> | |
297 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledOverlay"> | |
298 <DiscreteObjectKeyFrame KeyTime="0"> | |
299 <DiscreteObjectKeyFrame.Value> | |
300 <Visibility>Visible</Visibility> | |
301 </DiscreteObjectKeyFrame.Value> | |
302 </DiscreteObjectKeyFrame> | |
303 </ObjectAnimationUsingKeyFrames> | |
304 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
305 <EasingDoubleKeyFrame KeyTime="0" Value="0"/> | |
306 </DoubleAnimationUsingKeyFrames> | |
307 </Storyboard> | |
308 </VisualState> | |
309 </VisualStateGroup> | |
310 </VisualStateManager.VisualStateGroups> | |
311 | |
312 <TextBlock x:Name="UnderlineTextBlock" | |
313 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
314 Margin="{TemplateBinding Padding}" | |
315 Text="{TemplateBinding Content}" TextDecorations="Underline" | |
316 Visibility="Collapsed" | |
317 FontSize="{TemplateBinding FontSize}"> | |
318 <TextBlock.Foreground> | |
319 <SolidColorBrush Color="{StaticResource AccentColorBlue}" PresentationOptions:Freeze="True"/> | |
320 </TextBlock.Foreground> | |
321 </TextBlock> | |
322 <TextBlock x:Name="DisabledOverlay" | |
323 Foreground="{StaticResource DisabledForegroundBrush}" | |
324 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
325 Margin="{TemplateBinding Padding}" | |
326 Text="{TemplateBinding Content}" | |
327 Visibility="Collapsed" | |
328 FontSize="{TemplateBinding FontSize}"/> | |
329 | |
330 <ContentControl FontSize="{TemplateBinding FontSize}" IsTabStop="{TemplateBinding IsTabStop}"> | |
331 <ContentControl.Foreground> | |
332 <SolidColorBrush x:Name="ContentPresenterWrapperColor" Color="{StaticResource AccentColorBlue}" PresentationOptions:Freeze="True"/> | |
333 </ContentControl.Foreground> | |
334 <TextBlock x:Name="contentPresenter" | |
335 Text="{TemplateBinding Content}" | |
336 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
337 Margin="{TemplateBinding Padding}" | |
338 FontSize="{TemplateBinding FontSize}"/> | |
339 </ContentControl> | |
340 </Grid> | |
341 </ControlTemplate> | |
342 </Setter.Value> | |
343 </Setter> | |
344 </Style> | |
345 | |
346 <!--TextBox Style--> | |
347 <Style TargetType="TextBox" x:Key="DefaultTextBoxStyle"> | |
348 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
349 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
350 <Setter Property="BorderThickness" Value="1"/> | |
351 <Setter Property="FocusVisualStyle" Value="{x:Null}" /> | |
352 <Setter Property="MinHeight" Value="26"/> | |
353 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
354 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
355 <Setter Property="Padding" Value="0"/> | |
356 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
357 <Setter Property="Template"> | |
358 <Setter.Value> | |
359 <ControlTemplate TargetType="TextBox"> | |
360 <Grid x:Name="RootElement"> | |
361 <VisualStateManager.VisualStateGroups> | |
362 <VisualStateGroup x:Name="CommonStates"> | |
363 <VisualState x:Name="Normal"/> | |
364 <VisualState x:Name="MouseOver"> | |
365 <Storyboard> | |
366 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle" /> | |
367 </Storyboard> | |
368 </VisualState> | |
369 <VisualState x:Name="Disabled"> | |
370 <Storyboard> | |
371 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
372 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
373 </DoubleAnimationUsingKeyFrames> | |
374 </Storyboard> | |
375 </VisualState> | |
376 <VisualState x:Name="ReadOnly"> | |
377 <Storyboard> | |
378 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ReadOnlyVisualElement"> | |
379 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
380 </DoubleAnimationUsingKeyFrames> | |
381 </Storyboard> | |
382 </VisualState> | |
383 </VisualStateGroup> | |
384 <VisualStateGroup x:Name="FocusStates"> | |
385 <VisualState x:Name="Focused"> | |
386 <Storyboard> | |
387 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle" /> | |
388 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"/> | |
389 </Storyboard> | |
390 </VisualState> | |
391 <VisualState x:Name="Unfocused"> | |
392 <Storyboard/> | |
393 </VisualState> | |
394 </VisualStateGroup> | |
395 <VisualStateGroup x:Name="ValidationStates"> | |
396 <VisualState x:Name="Valid"/> | |
397 <VisualState x:Name="InvalidUnfocused"> | |
398 <Storyboard> | |
399 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
400 <DiscreteObjectKeyFrame KeyTime="0"> | |
401 <DiscreteObjectKeyFrame.Value> | |
402 <Visibility>Visible</Visibility> | |
403 </DiscreteObjectKeyFrame.Value> | |
404 </DiscreteObjectKeyFrame> | |
405 </ObjectAnimationUsingKeyFrames> | |
406 </Storyboard> | |
407 </VisualState> | |
408 <VisualState x:Name="InvalidFocused"> | |
409 <Storyboard> | |
410 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
411 <DiscreteObjectKeyFrame KeyTime="0"> | |
412 <DiscreteObjectKeyFrame.Value> | |
413 <Visibility>Visible</Visibility> | |
414 </DiscreteObjectKeyFrame.Value> | |
415 </DiscreteObjectKeyFrame> | |
416 </ObjectAnimationUsingKeyFrames> | |
417 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
418 <DiscreteObjectKeyFrame KeyTime="0"> | |
419 <DiscreteObjectKeyFrame.Value> | |
420 <sys:Boolean>True</sys:Boolean> | |
421 </DiscreteObjectKeyFrame.Value> | |
422 </DiscreteObjectKeyFrame> | |
423 </ObjectAnimationUsingKeyFrames> | |
424 </Storyboard> | |
425 </VisualState> | |
426 </VisualStateGroup> | |
427 </VisualStateManager.VisualStateGroups> | |
428 <Rectangle x:Name="Base" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="1" Fill="{StaticResource ControlBackgroundBrush}" /> | |
429 <Rectangle x:Name="FocusRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="0" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" /> | |
430 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="0" Margin="1" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" /> | |
431 <Grid Margin="0,1,0,0"> | |
432 <Border x:Name="ReadOnlyVisualElement" Background="{StaticResource ReadOnlyBrush}" Opacity="0"/> | |
433 <Grid> | |
434 <ScrollViewer x:Name="PART_ContentHost" BorderThickness="0" IsTabStop="False" Margin="4,0,4,2" VerticalAlignment="Center" Background="{x:Null}"/> | |
435 </Grid> | |
436 </Grid> | |
437 <Rectangle x:Name="DisabledVisualElement" Stroke="{StaticResource ControlsDisabledBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{StaticResource ControlsDisabledBrush}" IsHitTestVisible="False" Opacity="0"/> | |
438 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="1" Visibility="Collapsed"> | |
439 <ToolTipService.ToolTip> | |
440 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
441 </ToolTipService.ToolTip> | |
442 <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12"> | |
443 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationBrush5}" Margin="1,3,0,0"/> | |
444 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="1,3,0,0"/> | |
445 </Grid> | |
446 </Border> | |
447 </Grid> | |
448 </ControlTemplate> | |
449 </Setter.Value> | |
450 </Setter> | |
451 </Style> | |
452 | |
453 <!--SearchTextBoxStyle--> | |
454 <Style x:Key="SearchTextBoxStyle" TargetType="TextBox"> | |
455 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
456 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
457 <Setter Property="BorderThickness" Value="1"/> | |
458 <Setter Property="FocusVisualStyle" Value="{x:Null}" /> | |
459 <Setter Property="MinHeight" Value="26"/> | |
460 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
461 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
462 <Setter Property="Padding" Value="0"/> | |
463 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
464 <Setter Property="Template"> | |
465 <Setter.Value> | |
466 <ControlTemplate TargetType="TextBox"> | |
467 <Grid x:Name="RootElement"> | |
468 <VisualStateManager.VisualStateGroups> | |
469 <VisualStateGroup x:Name="CommonStates"> | |
470 <VisualState x:Name="Normal"/> | |
471 <VisualState x:Name="MouseOver"> | |
472 <Storyboard> | |
473 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle" /> | |
474 </Storyboard> | |
475 </VisualState> | |
476 <VisualState x:Name="Disabled"> | |
477 <Storyboard> | |
478 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
479 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
480 </DoubleAnimationUsingKeyFrames> | |
481 </Storyboard> | |
482 </VisualState> | |
483 <VisualState x:Name="ReadOnly"> | |
484 <Storyboard> | |
485 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ReadOnlyVisualElement"> | |
486 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
487 </DoubleAnimationUsingKeyFrames> | |
488 </Storyboard> | |
489 </VisualState> | |
490 </VisualStateGroup> | |
491 <VisualStateGroup x:Name="FocusStates"> | |
492 <VisualState x:Name="Focused"> | |
493 <Storyboard> | |
494 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle" /> | |
495 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"/> | |
496 </Storyboard> | |
497 </VisualState> | |
498 <VisualState x:Name="Unfocused"> | |
499 <Storyboard/> | |
500 </VisualState> | |
501 </VisualStateGroup> | |
502 <VisualStateGroup x:Name="ValidationStates"> | |
503 <VisualState x:Name="Valid"/> | |
504 <VisualState x:Name="InvalidUnfocused"> | |
505 <Storyboard> | |
506 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
507 <DiscreteObjectKeyFrame KeyTime="0"> | |
508 <DiscreteObjectKeyFrame.Value> | |
509 <Visibility>Visible</Visibility> | |
510 </DiscreteObjectKeyFrame.Value> | |
511 </DiscreteObjectKeyFrame> | |
512 </ObjectAnimationUsingKeyFrames> | |
513 </Storyboard> | |
514 </VisualState> | |
515 <VisualState x:Name="InvalidFocused"> | |
516 <Storyboard> | |
517 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
518 <DiscreteObjectKeyFrame KeyTime="0"> | |
519 <DiscreteObjectKeyFrame.Value> | |
520 <Visibility>Visible</Visibility> | |
521 </DiscreteObjectKeyFrame.Value> | |
522 </DiscreteObjectKeyFrame> | |
523 </ObjectAnimationUsingKeyFrames> | |
524 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
525 <DiscreteObjectKeyFrame KeyTime="0"> | |
526 <DiscreteObjectKeyFrame.Value> | |
527 <sys:Boolean>True</sys:Boolean> | |
528 </DiscreteObjectKeyFrame.Value> | |
529 </DiscreteObjectKeyFrame> | |
530 </ObjectAnimationUsingKeyFrames> | |
531 </Storyboard> | |
532 </VisualState> | |
533 </VisualStateGroup> | |
534 </VisualStateManager.VisualStateGroups> | |
535 <Rectangle x:Name="Base" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="1" Fill="{StaticResource ControlBackgroundBrush}" /> | |
536 <Rectangle x:Name="FocusRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="0" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" /> | |
537 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="0" Margin="1" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" /> | |
538 <Grid Margin="0,1,0,0"> | |
539 <Border x:Name="ReadOnlyVisualElement" Background="{StaticResource ReadOnlyBrush}" Opacity="0"/> | |
540 <Grid> | |
541 <ScrollViewer x:Name="PART_ContentHost" BorderThickness="0" IsTabStop="False" Margin="4,0,2,2" VerticalAlignment="Center" Background="{x:Null}"/> | |
542 </Grid> | |
543 </Grid> | |
544 <Grid x:Name="grid" HorizontalAlignment="Right" Margin="0,0,4,0"> | |
545 <Path x:Name="SearchPath" Grid.Column="1" Style="{StaticResource SearchStyle}" Fill="#FF767676" HorizontalAlignment="Right" Margin="0,0,3.5,0" /> | |
546 </Grid> | |
547 <Rectangle x:Name="DisabledVisualElement" Stroke="{StaticResource ControlsDisabledBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{StaticResource ControlsDisabledBrush}" IsHitTestVisible="False" Opacity="0"/> | |
548 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="1" Visibility="Collapsed"> | |
549 <ToolTipService.ToolTip> | |
550 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
551 </ToolTipService.ToolTip> | |
552 <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12"> | |
553 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationBrush5}" Margin="1,3,0,0"/> | |
554 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="1,3,0,0"/> | |
555 </Grid> | |
556 </Border> | |
557 </Grid> | |
558 </ControlTemplate> | |
559 </Setter.Value> | |
560 </Setter> | |
561 </Style> | |
562 | |
563 <!--ComboBox Style--> | |
564 <Style TargetType="ComboBox" x:Key="DefaultComboBoxStyle"> | |
565 <Setter Property="SnapsToDevicePixels" Value="True" /> | |
566 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
567 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
568 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
569 <Setter Property="Background"> | |
570 <Setter.Value> | |
571 <SolidColorBrush Color="{StaticResource Gray7}" PresentationOptions:Freeze="True"/> | |
572 </Setter.Value> | |
573 </Setter> | |
574 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
575 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
576 <Setter Property="BorderThickness" Value="1"/> | |
577 <Setter Property="Padding" Value="3.5"/> | |
578 <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/> | |
579 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> | |
580 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> | |
581 <Setter Property="ScrollViewer.CanContentScroll" Value="True"/> | |
582 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
583 <Setter Property="Template"> | |
584 <Setter.Value> | |
585 <ControlTemplate TargetType="ComboBox"> | |
586 <Grid> | |
587 <Grid.Resources> | |
588 <Style x:Key="comboToggleStyle" TargetType="ToggleButton"> | |
589 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
590 <Setter Property="Background" Value="{StaticResource GrayBrush7}"/> | |
591 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
592 <Setter Property="BorderThickness" Value="1"/> | |
593 <Setter Property="Padding" Value="3"/> | |
594 <Setter Property="Template"> | |
595 <Setter.Value> | |
596 <ControlTemplate TargetType="ToggleButton"> | |
597 <Grid> | |
598 <VisualStateManager.VisualStateGroups> | |
599 <VisualStateGroup x:Name="CommonStates"> | |
600 <VisualState x:Name="Normal"/> | |
601 <VisualState x:Name="MouseOver"> | |
602 <Storyboard> | |
603 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder"> | |
604 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
605 </DoubleAnimationUsingKeyFrames> | |
606 </Storyboard> | |
607 </VisualState> | |
608 <VisualState x:Name="Pressed"> | |
609 <Storyboard> | |
610 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
611 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
612 </DoubleAnimationUsingKeyFrames> | |
613 </Storyboard> | |
614 </VisualState> | |
615 <VisualState x:Name="Disabled"/> | |
616 </VisualStateGroup> | |
617 <VisualStateGroup x:Name="CheckStates"> | |
618 <VisualState x:Name="Checked"> | |
619 <Storyboard> | |
620 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckedRectangle"> | |
621 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
622 </DoubleAnimationUsingKeyFrames> | |
623 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckedInnerRectangle"> | |
624 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
625 </DoubleAnimationUsingKeyFrames> | |
626 </Storyboard> | |
627 </VisualState> | |
628 <VisualState x:Name="Unchecked"/> | |
629 </VisualStateGroup> | |
630 <VisualStateGroup x:Name="FocusStates"> | |
631 <VisualState x:Name="Focused"> | |
632 <Storyboard> | |
633 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle"> | |
634 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
635 </DoubleAnimationUsingKeyFrames> | |
636 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"> | |
637 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
638 </DoubleAnimationUsingKeyFrames> | |
639 </Storyboard> | |
640 </VisualState> | |
641 <VisualState x:Name="Unfocused"/> | |
642 </VisualStateGroup> | |
643 </VisualStateManager.VisualStateGroups> | |
644 <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3"/> | |
645 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource WhiteBrush}" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/> | |
646 <Border x:Name="MouseOverBorder" Background="{StaticResource GrayBrush8}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
647 <Border x:Name="PressedBorder" Background="{StaticResource GrayBrush5}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
648 <Rectangle x:Name="FocusRectangle" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" RadiusY="4" RadiusX="4" Margin="-1" Opacity="0" /> | |
649 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" RadiusX="3" RadiusY="3" Opacity="0" /> | |
650 <Rectangle x:Name="CheckedRectangle" StrokeThickness="{TemplateBinding BorderThickness}" RadiusY="4" RadiusX="4" Opacity="0" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" /> | |
651 <Rectangle x:Name="CheckedInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" RadiusY="4" RadiusX="4" Opacity="0" Margin="1" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" /> | |
652 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
653 RenderOptions.ClearTypeHint="Enabled"/> | |
654 <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" RadiusY="3.5" RadiusX="3.5" Stroke="{StaticResource HighlightBrush}" StrokeThickness="1" Visibility="Collapsed"/> | |
655 </Grid> | |
656 </ControlTemplate> | |
657 </Setter.Value> | |
658 </Setter> | |
659 </Style> | |
660 </Grid.Resources> | |
661 <VisualStateManager.VisualStateGroups> | |
662 <VisualStateGroup x:Name="CommonStates"> | |
663 <VisualState x:Name="Normal"/> | |
664 <VisualState x:Name="MouseOver"/> | |
665 <VisualState x:Name="Disabled"> | |
666 <Storyboard> | |
667 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualElement"> | |
668 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.45"/> | |
669 </DoubleAnimationUsingKeyFrames> | |
670 </Storyboard> | |
671 </VisualState> | |
672 </VisualStateGroup> | |
673 <VisualStateGroup x:Name="FocusStates"> | |
674 <VisualState x:Name="Focused"> | |
675 <Storyboard> | |
676 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle"> | |
677 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
678 </DoubleAnimationUsingKeyFrames> | |
679 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"> | |
680 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
681 </DoubleAnimationUsingKeyFrames> | |
682 </Storyboard> | |
683 </VisualState> | |
684 <VisualState x:Name="Unfocused"/> | |
685 <VisualState x:Name="FocusedDropDown"> | |
686 <Storyboard> | |
687 <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="PopupBorder"> | |
688 <DiscreteObjectKeyFrame KeyTime="00:00:00"> | |
689 <DiscreteObjectKeyFrame.Value> | |
690 <Visibility>Visible</Visibility> | |
691 </DiscreteObjectKeyFrame.Value> | |
692 </DiscreteObjectKeyFrame> | |
693 </ObjectAnimationUsingKeyFrames> | |
694 </Storyboard> | |
695 </VisualState> | |
696 </VisualStateGroup> | |
697 <VisualStateGroup x:Name="ValidationStates"> | |
698 <VisualState x:Name="Valid"/> | |
699 <VisualState x:Name="InvalidUnfocused"> | |
700 <Storyboard> | |
701 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
702 <DiscreteObjectKeyFrame KeyTime="0"> | |
703 <DiscreteObjectKeyFrame.Value> | |
704 <Visibility>Visible</Visibility> | |
705 </DiscreteObjectKeyFrame.Value> | |
706 </DiscreteObjectKeyFrame> | |
707 </ObjectAnimationUsingKeyFrames> | |
708 </Storyboard> | |
709 </VisualState> | |
710 <VisualState x:Name="InvalidFocused"> | |
711 <Storyboard> | |
712 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
713 <DiscreteObjectKeyFrame KeyTime="0"> | |
714 <DiscreteObjectKeyFrame.Value> | |
715 <Visibility>Visible</Visibility> | |
716 </DiscreteObjectKeyFrame.Value> | |
717 </DiscreteObjectKeyFrame> | |
718 </ObjectAnimationUsingKeyFrames> | |
719 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
720 <DiscreteObjectKeyFrame KeyTime="0"> | |
721 <DiscreteObjectKeyFrame.Value> | |
722 <sys:Boolean>True</sys:Boolean> | |
723 </DiscreteObjectKeyFrame.Value> | |
724 </DiscreteObjectKeyFrame> | |
725 </ObjectAnimationUsingKeyFrames> | |
726 </Storyboard> | |
727 </VisualState> | |
728 </VisualStateGroup> | |
729 </VisualStateManager.VisualStateGroups> | |
730 <Border x:Name="ContentPresenterBorder"> | |
731 <Grid> | |
732 <ToggleButton x:Name="DropDownToggle" | |
733 IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" | |
734 ClickMode="Press" | |
735 Focusable="false" | |
736 BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" | |
737 Background="{TemplateBinding Background}" | |
738 HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" | |
739 Margin="0" | |
740 Style="{StaticResource comboToggleStyle}" | |
741 VerticalAlignment="Stretch"> | |
742 <Path x:Name="BtnArrow" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z " HorizontalAlignment="Right" Height="4" Margin="0,0,6,0" Stretch="Uniform" Width="8"> | |
743 <Path.Fill> | |
744 <SolidColorBrush x:Name="BtnArrowColor" Color="{StaticResource Gray3}" PresentationOptions:Freeze="True"/> | |
745 </Path.Fill> | |
746 </Path> | |
747 </ToggleButton> | |
748 <ContentPresenter x:Name="ContentPresenter" | |
749 IsHitTestVisible="False" | |
750 SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | |
751 Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" | |
752 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
753 Margin="{TemplateBinding Padding}" | |
754 RenderOptions.ClearTypeHint="Enabled"/> | |
755 </Grid> | |
756 </Border> | |
757 <Rectangle x:Name="FocusRectangle" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" RadiusY="4" RadiusX="4" Margin="-1" Opacity="0" /> | |
758 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" RadiusX="3" RadiusY="3" Opacity="0" /> | |
759 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledWhiteColorBrush}" IsHitTestVisible="false" RadiusX="3" RadiusY="3" Opacity="0"/> | |
760 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="1" CornerRadius="3" Visibility="Collapsed"> | |
761 <ToolTipService.ToolTip> | |
762 <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
763 </ToolTipService.ToolTip> | |
764 <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12"> | |
765 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationBrush5}" Margin="1,3,0,0"/> | |
766 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="1,3,0,0"/> | |
767 </Grid> | |
768 </Border> | |
769 <Popup x:Name="PART_Popup" | |
770 Placement="Bottom" | |
771 IsOpen="{TemplateBinding IsDropDownOpen}" | |
772 AllowsTransparency="True" | |
773 Focusable="False" | |
774 PopupAnimation="Fade"> | |
775 <Border x:Name="PopupBorder" | |
776 MinWidth="{TemplateBinding ActualWidth}" | |
777 MaxHeight="{TemplateBinding MaxDropDownHeight}" | |
778 BorderBrush="{StaticResource ComboBoxPopupBrush}" BorderThickness="{TemplateBinding BorderThickness}" | |
779 Background="{StaticResource WhiteBrush}" | |
780 Effect="{StaticResource DropShadowBrush}"> | |
781 <ScrollViewer x:Name="ScrollViewer" | |
782 BorderThickness="0" | |
783 Padding="1" | |
784 SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | |
785 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True"> | |
786 <ItemsPresenter KeyboardNavigation.DirectionalNavigation="Contained" /> | |
787 </ScrollViewer> | |
788 </Border> | |
789 </Popup> | |
790 </Grid> | |
791 <ControlTemplate.Triggers> | |
792 <Trigger Property="IsGrouping" Value="True"> | |
793 <Setter Property="ScrollViewer.CanContentScroll" Value="False" /> | |
794 </Trigger> | |
795 </ControlTemplate.Triggers> | |
796 </ControlTemplate> | |
797 </Setter.Value> | |
798 </Setter> | |
799 </Style> | |
800 | |
801 <!--ComboBoxItem Style--> | |
802 <Style TargetType="ComboBoxItem" x:Key="DefaultComboBoxItemStyle" d:IsControlPart="True"> | |
803 <!--<Setter Property="OverridesDefaultStyle" Value="True" />--> | |
804 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
805 <Setter Property="Padding" Value="3"/> | |
806 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
807 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
808 <Setter Property="Background" Value="{StaticResource TransparentWhiteBrush}"/> | |
809 <Setter Property="BorderThickness" Value="1"/> | |
810 <Setter Property="KeyboardNavigation.DirectionalNavigation" Value="Once"/> | |
811 <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/> | |
812 <Setter Property="Template"> | |
813 <Setter.Value> | |
814 <ControlTemplate TargetType="ComboBoxItem"> | |
815 <Grid Background="{TemplateBinding Background}" Margin="0,0.5" VerticalAlignment="Stretch"> | |
816 <VisualStateManager.VisualStateGroups> | |
817 <VisualStateGroup x:Name="CommonStates"> | |
818 <VisualState x:Name="Normal"/> | |
819 <VisualState x:Name="MouseOver"> | |
820 <Storyboard> | |
821 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
822 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value=".65"/> | |
823 </DoubleAnimationUsingKeyFrames> | |
824 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
825 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource HoverForegroundColor}"/> | |
826 </ColorAnimationUsingKeyFrames> | |
827 </Storyboard> | |
828 </VisualState> | |
829 <VisualState x:Name="Disabled"> | |
830 <Storyboard> | |
831 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"> | |
832 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
833 </DoubleAnimationUsingKeyFrames> | |
834 </Storyboard> | |
835 </VisualState> | |
836 </VisualStateGroup> | |
837 <VisualStateGroup x:Name="SelectionStates"> | |
838 <VisualState x:Name="Unselected"/> | |
839 <VisualState x:Name="Selected"> | |
840 <Storyboard> | |
841 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
842 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
843 </DoubleAnimationUsingKeyFrames> | |
844 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
845 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource HoverForegroundColor}"/> | |
846 </ColorAnimationUsingKeyFrames> | |
847 </Storyboard> | |
848 </VisualState> | |
849 <VisualState x:Name="SelectedUnfocused"> | |
850 <Storyboard> | |
851 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
852 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
853 </DoubleAnimationUsingKeyFrames> | |
854 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
855 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource HoverForegroundColor}"/> | |
856 </ColorAnimationUsingKeyFrames> | |
857 </Storyboard> | |
858 </VisualState> | |
859 </VisualStateGroup> | |
860 <VisualStateGroup x:Name="FocusStates"> | |
861 <VisualState x:Name="Focused"> | |
862 <Storyboard/> | |
863 </VisualState> | |
864 <VisualState x:Name="Unfocused"/> | |
865 </VisualStateGroup> | |
866 </VisualStateManager.VisualStateGroups> | |
867 <Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource HighlightBrush}"/> | |
868 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource HighlightBrush}" /> | |
869 <ContentControl IsTabStop="False"> | |
870 <ContentControl.Foreground> | |
871 <SolidColorBrush x:Name="ContentPresenterWrapperColor" Color="{StaticResource NormalForegroundColor}" PresentationOptions:Freeze="True"/> | |
872 </ContentControl.Foreground> | |
873 <ContentPresenter x:Name="contentPresenter" | |
874 ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" | |
875 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" | |
876 RenderOptions.ClearTypeHint="Enabled"/> | |
877 </ContentControl> | |
878 <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="{StaticResource HighlightBrush}" StrokeThickness="1" Visibility="Collapsed"/> | |
879 </Grid> | |
880 </ControlTemplate> | |
881 </Setter.Value> | |
882 </Setter> | |
883 </Style> | |
884 | |
885 <!--TextBlock Style--> | |
886 <Style TargetType="TextBlock" x:Key="DefaultTextBlockStyle"> | |
887 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
888 <!--<Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
889 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/>--> | |
890 </Style> | |
891 | |
892 <!--Watermark TextBlock Style--> | |
893 <Style TargetType="TextBlock" x:Key="WatermarkTextBlockStyle"> | |
894 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
895 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
896 <Setter Property="FontWeight" Value="Bold"/> | |
897 <Setter Property="Margin" Value="10,3.5,3.5,3.5"/> | |
898 <Setter Property="Opacity" Value="0.7"/> | |
899 </Style> | |
900 | |
901 <!--Label Style--> | |
902 <Style TargetType="Label" x:Key="DefaultLabelStyle"> | |
903 <Setter Property="IsTabStop" Value="False"/> | |
904 <Setter Property="Template"> | |
905 <Setter.Value> | |
906 <ControlTemplate TargetType="Label"> | |
907 <Grid> | |
908 <VisualStateManager.VisualStateGroups> | |
909 <VisualStateGroup x:Name="CommonStates"> | |
910 <VisualState x:Name="Normal"/> | |
911 <VisualState x:Name="Disabled"> | |
912 <Storyboard> | |
913 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ControlColor" Storyboard.TargetProperty="Color"> | |
914 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource Gray7}"/> | |
915 </ColorAnimationUsingKeyFrames> | |
916 </Storyboard> | |
917 </VisualState> | |
918 </VisualStateGroup> | |
919 <VisualStateGroup x:Name="ValidationStates"> | |
920 <VisualState x:Name="Valid"/> | |
921 <VisualState x:Name="Invalid"> | |
922 <Storyboard> | |
923 <ObjectAnimationUsingKeyFrames Duration="0:0:1.5" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentControl"> | |
924 <DiscreteObjectKeyFrame KeyTime="0"> | |
925 <DiscreteObjectKeyFrame.Value> | |
926 <SolidColorBrush Color="Red" PresentationOptions:Freeze="True"/> | |
927 </DiscreteObjectKeyFrame.Value> | |
928 </DiscreteObjectKeyFrame> | |
929 </ObjectAnimationUsingKeyFrames> | |
930 </Storyboard> | |
931 </VisualState> | |
932 </VisualStateGroup> | |
933 <VisualStateGroup x:Name="RequiredStates"> | |
934 <VisualState x:Name="NotRequired"/> | |
935 <VisualState x:Name="Required"> | |
936 <Storyboard> | |
937 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="FontWeight" Storyboard.TargetName="ContentControl"> | |
938 <DiscreteObjectKeyFrame KeyTime="0" Value="SemiBold"/> | |
939 </ObjectAnimationUsingKeyFrames> | |
940 </Storyboard> | |
941 </VisualState> | |
942 </VisualStateGroup> | |
943 </VisualStateManager.VisualStateGroups> | |
944 <Grid.RowDefinitions> | |
945 <RowDefinition Height="Auto"/> | |
946 </Grid.RowDefinitions> | |
947 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2" Padding="{TemplateBinding Padding}"> | |
948 <ContentControl x:Name="ContentControl" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" FontWeight="{TemplateBinding FontWeight}" FontStretch="{TemplateBinding FontStretch}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" VerticalAlignment="{TemplateBinding VerticalAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"> | |
949 <ContentControl.Foreground> | |
950 <SolidColorBrush x:Name="ControlColor" Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
951 </ContentControl.Foreground> | |
952 </ContentControl> | |
953 </Border> | |
954 </Grid> | |
955 </ControlTemplate> | |
956 </Setter.Value> | |
957 </Setter> | |
958 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
959 </Style> | |
960 | |
961 <!--ScrollBar Styles & Templates--> | |
962 <ControlTemplate x:Key="HorizontalScrollBarTemplate" TargetType="ScrollBar"> | |
963 <Grid x:Name="Root"> | |
964 <Grid.Resources> | |
965 <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton"> | |
966 <Grid x:Name="Root" Background="Transparent"> | |
967 <VisualStateManager.VisualStateGroups> | |
968 <VisualStateGroup x:Name="CommonStates"> | |
969 <VisualState x:Name="Normal"/> | |
970 </VisualStateGroup> | |
971 </VisualStateManager.VisualStateGroups> | |
972 </Grid> | |
973 </ControlTemplate> | |
974 <ControlTemplate x:Key="HorizontalIncrementTemplate" TargetType="RepeatButton"> | |
975 <Grid x:Name="Root"> | |
976 <VisualStateManager.VisualStateGroups> | |
977 <VisualStateGroup x:Name="CommonStates"> | |
978 <VisualState x:Name="Normal"/> | |
979 <VisualState x:Name="MouseOver"> | |
980 <Storyboard> | |
981 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HoverPath"> | |
982 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
983 </DoubleAnimationUsingKeyFrames> | |
984 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Blur"> | |
985 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
986 </DoubleAnimationUsingKeyFrames> | |
987 </Storyboard> | |
988 </VisualState> | |
989 <VisualState x:Name="Pressed"> | |
990 <Storyboard/> | |
991 </VisualState> | |
992 <VisualState x:Name="Disabled"> | |
993 <Storyboard> | |
994 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Root"> | |
995 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
996 </DoubleAnimationUsingKeyFrames> | |
997 </Storyboard> | |
998 </VisualState> | |
999 </VisualStateGroup> | |
1000 </VisualStateManager.VisualStateGroups> | |
1001 <Path Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z " Height="6" Stretch="Uniform" Width="4"> | |
1002 <Path.Fill> | |
1003 <SolidColorBrush Color="{StaticResource Gray2}" PresentationOptions:Freeze="True"/> | |
1004 </Path.Fill> | |
1005 </Path> | |
1006 <Path x:Name="HoverPath" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z " Height="6" Stretch="Uniform" Width="4" UseLayoutRounding="False" Opacity="0" Margin="1,1,0,0"> | |
1007 <Path.Fill> | |
1008 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1009 </Path.Fill> | |
1010 </Path> | |
1011 <Path x:Name="Blur" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z " Height="6" Stretch="Uniform" Width="4" UseLayoutRounding="False" Opacity="0" Margin="1,1,0,0"> | |
1012 <Path.Effect> | |
1013 <BlurEffect/> | |
1014 </Path.Effect> | |
1015 <Path.Fill> | |
1016 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1017 </Path.Fill> | |
1018 </Path> | |
1019 <Rectangle x:Name="DisabledElement" Fill="{StaticResource WhiteColorBrush}" Opacity="0" RadiusY="2" RadiusX="2"/> | |
1020 </Grid> | |
1021 </ControlTemplate> | |
1022 <ControlTemplate x:Key="HorizontalDecrementTemplate" TargetType="RepeatButton"> | |
1023 <Grid x:Name="Root"> | |
1024 <VisualStateManager.VisualStateGroups> | |
1025 <VisualStateGroup x:Name="CommonStates"> | |
1026 <VisualState x:Name="Normal"/> | |
1027 <VisualState x:Name="MouseOver"> | |
1028 <Storyboard> | |
1029 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HoverPath"> | |
1030 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1031 </DoubleAnimationUsingKeyFrames> | |
1032 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Blur"> | |
1033 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
1034 </DoubleAnimationUsingKeyFrames> | |
1035 </Storyboard> | |
1036 </VisualState> | |
1037 <VisualState x:Name="Pressed"> | |
1038 <Storyboard/> | |
1039 </VisualState> | |
1040 <VisualState x:Name="Disabled"> | |
1041 <Storyboard> | |
1042 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Root"> | |
1043 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
1044 </DoubleAnimationUsingKeyFrames> | |
1045 </Storyboard> | |
1046 </VisualState> | |
1047 </VisualStateGroup> | |
1048 </VisualStateManager.VisualStateGroups> | |
1049 <Path Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z " Height="6" Stretch="Uniform" Width="4"> | |
1050 <Path.Fill> | |
1051 <SolidColorBrush Color="{StaticResource Gray2}" PresentationOptions:Freeze="True"/> | |
1052 </Path.Fill> | |
1053 </Path> | |
1054 <Path x:Name="HoverPath" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z " Height="6" Stretch="Uniform" Width="4" UseLayoutRounding="False" Opacity="0" Margin="0,1,0,0"> | |
1055 <Path.Fill> | |
1056 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1057 </Path.Fill> | |
1058 </Path> | |
1059 <Path x:Name="Blur" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z " Height="6" Stretch="Uniform" Width="4" UseLayoutRounding="False" Opacity="0" Margin="0,1,0,0"> | |
1060 <Path.Effect> | |
1061 <BlurEffect/> | |
1062 </Path.Effect> | |
1063 <Path.Fill> | |
1064 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1065 </Path.Fill> | |
1066 </Path> | |
1067 </Grid> | |
1068 </ControlTemplate> | |
1069 <ControlTemplate x:Key="HorizontalThumbTemplate" TargetType="Thumb"> | |
1070 <Grid> | |
1071 <VisualStateManager.VisualStateGroups> | |
1072 <VisualStateGroup x:Name="CommonStates"> | |
1073 <VisualState x:Name="Normal"/> | |
1074 <VisualState x:Name="MouseOver"> | |
1075 <Storyboard> | |
1076 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
1077 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1078 </DoubleAnimationUsingKeyFrames> | |
1079 </Storyboard> | |
1080 </VisualState> | |
1081 <VisualState x:Name="Pressed"> | |
1082 <Storyboard> | |
1083 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedRectangle"> | |
1084 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1085 </DoubleAnimationUsingKeyFrames> | |
1086 </Storyboard> | |
1087 </VisualState> | |
1088 <VisualState x:Name="Disabled"> | |
1089 <Storyboard> | |
1090 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ThumbVisual"> | |
1091 <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/> | |
1092 </DoubleAnimationUsingKeyFrames> | |
1093 </Storyboard> | |
1094 </VisualState> | |
1095 </VisualStateGroup> | |
1096 </VisualStateManager.VisualStateGroups> | |
1097 <Grid x:Name="ThumbVisual" Margin="0,1,0,1"> | |
1098 <Rectangle x:Name="Background" StrokeThickness="1" Fill="{StaticResource ThumbBrush}" /> | |
1099 <Rectangle x:Name="MouseOverRectangle" StrokeThickness="1" Opacity="0" Fill="{StaticResource BlackBrush}" /> | |
1100 <Rectangle x:Name="PressedRectangle" StrokeThickness="1" Opacity="0" Fill="{StaticResource BlackBrush}" /> | |
1101 </Grid> | |
1102 </Grid> | |
1103 </ControlTemplate> | |
1104 </Grid.Resources> | |
1105 <VisualStateManager.VisualStateGroups> | |
1106 <VisualStateGroup x:Name="CommonStates"> | |
1107 <VisualState x:Name="Normal"/> | |
1108 <VisualState x:Name="MouseOver"/> | |
1109 <VisualState x:Name="Disabled"> | |
1110 <Storyboard> | |
1111 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"> | |
1112 <SplineDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
1113 </DoubleAnimationUsingKeyFrames> | |
1114 </Storyboard> | |
1115 </VisualState> | |
1116 </VisualStateGroup> | |
1117 </VisualStateManager.VisualStateGroups> | |
1118 <Grid x:Name="HorizontalRoot" Height="11"> | |
1119 <Grid.ColumnDefinitions> | |
1120 <ColumnDefinition Width="Auto"/> | |
1121 <ColumnDefinition Width="*"/> | |
1122 <ColumnDefinition Width="Auto"/> | |
1123 </Grid.ColumnDefinitions> | |
1124 | |
1125 <Border BorderThickness="0,0,0,1" Grid.RowSpan="1" Margin="0,0,0,-1" Grid.ColumnSpan="3" Visibility="Collapsed" > | |
1126 <Border.BorderBrush> | |
1127 <SolidColorBrush Color="{StaticResource Gray4}" PresentationOptions:Freeze="True"/> | |
1128 </Border.BorderBrush> | |
1129 </Border> | |
1130 | |
1131 <RepeatButton x:Name="HorizontalSmallDecrease" | |
1132 Grid.Column="0" | |
1133 Interval="50" | |
1134 IsTabStop="False" | |
1135 Width="16" Margin="1" | |
1136 Template="{StaticResource HorizontalDecrementTemplate}" | |
1137 Command="ScrollBar.LineLeftCommand" | |
1138 Visibility="{Binding ElementName=PART_Track, Path=Visibility}" /> | |
1139 | |
1140 <Track x:Name="PART_Track" Grid.Column="1" Orientation="Horizontal"> | |
1141 <Track.DecreaseRepeatButton> | |
1142 <RepeatButton x:Name="HorizontalLargeDecrease" IsTabStop="False" Interval="50" Template="{StaticResource RepeatButtonTemplate}" Command="ScrollBar.PageLeftCommand" /> | |
1143 </Track.DecreaseRepeatButton> | |
1144 <Track.Thumb> | |
1145 <Thumb x:Name="HorizontalThumb" Background="{TemplateBinding Background}" Grid.Column="2" MinWidth="18" Template="{StaticResource HorizontalThumbTemplate}" Width="18" HorizontalAlignment="Stretch" /> | |
1146 </Track.Thumb> | |
1147 <Track.IncreaseRepeatButton> | |
1148 <RepeatButton x:Name="HorizontalLargeIncrease" IsTabStop="False" Interval="50" Template="{StaticResource RepeatButtonTemplate}" Command="ScrollBar.PageRightCommand"/> | |
1149 </Track.IncreaseRepeatButton> | |
1150 </Track> | |
1151 | |
1152 <RepeatButton x:Name="HorizontalSmallIncrease" | |
1153 Grid.Column="2" | |
1154 IsTabStop="False" | |
1155 Interval="50" | |
1156 Width="16" Margin="1" | |
1157 Template="{StaticResource HorizontalIncrementTemplate}" | |
1158 Command="ScrollBar.LineRightCommand" | |
1159 Visibility="{Binding ElementName=PART_Track, Path=Visibility}" /> | |
1160 </Grid> | |
1161 </Grid> | |
1162 </ControlTemplate> | |
1163 | |
1164 <ControlTemplate x:Key="VerticalScrollBarTemplate" TargetType="ScrollBar"> | |
1165 <Grid x:Name="Root"> | |
1166 <Grid.Resources> | |
1167 <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton"> | |
1168 <Grid x:Name="Root" Background="Transparent"> | |
1169 <VisualStateManager.VisualStateGroups> | |
1170 <VisualStateGroup x:Name="CommonStates"> | |
1171 <VisualState x:Name="Normal"/> | |
1172 </VisualStateGroup> | |
1173 </VisualStateManager.VisualStateGroups> | |
1174 </Grid> | |
1175 </ControlTemplate> | |
1176 <ControlTemplate x:Key="VerticalIncrementTemplate" TargetType="RepeatButton"> | |
1177 <Grid x:Name="Root"> | |
1178 <VisualStateManager.VisualStateGroups> | |
1179 <VisualStateGroup x:Name="CommonStates"> | |
1180 <VisualState x:Name="Normal"/> | |
1181 <VisualState x:Name="MouseOver"> | |
1182 <Storyboard> | |
1183 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HoverPath"> | |
1184 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1185 </DoubleAnimationUsingKeyFrames> | |
1186 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Blur"> | |
1187 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
1188 </DoubleAnimationUsingKeyFrames> | |
1189 </Storyboard> | |
1190 </VisualState> | |
1191 <VisualState x:Name="Pressed"> | |
1192 <Storyboard/> | |
1193 </VisualState> | |
1194 <VisualState x:Name="Disabled"> | |
1195 <Storyboard> | |
1196 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Root"> | |
1197 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
1198 </DoubleAnimationUsingKeyFrames> | |
1199 </Storyboard> | |
1200 </VisualState> | |
1201 </VisualStateGroup> | |
1202 </VisualStateManager.VisualStateGroups> | |
1203 <Path Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z " Height="4" Stretch="Uniform" Width="6"> | |
1204 <Path.Fill> | |
1205 <SolidColorBrush x:Name="ButtonColor" Color="{StaticResource Gray3}" PresentationOptions:Freeze="True"/> | |
1206 </Path.Fill> | |
1207 </Path> | |
1208 <Path x:Name="HoverPath" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z " Height="4" Stretch="Uniform" Width="6" UseLayoutRounding="False" Opacity="0" Margin="1,0,0,0"> | |
1209 <Path.Fill> | |
1210 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1211 </Path.Fill> | |
1212 </Path> | |
1213 <Path x:Name="Blur" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z " Height="4" Stretch="Uniform" Width="6" UseLayoutRounding="False" Opacity="0" Margin="1,0,0,0"> | |
1214 <Path.Effect> | |
1215 <BlurEffect/> | |
1216 </Path.Effect> | |
1217 <Path.Fill> | |
1218 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1219 </Path.Fill> | |
1220 </Path> | |
1221 <Rectangle x:Name="DisabledElement" Fill="{StaticResource WhiteColorBrush}" Opacity="0" RadiusY="2" RadiusX="2"/> | |
1222 </Grid> | |
1223 </ControlTemplate> | |
1224 <ControlTemplate x:Key="VerticalDecrementTemplate" TargetType="RepeatButton"> | |
1225 <Grid x:Name="Root"> | |
1226 <VisualStateManager.VisualStateGroups> | |
1227 <VisualStateGroup x:Name="CommonStates"> | |
1228 <VisualState x:Name="Normal"/> | |
1229 <VisualState x:Name="MouseOver"> | |
1230 <Storyboard> | |
1231 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HoverPath"> | |
1232 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1233 </DoubleAnimationUsingKeyFrames> | |
1234 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Blur"> | |
1235 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
1236 </DoubleAnimationUsingKeyFrames> | |
1237 </Storyboard> | |
1238 </VisualState> | |
1239 <VisualState x:Name="Pressed"> | |
1240 <Storyboard/> | |
1241 </VisualState> | |
1242 <VisualState x:Name="Disabled"> | |
1243 <Storyboard> | |
1244 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Root"> | |
1245 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5"/> | |
1246 </DoubleAnimationUsingKeyFrames> | |
1247 </Storyboard> | |
1248 </VisualState> | |
1249 </VisualStateGroup> | |
1250 </VisualStateManager.VisualStateGroups> | |
1251 <Rectangle x:Name="Background" Fill="{StaticResource ControlBackgroundBrush}" Opacity="0" RadiusY="2" RadiusX="2" StrokeThickness="1"/> | |
1252 <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource HighlightBrush}" Opacity="0" RadiusY="2" RadiusX="2" /> | |
1253 <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource HighlightBrush}" Opacity="0" RadiusY="2" RadiusX="2" /> | |
1254 <Rectangle x:Name="BackgroundGradient" Fill="{StaticResource TransparentWhiteBrush}" Margin="1" Opacity="0" RadiusY="1" RadiusX="1" Stroke="{StaticResource ControlBackgroundBrush}" StrokeThickness="1"/> | |
1255 <Rectangle x:Name="Highlight" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="1" RadiusX="1" Stroke="{StaticResource HighlightBrush}" StrokeThickness="1"/> | |
1256 <Path Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Height="4" Stretch="Uniform" Width="6"> | |
1257 <Path.Fill> | |
1258 <SolidColorBrush Color="{StaticResource Gray2}" PresentationOptions:Freeze="True"/> | |
1259 </Path.Fill> | |
1260 </Path> | |
1261 <Path x:Name="HoverPath" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Height="4" Stretch="Uniform" Width="6" UseLayoutRounding="False" Opacity="0" Margin="1,0,0,0"> | |
1262 <Path.Fill> | |
1263 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1264 </Path.Fill> | |
1265 </Path> | |
1266 <Path x:Name="Blur" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Height="4" Stretch="Uniform" Width="6" UseLayoutRounding="False" Opacity="0" Margin="1,0,0,0"> | |
1267 <Path.Effect> | |
1268 <BlurEffect/> | |
1269 </Path.Effect> | |
1270 <Path.Fill> | |
1271 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
1272 </Path.Fill> | |
1273 </Path> | |
1274 </Grid> | |
1275 </ControlTemplate> | |
1276 <ControlTemplate x:Key="VerticalThumbTemplate" TargetType="Thumb"> | |
1277 <Grid> | |
1278 <VisualStateManager.VisualStateGroups> | |
1279 <VisualStateGroup x:Name="CommonStates"> | |
1280 <VisualState x:Name="Normal"/> | |
1281 <VisualState x:Name="MouseOver"> | |
1282 <Storyboard> | |
1283 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
1284 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1285 </DoubleAnimationUsingKeyFrames> | |
1286 | |
1287 </Storyboard> | |
1288 </VisualState> | |
1289 <VisualState x:Name="Pressed"> | |
1290 <Storyboard> | |
1291 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedRectangle"> | |
1292 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1293 </DoubleAnimationUsingKeyFrames> | |
1294 </Storyboard> | |
1295 </VisualState> | |
1296 <VisualState x:Name="Disabled"> | |
1297 <Storyboard> | |
1298 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ThumbVisual"> | |
1299 <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/> | |
1300 </DoubleAnimationUsingKeyFrames> | |
1301 </Storyboard> | |
1302 </VisualState> | |
1303 </VisualStateGroup> | |
1304 </VisualStateManager.VisualStateGroups> | |
1305 <Grid x:Name="ThumbVisual" Margin="1,0,1,0"> | |
1306 <Rectangle x:Name="Background" StrokeThickness="1" Fill="{StaticResource ThumbBrush}" /> | |
1307 <Rectangle x:Name="MouseOverRectangle" StrokeThickness="1" Opacity="0" Fill="{StaticResource BlackBrush}" /> | |
1308 <Rectangle x:Name="PressedRectangle" StrokeThickness="1" Opacity="0" Fill="{StaticResource BlackBrush}" /> | |
1309 </Grid> | |
1310 </Grid> | |
1311 </ControlTemplate> | |
1312 </Grid.Resources> | |
1313 <VisualStateManager.VisualStateGroups> | |
1314 <VisualStateGroup x:Name="CommonStates"> | |
1315 <VisualState x:Name="Normal"/> | |
1316 <VisualState x:Name="MouseOver"/> | |
1317 <VisualState x:Name="Disabled"> | |
1318 <Storyboard> | |
1319 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"> | |
1320 <SplineDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
1321 </DoubleAnimationUsingKeyFrames> | |
1322 </Storyboard> | |
1323 </VisualState> | |
1324 </VisualStateGroup> | |
1325 </VisualStateManager.VisualStateGroups> | |
1326 <Grid x:Name="VerticalRoot" Width="11"> | |
1327 <Grid.RowDefinitions> | |
1328 <RowDefinition Height="Auto"/> | |
1329 <RowDefinition Height="*"/> | |
1330 <RowDefinition Height="Auto"/> | |
1331 </Grid.RowDefinitions> | |
1332 | |
1333 <Border BorderThickness="0,0,1,0" Margin="0,0,-1,0" Grid.RowSpan="3" Visibility="Collapsed"> | |
1334 <Border.BorderBrush> | |
1335 <SolidColorBrush Color="{StaticResource Gray4}" PresentationOptions:Freeze="True"/> | |
1336 </Border.BorderBrush> | |
1337 </Border> | |
1338 | |
1339 <RepeatButton x:Name="VerticalSmallDecrease" | |
1340 Grid.Row="0" | |
1341 IsTabStop="False" | |
1342 Interval="50" | |
1343 Height="16" Margin="1" | |
1344 Template="{StaticResource VerticalDecrementTemplate}" | |
1345 Command="ScrollBar.LineUpCommand" | |
1346 Visibility="{Binding ElementName=PART_Track, Path=Visibility}" /> | |
1347 | |
1348 <Track x:Name="PART_Track" Grid.Row="1" IsDirectionReversed="True" Orientation="Vertical"> | |
1349 <Track.DecreaseRepeatButton> | |
1350 <RepeatButton x:Name="VerticalLargeDecrease" Interval="50" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Command="ScrollBar.PageUpCommand" /> | |
1351 </Track.DecreaseRepeatButton> | |
1352 <Track.Thumb> | |
1353 <Thumb x:Name="VerticalThumb" Height="Auto" MinHeight="18" Template="{StaticResource VerticalThumbTemplate}" VerticalAlignment="Stretch" /> | |
1354 </Track.Thumb> | |
1355 <Track.IncreaseRepeatButton> | |
1356 <RepeatButton x:Name="VerticalLargeIncrease" IsTabStop="False" Interval="50" Template="{StaticResource RepeatButtonTemplate}" Command="ScrollBar.PageDownCommand"/> | |
1357 </Track.IncreaseRepeatButton> | |
1358 </Track> | |
1359 | |
1360 <RepeatButton x:Name="VerticalSmallIncrease" | |
1361 Grid.Row="2" | |
1362 IsTabStop="False" | |
1363 Interval="50" | |
1364 Height="16" Margin="1" | |
1365 Template="{StaticResource VerticalIncrementTemplate}" | |
1366 Command="ScrollBar.LineDownCommand" | |
1367 Visibility="{Binding ElementName=PART_Track, Path=Visibility}" /> | |
1368 </Grid> | |
1369 </Grid> | |
1370 </ControlTemplate> | |
1371 | |
1372 <Style x:Key="DefaultScrollBarStyle" TargetType="ScrollBar"> | |
1373 <Setter Property="OverridesDefaultStyle" Value="True"/> | |
1374 <Setter Property="SnapsToDevicePixels" Value="True"/> | |
1375 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
1376 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
1377 <Setter Property="MinWidth" Value="20"/> | |
1378 <Setter Property="MinHeight" Value="20"/> | |
1379 <Setter Property="IsTabStop" Value="False"/> | |
1380 <Style.Triggers> | |
1381 <Trigger Property="Orientation" Value="Horizontal"> | |
1382 <Setter Property="Width" Value="Auto" /> | |
1383 <Setter Property="Template" Value="{StaticResource HorizontalScrollBarTemplate}" /> | |
1384 </Trigger> | |
1385 <Trigger Property="Orientation" Value="Vertical"> | |
1386 <Setter Property="Height" Value="Auto" /> | |
1387 <Setter Property="Template" Value="{StaticResource VerticalScrollBarTemplate}" /> | |
1388 </Trigger> | |
1389 </Style.Triggers> | |
1390 </Style> | |
1391 | |
1392 <!--ScrollViewer Style--> | |
1393 <Style x:Key="DefaultScrollViewerStyle" TargetType="ScrollViewer"> | |
1394 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
1395 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
1396 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1397 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
1398 <Setter Property="VerticalScrollBarVisibility" Value="Visible"/> | |
1399 <Setter Property="Padding" Value="4"/> | |
1400 <Setter Property="BorderThickness" Value="1"/> | |
1401 <Setter Property="BorderBrush"> | |
1402 <Setter.Value> | |
1403 <SolidColorBrush Color="{StaticResource Gray4}" PresentationOptions:Freeze="True"/> | |
1404 </Setter.Value> | |
1405 </Setter> | |
1406 <Setter Property="Template"> | |
1407 <Setter.Value> | |
1408 <ControlTemplate TargetType="ScrollViewer"> | |
1409 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> | |
1410 <Grid Background="{TemplateBinding Background}"> | |
1411 <Grid.ColumnDefinitions> | |
1412 <ColumnDefinition Width="*"/> | |
1413 <ColumnDefinition Width="Auto"/> | |
1414 </Grid.ColumnDefinitions> | |
1415 <Grid.RowDefinitions> | |
1416 <RowDefinition Height="*"/> | |
1417 <RowDefinition Height="Auto"/> | |
1418 </Grid.RowDefinitions> | |
1419 <ScrollContentPresenter x:Name="ScrollContentPresenter" | |
1420 Grid.Column="0" Grid.Row="0" | |
1421 Cursor="{TemplateBinding Cursor}" | |
1422 Margin="{TemplateBinding Padding}" | |
1423 Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" /> | |
1424 <Rectangle Grid.Column="1" Grid.Row="1" Visibility="Collapsed"/> | |
1425 <ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="1" IsTabStop="False" Maximum="{TemplateBinding ScrollableHeight}" Margin="0,-1,-3,-1" Minimum="0" Orientation="Vertical" Grid.Row="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{TemplateBinding VerticalOffset}" ViewportSize="{TemplateBinding ViewportHeight}" Width="18"/> | |
1426 <ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="0" Height="18" IsTabStop="False" Maximum="{TemplateBinding ScrollableWidth}" Margin="-1,0,-1,-3" Minimum="0" Orientation="Horizontal" Grid.Row="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{TemplateBinding HorizontalOffset}" ViewportSize="{TemplateBinding ViewportWidth}"/> | |
1427 </Grid> | |
1428 </Border> | |
1429 </ControlTemplate> | |
1430 </Setter.Value> | |
1431 </Setter> | |
1432 </Style> | |
1433 | |
1434 <!--ListBox Style --> | |
1435 <Style TargetType="ListBox" x:Key="DefaultListBoxStyle"> | |
1436 <Setter Property="Padding" Value="1"/> | |
1437 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
1438 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
1439 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
1440 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
1441 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1442 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
1443 <Setter Property="IsTabStop" Value="False"/> | |
1444 <Setter Property="KeyboardNavigation.TabNavigation" Value="Once"/> | |
1445 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> | |
1446 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> | |
1447 <Setter Property="ScrollViewer.CanContentScroll" Value="true"/> | |
1448 <Setter Property="BorderBrush" Value="{StaticResource ThumbBrush}"/> | |
1449 <Setter Property="Template"> | |
1450 <Setter.Value> | |
1451 <ControlTemplate TargetType="ListBox"> | |
1452 <Grid> | |
1453 <VisualStateManager.VisualStateGroups> | |
1454 <VisualStateGroup x:Name="ValidationStates"> | |
1455 <VisualState x:Name="Valid"/> | |
1456 <VisualState x:Name="InvalidUnfocused"> | |
1457 <Storyboard> | |
1458 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
1459 <DiscreteObjectKeyFrame KeyTime="0"> | |
1460 <DiscreteObjectKeyFrame.Value> | |
1461 <Visibility>Visible</Visibility> | |
1462 </DiscreteObjectKeyFrame.Value> | |
1463 </DiscreteObjectKeyFrame> | |
1464 </ObjectAnimationUsingKeyFrames> | |
1465 </Storyboard> | |
1466 </VisualState> | |
1467 <VisualState x:Name="InvalidFocused"> | |
1468 <Storyboard> | |
1469 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
1470 <DiscreteObjectKeyFrame KeyTime="0"> | |
1471 <DiscreteObjectKeyFrame.Value> | |
1472 <Visibility>Visible</Visibility> | |
1473 </DiscreteObjectKeyFrame.Value> | |
1474 </DiscreteObjectKeyFrame> | |
1475 </ObjectAnimationUsingKeyFrames> | |
1476 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
1477 <DiscreteObjectKeyFrame KeyTime="0"> | |
1478 <DiscreteObjectKeyFrame.Value> | |
1479 <sys:Boolean>True</sys:Boolean> | |
1480 </DiscreteObjectKeyFrame.Value> | |
1481 </DiscreteObjectKeyFrame> | |
1482 </ObjectAnimationUsingKeyFrames> | |
1483 </Storyboard> | |
1484 </VisualState> | |
1485 </VisualStateGroup> | |
1486 </VisualStateManager.VisualStateGroups> | |
1487 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> | |
1488 <ScrollViewer x:Name="ScrollViewer" | |
1489 BorderBrush="Transparent" BorderThickness="0" | |
1490 Background="{TemplateBinding Background}" | |
1491 Padding="{TemplateBinding Padding}" | |
1492 HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" | |
1493 VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"> | |
1494 <ItemsPresenter /> | |
1495 </ScrollViewer> | |
1496 </Border> | |
1497 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Visibility="Collapsed"> | |
1498 <ToolTipService.ToolTip> | |
1499 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
1500 </ToolTipService.ToolTip> | |
1501 <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10"> | |
1502 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationBrush5}" Margin="-1,3,0,0"/> | |
1503 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="-1,3,0,0"/> | |
1504 </Grid> | |
1505 </Border> | |
1506 </Grid> | |
1507 </ControlTemplate> | |
1508 </Setter.Value> | |
1509 </Setter> | |
1510 <Setter Property="BorderThickness" Value="0"/> | |
1511 </Style> | |
1512 | |
1513 <!--ListBoxItem Style--> | |
1514 <Style TargetType="ListBoxItem" x:Key="DefaultListBoxItemStyle" d:IsControlPart="True"> | |
1515 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
1516 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
1517 <Setter Property="Padding" Value="10"/> | |
1518 <Setter Property="Margin" Value="0"/> | |
1519 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1520 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
1521 <Setter Property="Background" Value="Transparent"/> | |
1522 <Setter Property="BorderThickness" Value="1"/> | |
1523 <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/> | |
1524 <Setter Property="Template"> | |
1525 <Setter.Value> | |
1526 <ControlTemplate TargetType="ListBoxItem"> | |
1527 <Grid Background="{TemplateBinding Background}"> | |
1528 <VisualStateManager.VisualStateGroups> | |
1529 <VisualStateGroup x:Name="CommonStates"> | |
1530 <VisualState x:Name="Normal"/> | |
1531 <VisualState x:Name="MouseOver"> | |
1532 <Storyboard> | |
1533 <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor"/> | |
1534 <ColorAnimation Duration="0" To="{StaticResource HoverForegroundColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl"/> | |
1535 </Storyboard> | |
1536 </VisualState> | |
1537 <VisualState x:Name="Disabled"> | |
1538 <Storyboard> | |
1539 <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/> | |
1540 </Storyboard> | |
1541 </VisualState> | |
1542 </VisualStateGroup> | |
1543 <VisualStateGroup x:Name="SelectionStates"> | |
1544 <VisualState x:Name="Unselected"/> | |
1545 <VisualState x:Name="Selected"> | |
1546 <Storyboard> | |
1547 <ColorAnimation Duration="0" To="{StaticResource HoverForegroundColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl"/> | |
1548 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="fillColor"/> | |
1549 </Storyboard> | |
1550 </VisualState> | |
1551 <VisualState x:Name="SelectedUnfocused"/> | |
1552 </VisualStateGroup> | |
1553 <VisualStateGroup x:Name="FocusStates"> | |
1554 <VisualState x:Name="Focused"> | |
1555 <Storyboard> | |
1556 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement"> | |
1557 <DiscreteObjectKeyFrame KeyTime="0"> | |
1558 <DiscreteObjectKeyFrame.Value> | |
1559 <Visibility>Visible</Visibility> | |
1560 </DiscreteObjectKeyFrame.Value> | |
1561 </DiscreteObjectKeyFrame> | |
1562 </ObjectAnimationUsingKeyFrames> | |
1563 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="fillColor2" /> | |
1564 <ColorAnimation Duration="0" To="{StaticResource HoverForegroundColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl" /> | |
1565 </Storyboard> | |
1566 </VisualState> | |
1567 <VisualState x:Name="Unfocused"/> | |
1568 </VisualStateGroup> | |
1569 </VisualStateManager.VisualStateGroups> | |
1570 <Rectangle x:Name="fillColor" Fill="{StaticResource HighlightBrush}" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1"/> | |
1571 <Rectangle x:Name="fillColor2" Fill="{StaticResource HighlightBrush}" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1"/> | |
1572 <ContentControl x:Name="contentControl" Foreground="{TemplateBinding Foreground}"> | |
1573 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="7" | |
1574 RenderOptions.ClearTypeHint="Enabled"/> | |
1575 </ContentControl> | |
1576 <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="{StaticResource HighlightBrush}" StrokeThickness="1" Visibility="Collapsed"/> | |
1577 </Grid> | |
1578 </ControlTemplate> | |
1579 </Setter.Value> | |
1580 </Setter> | |
1581 </Style> | |
1582 | |
1583 <!--ListView Styles--> | |
1584 <Style TargetType="ListView" x:Key="DefaultListViewStyle"> | |
1585 <Setter Property="Padding" Value="1"/> | |
1586 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
1587 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
1588 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
1589 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
1590 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1591 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
1592 <Setter Property="IsTabStop" Value="False"/> | |
1593 <Setter Property="KeyboardNavigation.TabNavigation" Value="Once"/> | |
1594 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> | |
1595 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> | |
1596 <Setter Property="ScrollViewer.CanContentScroll" Value="true"/> | |
1597 <Setter Property="BorderBrush" Value="{StaticResource ThumbBrush}"/> | |
1598 <Setter Property="Template"> | |
1599 <Setter.Value> | |
1600 <ControlTemplate TargetType="ListView"> | |
1601 <ControlTemplate.Resources> | |
1602 <Style TargetType="ScrollViewer" x:Key="GridViewScrollViewerStyle"> | |
1603 <Setter Property="Template"> | |
1604 <Setter.Value> | |
1605 <ControlTemplate TargetType="ScrollViewer"> | |
1606 <Grid Background="{TemplateBinding Background}"> | |
1607 <Grid.ColumnDefinitions> | |
1608 <ColumnDefinition Width="*" /> | |
1609 <ColumnDefinition Width="Auto" /> | |
1610 </Grid.ColumnDefinitions> | |
1611 <Grid.RowDefinitions> | |
1612 <RowDefinition Height="*" /> | |
1613 <RowDefinition Height="Auto" /> | |
1614 </Grid.RowDefinitions> | |
1615 | |
1616 <DockPanel Margin="{TemplateBinding Padding}"> | |
1617 <ScrollViewer DockPanel.Dock="Top" | |
1618 IsTabStop="False" | |
1619 BorderBrush="Transparent" BorderThickness="0" | |
1620 HorizontalScrollBarVisibility="Hidden" | |
1621 VerticalScrollBarVisibility="Hidden" | |
1622 Focusable="false"> | |
1623 <GridViewHeaderRowPresenter | |
1624 Margin="2,0,2,0" | |
1625 Columns="{Binding Path=TemplatedParent.View.Columns, | |
1626 RelativeSource={RelativeSource TemplatedParent}}" | |
1627 ColumnHeaderContainerStyle="{Binding Path=TemplatedParent.View.ColumnHeaderContainerStyle, | |
1628 RelativeSource={RelativeSource TemplatedParent}}" | |
1629 ColumnHeaderTemplate="{Binding Path=TemplatedParent.View.ColumnHeaderTemplate, | |
1630 RelativeSource={RelativeSource TemplatedParent}}" | |
1631 ColumnHeaderTemplateSelector="{Binding Path=TemplatedParent.View.ColumnHeaderTemplateSelector, | |
1632 RelativeSource={RelativeSource TemplatedParent}}" | |
1633 AllowsColumnReorder="{Binding Path=TemplatedParent.View.AllowsColumnReorder, | |
1634 RelativeSource={RelativeSource TemplatedParent}}" | |
1635 ColumnHeaderContextMenu="{Binding Path=TemplatedParent.View.ColumnHeaderContextMenu, | |
1636 RelativeSource={RelativeSource TemplatedParent}}" | |
1637 ColumnHeaderToolTip="{Binding Path=TemplatedParent.View.ColumnHeaderToolTip, | |
1638 RelativeSource={RelativeSource TemplatedParent}}" | |
1639 SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> | |
1640 </ScrollViewer> | |
1641 | |
1642 <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" | |
1643 KeyboardNavigation.DirectionalNavigation="Local" | |
1644 CanContentScroll="True" | |
1645 CanHorizontallyScroll="False" | |
1646 CanVerticallyScroll="False" /> | |
1647 </DockPanel> | |
1648 | |
1649 <ScrollBar x:Name="PART_HorizontalScrollBar" | |
1650 Orientation="Horizontal" | |
1651 Grid.Row="1" | |
1652 Maximum="{TemplateBinding ScrollableWidth}" | |
1653 ViewportSize="{TemplateBinding ViewportWidth}" | |
1654 Value="{TemplateBinding HorizontalOffset}" | |
1655 Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" /> | |
1656 | |
1657 <ScrollBar x:Name="PART_VerticalScrollBar" | |
1658 Grid.Column="1" | |
1659 Maximum="{TemplateBinding ScrollableHeight}" | |
1660 ViewportSize="{TemplateBinding ViewportHeight}" | |
1661 Value="{TemplateBinding VerticalOffset}" | |
1662 Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" /> | |
1663 </Grid> | |
1664 </ControlTemplate> | |
1665 </Setter.Value> | |
1666 </Setter> | |
1667 </Style> | |
1668 </ControlTemplate.Resources> | |
1669 <Grid> | |
1670 <VisualStateManager.VisualStateGroups> | |
1671 <VisualStateGroup x:Name="ValidationStates"> | |
1672 <VisualState x:Name="Valid"/> | |
1673 <VisualState x:Name="InvalidUnfocused"> | |
1674 <Storyboard> | |
1675 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
1676 <DiscreteObjectKeyFrame KeyTime="0"> | |
1677 <DiscreteObjectKeyFrame.Value> | |
1678 <Visibility>Visible</Visibility> | |
1679 </DiscreteObjectKeyFrame.Value> | |
1680 </DiscreteObjectKeyFrame> | |
1681 </ObjectAnimationUsingKeyFrames> | |
1682 </Storyboard> | |
1683 </VisualState> | |
1684 <VisualState x:Name="InvalidFocused"> | |
1685 <Storyboard> | |
1686 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
1687 <DiscreteObjectKeyFrame KeyTime="0"> | |
1688 <DiscreteObjectKeyFrame.Value> | |
1689 <Visibility>Visible</Visibility> | |
1690 </DiscreteObjectKeyFrame.Value> | |
1691 </DiscreteObjectKeyFrame> | |
1692 </ObjectAnimationUsingKeyFrames> | |
1693 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
1694 <DiscreteObjectKeyFrame KeyTime="0"> | |
1695 <DiscreteObjectKeyFrame.Value> | |
1696 <sys:Boolean>True</sys:Boolean> | |
1697 </DiscreteObjectKeyFrame.Value> | |
1698 </DiscreteObjectKeyFrame> | |
1699 </ObjectAnimationUsingKeyFrames> | |
1700 </Storyboard> | |
1701 </VisualState> | |
1702 </VisualStateGroup> | |
1703 </VisualStateManager.VisualStateGroups> | |
1704 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> | |
1705 <ScrollViewer x:Name="ScrollViewer" | |
1706 Style="{StaticResource GridViewScrollViewerStyle}" | |
1707 BorderBrush="Transparent" BorderThickness="0" | |
1708 Background="{TemplateBinding Background}" | |
1709 Padding="{TemplateBinding Padding}" | |
1710 HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" | |
1711 VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"> | |
1712 <ItemsPresenter /> | |
1713 </ScrollViewer> | |
1714 </Border> | |
1715 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Visibility="Collapsed"> | |
1716 <ToolTipService.ToolTip> | |
1717 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
1718 </ToolTipService.ToolTip> | |
1719 <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10"> | |
1720 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationBrush5}" Margin="-1,3,0,0"/> | |
1721 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="-1,3,0,0"/> | |
1722 </Grid> | |
1723 </Border> | |
1724 </Grid> | |
1725 </ControlTemplate> | |
1726 </Setter.Value> | |
1727 </Setter> | |
1728 <Setter Property="BorderThickness" Value="0"/> | |
1729 </Style> | |
1730 | |
1731 <Style TargetType="ListViewItem" x:Key="DefaultListViewItemStyle" d:IsControlPart="True"> | |
1732 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
1733 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
1734 <Setter Property="Padding" Value="10"/> | |
1735 <Setter Property="Margin" Value="0"/> | |
1736 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1737 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
1738 <Setter Property="Background" Value="Transparent"/> | |
1739 <Setter Property="BorderThickness" Value="1"/> | |
1740 <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/> | |
1741 <Setter Property="Template"> | |
1742 <Setter.Value> | |
1743 <ControlTemplate TargetType="ListViewItem"> | |
1744 <Grid Background="{TemplateBinding Background}"> | |
1745 <VisualStateManager.VisualStateGroups> | |
1746 <VisualStateGroup x:Name="CommonStates"> | |
1747 <VisualState x:Name="Normal"/> | |
1748 <VisualState x:Name="MouseOver"> | |
1749 <Storyboard> | |
1750 <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor"/> | |
1751 <ColorAnimation Duration="0" To="{StaticResource HoverForegroundColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl"/> | |
1752 </Storyboard> | |
1753 </VisualState> | |
1754 <VisualState x:Name="Disabled"> | |
1755 <Storyboard> | |
1756 <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/> | |
1757 </Storyboard> | |
1758 </VisualState> | |
1759 </VisualStateGroup> | |
1760 <VisualStateGroup x:Name="SelectionStates"> | |
1761 <VisualState x:Name="Unselected"/> | |
1762 <VisualState x:Name="Selected"> | |
1763 <Storyboard> | |
1764 <ColorAnimation Duration="0" To="{StaticResource HoverForegroundColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl"/> | |
1765 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="fillColor"/> | |
1766 </Storyboard> | |
1767 </VisualState> | |
1768 <VisualState x:Name="SelectedUnfocused"/> | |
1769 </VisualStateGroup> | |
1770 <VisualStateGroup x:Name="FocusStates"> | |
1771 <VisualState x:Name="Focused"> | |
1772 <Storyboard> | |
1773 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement"> | |
1774 <DiscreteObjectKeyFrame KeyTime="0"> | |
1775 <DiscreteObjectKeyFrame.Value> | |
1776 <Visibility>Visible</Visibility> | |
1777 </DiscreteObjectKeyFrame.Value> | |
1778 </DiscreteObjectKeyFrame> | |
1779 </ObjectAnimationUsingKeyFrames> | |
1780 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="fillColor2" /> | |
1781 <ColorAnimation Duration="0" To="{StaticResource HoverForegroundColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl" /> | |
1782 </Storyboard> | |
1783 </VisualState> | |
1784 <VisualState x:Name="Unfocused"/> | |
1785 </VisualStateGroup> | |
1786 </VisualStateManager.VisualStateGroups> | |
1787 <Rectangle x:Name="fillColor" Fill="{StaticResource HighlightBrush}" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1"/> | |
1788 <Rectangle x:Name="fillColor2" Fill="{StaticResource HighlightBrush}" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1"/> | |
1789 <ContentControl x:Name="contentControl" Foreground="{TemplateBinding Foreground}"> | |
1790 <GridViewRowPresenter x:Name="contentPresenter" VerticalAlignment="Center" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="7"/> | |
1791 </ContentControl> | |
1792 <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="{StaticResource HighlightBrush}" StrokeThickness="1" Visibility="Collapsed"/> | |
1793 </Grid> | |
1794 </ControlTemplate> | |
1795 </Setter.Value> | |
1796 </Setter> | |
1797 </Style> | |
1798 | |
1799 <Style TargetType="GridViewColumnHeader" x:Key="DefaultGridViewColumnHeaderStyle"> | |
1800 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
1801 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
1802 <Setter Property="FontSize" Value="{StaticResource ControlTitleBigFontSize}"/> | |
1803 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1804 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
1805 <Setter Property="IsTabStop" Value="False"/> | |
1806 <Setter Property="Padding" Value="4,5,4,5"/> | |
1807 <Setter Property="Template"> | |
1808 <Setter.Value> | |
1809 <ControlTemplate TargetType="GridViewColumnHeader"> | |
1810 <Border BorderBrush="Black" BorderThickness="0,1"> | |
1811 <Border.Resources> | |
1812 <Style x:Key="GridViewColumnHeaderGripperStyle" TargetType="Thumb"> | |
1813 <Setter Property="Width" Value="2"/> | |
1814 <Setter Property="Background" Value="Transparent"/> | |
1815 <Setter Property="Cursor" Value="SizeWE"/> | |
1816 <Setter Property="Template"> | |
1817 <Setter.Value> | |
1818 <ControlTemplate TargetType="Thumb"> | |
1819 <Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}"/> | |
1820 </ControlTemplate> | |
1821 </Setter.Value> | |
1822 </Setter> | |
1823 </Style> | |
1824 </Border.Resources> | |
1825 | |
1826 <VisualStateManager.VisualStateGroups> | |
1827 <VisualStateGroup x:Name="CommonStates"> | |
1828 <VisualState x:Name="Normal"/> | |
1829 <VisualState x:Name="MouseOver"> | |
1830 <Storyboard> | |
1831 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
1832 <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
1833 </DoubleAnimationUsingKeyFrames> | |
1834 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverLeftRightSeperator"> | |
1835 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
1836 </DoubleAnimationUsingKeyFrames> | |
1837 </Storyboard> | |
1838 </VisualState> | |
1839 <VisualState x:Name="Pressed"> | |
1840 <Storyboard> | |
1841 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedRectangle"> | |
1842 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
1843 </DoubleAnimationUsingKeyFrames> | |
1844 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedLeftRightSeperator"> | |
1845 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
1846 </DoubleAnimationUsingKeyFrames> | |
1847 </Storyboard> | |
1848 </VisualState> | |
1849 </VisualStateGroup> | |
1850 </VisualStateManager.VisualStateGroups> | |
1851 | |
1852 <Grid x:Name="Root" Height="44"> | |
1853 <Grid.ColumnDefinitions> | |
1854 <ColumnDefinition Width="*" /> | |
1855 <ColumnDefinition Width="Auto" /> | |
1856 </Grid.ColumnDefinitions> | |
1857 <Rectangle x:Name="BackgroundRectangle" Grid.ColumnSpan="2" Stretch="Fill" Fill="{StaticResource WhiteBrush}"/> | |
1858 <Rectangle x:Name="MouseOverRectangle" Grid.ColumnSpan="2" Opacity="0"> | |
1859 <Rectangle.Fill> | |
1860 <SolidColorBrush Color="{StaticResource Gray8}" PresentationOptions:Freeze="True"/> | |
1861 </Rectangle.Fill> | |
1862 </Rectangle> | |
1863 <Rectangle x:Name="PressedRectangle" Grid.ColumnSpan="2" Opacity="0"> | |
1864 <Rectangle.Fill> | |
1865 <SolidColorBrush Color="{StaticResource Gray8}" PresentationOptions:Freeze="True"/> | |
1866 </Rectangle.Fill> | |
1867 </Rectangle> | |
1868 <Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> | |
1869 <Grid.ColumnDefinitions> | |
1870 <ColumnDefinition Width="*" /> | |
1871 <ColumnDefinition Width="Auto" /> | |
1872 </Grid.ColumnDefinitions> | |
1873 <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | |
1874 VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
1875 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | |
1876 RenderOptions.ClearTypeHint="Enabled"/> | |
1877 </Grid> | |
1878 <Rectangle x:Name="VerticalSeparator" Grid.Column="1" Fill="{StaticResource TextBrush}" VerticalAlignment="Stretch" Width="1" Opacity="0"/> | |
1879 <Border x:Name="MouseOverLeftRightSeperator" Grid.ColumnSpan="2" BorderThickness="1,0" BorderBrush="{StaticResource SeperatorBrush}" Margin="-1,0,0,0" Opacity="0"/> | |
1880 <Border x:Name="PressedLeftRightSeperator" Grid.ColumnSpan="2" Opacity="0" BorderBrush="{StaticResource SeperatorBrush}" BorderThickness="1,0" Margin="-1,0,0,0"/> | |
1881 <Thumb x:Name="PART_HeaderGripper" Grid.RowSpan="2" Grid.Column="2" | |
1882 HorizontalAlignment="Right" | |
1883 Style="{StaticResource GridViewColumnHeaderGripperStyle}"/> | |
1884 </Grid> | |
1885 </Border> | |
1886 </ControlTemplate> | |
1887 </Setter.Value> | |
1888 </Setter> | |
1889 <Style.Triggers> | |
1890 <Trigger Property="Role" Value="Floating"> | |
1891 <Setter Property="Opacity" Value="0.7" /> | |
1892 <Setter Property="Template"> | |
1893 <Setter.Value> | |
1894 <ControlTemplate TargetType="GridViewColumnHeader"> | |
1895 <Canvas Name="PART_FloatingHeaderCanvas"> | |
1896 <Rectangle Fill="Transparent" | |
1897 Width="{TemplateBinding ActualWidth}" | |
1898 Height="{TemplateBinding ActualHeight}" /> | |
1899 </Canvas> | |
1900 </ControlTemplate> | |
1901 </Setter.Value> | |
1902 </Setter> | |
1903 </Trigger> | |
1904 <Trigger Property="Role" Value="Padding"> | |
1905 <Setter Property="Template"> | |
1906 <Setter.Value> | |
1907 <ControlTemplate TargetType="GridViewColumnHeader"> | |
1908 <Border Name="HeaderBorder" | |
1909 BorderBrush="{StaticResource TextBrush}" BorderThickness="0,1,0,1" | |
1910 Background="{StaticResource WhiteColorBrush}"> | |
1911 </Border> | |
1912 </ControlTemplate> | |
1913 </Setter.Value> | |
1914 </Setter> | |
1915 </Trigger> | |
1916 </Style.Triggers> | |
1917 </Style> | |
1918 | |
1919 <!--CheckBox Style--> | |
1920 <Style TargetType="CheckBox" x:Key="DefaultCheckBoxStyle"> | |
1921 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
1922 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
1923 <Setter Property="Background" Value="{StaticResource CheckBoxBackgroundBrush}"/> | |
1924 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
1925 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
1926 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
1927 <Setter Property="Padding" Value="5,0,0,0"/> | |
1928 <Setter Property="BorderThickness" Value="1"/> | |
1929 <Setter Property="BorderBrush" Value="{StaticResource CheckBoxBrush}"/> | |
1930 <Setter Property="Template"> | |
1931 <Setter.Value> | |
1932 <ControlTemplate TargetType="CheckBox"> | |
1933 <Grid> | |
1934 <VisualStateManager.VisualStateGroups> | |
1935 <VisualStateGroup x:Name="CommonStates"> | |
1936 <VisualState x:Name="Normal"/> | |
1937 <VisualState x:Name="MouseOver"> | |
1938 <Storyboard> | |
1939 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
1940 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1941 </DoubleAnimationUsingKeyFrames> | |
1942 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
1943 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource Gray2}"/> | |
1944 </ColorAnimationUsingKeyFrames> | |
1945 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid"> | |
1946 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1947 </DoubleAnimationUsingKeyFrames> | |
1948 </Storyboard> | |
1949 </VisualState> | |
1950 <VisualState x:Name="Pressed"> | |
1951 <Storyboard> | |
1952 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedRectangle"> | |
1953 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
1954 </DoubleAnimationUsingKeyFrames> | |
1955 </Storyboard> | |
1956 </VisualState> | |
1957 <VisualState x:Name="Disabled"> | |
1958 <Storyboard> | |
1959 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
1960 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
1961 </DoubleAnimationUsingKeyFrames> | |
1962 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualElement"> | |
1963 <SplineDoubleKeyFrame KeyTime="0" Value="0.55"/> | |
1964 </DoubleAnimationUsingKeyFrames> | |
1965 </Storyboard> | |
1966 </VisualState> | |
1967 </VisualStateGroup> | |
1968 <VisualStateGroup x:Name="CheckStates"> | |
1969 <VisualState x:Name="Checked"> | |
1970 <Storyboard> | |
1971 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckIcon"> | |
1972 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
1973 </DoubleAnimationUsingKeyFrames> | |
1974 </Storyboard> | |
1975 </VisualState> | |
1976 <VisualState x:Name="Unchecked"/> | |
1977 <VisualState x:Name="Indeterminate"> | |
1978 <Storyboard> | |
1979 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="IndeterminateIcon"> | |
1980 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
1981 </DoubleAnimationUsingKeyFrames> | |
1982 </Storyboard> | |
1983 </VisualState> | |
1984 </VisualStateGroup> | |
1985 <VisualStateGroup x:Name="FocusStates"> | |
1986 <VisualState x:Name="Focused"> | |
1987 <Storyboard/> | |
1988 </VisualState> | |
1989 <VisualState x:Name="Unfocused"/> | |
1990 </VisualStateGroup> | |
1991 <VisualStateGroup x:Name="ValidationStates"> | |
1992 <VisualState x:Name="Valid"/> | |
1993 <VisualState x:Name="InvalidUnfocused"> | |
1994 <Storyboard> | |
1995 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
1996 <DiscreteObjectKeyFrame KeyTime="0"> | |
1997 <DiscreteObjectKeyFrame.Value> | |
1998 <Visibility>Visible</Visibility> | |
1999 </DiscreteObjectKeyFrame.Value> | |
2000 </DiscreteObjectKeyFrame> | |
2001 </ObjectAnimationUsingKeyFrames> | |
2002 </Storyboard> | |
2003 </VisualState> | |
2004 <VisualState x:Name="InvalidFocused"> | |
2005 <Storyboard> | |
2006 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
2007 <DiscreteObjectKeyFrame KeyTime="0"> | |
2008 <DiscreteObjectKeyFrame.Value> | |
2009 <Visibility>Visible</Visibility> | |
2010 </DiscreteObjectKeyFrame.Value> | |
2011 </DiscreteObjectKeyFrame> | |
2012 </ObjectAnimationUsingKeyFrames> | |
2013 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
2014 <DiscreteObjectKeyFrame KeyTime="0"> | |
2015 <DiscreteObjectKeyFrame.Value> | |
2016 <sys:Boolean>True</sys:Boolean> | |
2017 </DiscreteObjectKeyFrame.Value> | |
2018 </DiscreteObjectKeyFrame> | |
2019 </ObjectAnimationUsingKeyFrames> | |
2020 </Storyboard> | |
2021 </VisualState> | |
2022 </VisualStateGroup> | |
2023 </VisualStateManager.VisualStateGroups> | |
2024 <Grid.ColumnDefinitions> | |
2025 <ColumnDefinition Width="16"/> | |
2026 <ColumnDefinition Width="*"/> | |
2027 </Grid.ColumnDefinitions> | |
2028 <Grid HorizontalAlignment="Left" VerticalAlignment="Center"> | |
2029 <Grid x:Name="grid" Height="14" Width="14" Opacity="0.7"> | |
2030 <Rectangle x:Name="Background" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" /> | |
2031 <Rectangle x:Name="MouseOverRectangle" Stroke="{StaticResource CheckBoxMouseOverBrush}" Opacity="0" /> | |
2032 <Rectangle x:Name="PressedRectangle" Stroke="{StaticResource BlackBrush}" Opacity="0" /> | |
2033 <Path Opacity="0" x:Name="CheckIcon" Data="M49.4375,110.4375 L51.4995,112.812 L56.3745,107.24883" HorizontalAlignment="Center" Height="7.6" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" VerticalAlignment="Center" Width="8.9" StrokeStartLineCap="Triangle" StrokeEndLineCap="Triangle" StrokeThickness="2"/> | |
2034 <Rectangle x:Name="IndeterminateIcon" Height="8" Width="8" Opacity="0"> | |
2035 <Rectangle.Fill> | |
2036 <SolidColorBrush Color="{StaticResource Gray3}" PresentationOptions:Freeze="True"/> | |
2037 </Rectangle.Fill> | |
2038 </Rectangle> | |
2039 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledWhiteColorBrush}" Opacity="0" RadiusY="1" RadiusX="1" /> | |
2040 </Grid> | |
2041 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="1" CornerRadius="1" Margin="1" ToolTipService.PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed"> | |
2042 <ToolTipService.ToolTip> | |
2043 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
2044 </ToolTipService.ToolTip> | |
2045 <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10"> | |
2046 <Path Data="M 1,0 L5,0 A 2,2 90 0 1 7,2 L7,6 z" Fill="{StaticResource ValidationBrush5}" Margin="0,3,0,0"/> | |
2047 <Path Data="M 0,0 L2,0 L 7,5 L7,7" Fill="{StaticResource WhiteColorBrush}" Margin="0,3,0,0"/> | |
2048 </Grid> | |
2049 </Border> | |
2050 </Grid> | |
2051 <ContentControl x:Name="ContentRoot" Grid.Column="1" Focusable="False"> | |
2052 <ContentControl.Foreground> | |
2053 <SolidColorBrush x:Name="ContentPresenterWrapperColor" Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
2054 </ContentControl.Foreground> | |
2055 | |
2056 <AccessText x:Name="contentPresenter" | |
2057 FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" | |
2058 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | |
2059 VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
2060 Text="{TemplateBinding Content}" | |
2061 Margin="{TemplateBinding Padding}" /> | |
2062 </ContentControl> | |
2063 </Grid> | |
2064 <ControlTemplate.Triggers> | |
2065 <Trigger Property="HasContent" Value="False"> | |
2066 <Setter TargetName="ContentRoot" Property="Visibility" Value="Collapsed" /> | |
2067 </Trigger> | |
2068 </ControlTemplate.Triggers> | |
2069 </ControlTemplate> | |
2070 </Setter.Value> | |
2071 </Setter> | |
2072 </Style> | |
2073 | |
2074 <!--PasswordBox Style--> | |
2075 <Style TargetType="PasswordBox" x:Key="DefaultPasswordBoxStyle"> | |
2076 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
2077 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
2078 <Setter Property="BorderThickness" Value="1"/> | |
2079 <Setter Property="FocusVisualStyle" Value="{x:Null}" /> | |
2080 <Setter Property="MinHeight" Value="26"/> | |
2081 <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/> | |
2082 <Setter Property="Foreground"> | |
2083 <Setter.Value> | |
2084 <SolidColorBrush Color="{StaticResource TextBoxText}" PresentationOptions:Freeze="True"/> | |
2085 </Setter.Value> | |
2086 </Setter> | |
2087 <Setter Property="Padding" Value="0"/> | |
2088 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
2089 <Setter Property="Template"> | |
2090 <Setter.Value> | |
2091 <ControlTemplate TargetType="PasswordBox"> | |
2092 <Grid x:Name="RootElement"> | |
2093 <VisualStateManager.VisualStateGroups> | |
2094 <VisualStateGroup x:Name="CommonStates"> | |
2095 <VisualState x:Name="Normal"/> | |
2096 <VisualState x:Name="MouseOver"> | |
2097 <Storyboard> | |
2098 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle" /> | |
2099 </Storyboard> | |
2100 </VisualState> | |
2101 <VisualState x:Name="Disabled"> | |
2102 <Storyboard> | |
2103 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
2104 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
2105 </DoubleAnimationUsingKeyFrames> | |
2106 </Storyboard> | |
2107 </VisualState> | |
2108 <VisualState x:Name="ReadOnly"> | |
2109 <Storyboard> | |
2110 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ReadOnlyVisualElement"> | |
2111 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
2112 </DoubleAnimationUsingKeyFrames> | |
2113 </Storyboard> | |
2114 </VisualState> | |
2115 </VisualStateGroup> | |
2116 <VisualStateGroup x:Name="FocusStates"> | |
2117 <VisualState x:Name="Focused"> | |
2118 <Storyboard> | |
2119 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle" /> | |
2120 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"/> | |
2121 </Storyboard> | |
2122 </VisualState> | |
2123 <VisualState x:Name="Unfocused"> | |
2124 <Storyboard/> | |
2125 </VisualState> | |
2126 </VisualStateGroup> | |
2127 <VisualStateGroup x:Name="ValidationStates"> | |
2128 <VisualState x:Name="Valid"/> | |
2129 <VisualState x:Name="InvalidUnfocused"> | |
2130 <Storyboard> | |
2131 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
2132 <DiscreteObjectKeyFrame KeyTime="0"> | |
2133 <DiscreteObjectKeyFrame.Value> | |
2134 <Visibility>Visible</Visibility> | |
2135 </DiscreteObjectKeyFrame.Value> | |
2136 </DiscreteObjectKeyFrame> | |
2137 </ObjectAnimationUsingKeyFrames> | |
2138 </Storyboard> | |
2139 </VisualState> | |
2140 <VisualState x:Name="InvalidFocused"> | |
2141 <Storyboard> | |
2142 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
2143 <DiscreteObjectKeyFrame KeyTime="0"> | |
2144 <DiscreteObjectKeyFrame.Value> | |
2145 <Visibility>Visible</Visibility> | |
2146 </DiscreteObjectKeyFrame.Value> | |
2147 </DiscreteObjectKeyFrame> | |
2148 </ObjectAnimationUsingKeyFrames> | |
2149 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
2150 <DiscreteObjectKeyFrame KeyTime="0"> | |
2151 <DiscreteObjectKeyFrame.Value> | |
2152 <sys:Boolean>True</sys:Boolean> | |
2153 </DiscreteObjectKeyFrame.Value> | |
2154 </DiscreteObjectKeyFrame> | |
2155 </ObjectAnimationUsingKeyFrames> | |
2156 </Storyboard> | |
2157 </VisualState> | |
2158 </VisualStateGroup> | |
2159 </VisualStateManager.VisualStateGroups> | |
2160 | |
2161 <Rectangle x:Name="Base" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="1" Fill="{StaticResource ControlBackgroundBrush}" /> | |
2162 <Rectangle x:Name="FocusRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="0" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" /> | |
2163 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Opacity="0" Margin="1" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" /> | |
2164 <Grid Margin="0,1,0,0"> | |
2165 <Border x:Name="ReadOnlyVisualElement" Background="{StaticResource ReadOnlyBrush}" Opacity="0"/> | |
2166 <Grid> | |
2167 <ScrollViewer x:Name="PART_ContentHost" BorderThickness="0" IsTabStop="False" Margin="4,0,4,2" VerticalAlignment="Center" Background="{x:Null}"/> | |
2168 </Grid> | |
2169 </Grid> | |
2170 <Rectangle x:Name="DisabledVisualElement" Stroke="{StaticResource ControlsDisabledBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{StaticResource ControlsDisabledBrush}" IsHitTestVisible="False" Opacity="0"/> | |
2171 <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ControlsValidationBrush}" BorderThickness="1" Visibility="Collapsed"> | |
2172 <ToolTipService.ToolTip> | |
2173 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
2174 </ToolTipService.ToolTip> | |
2175 <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12"> | |
2176 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationBrush5}" Margin="1,3,0,0"/> | |
2177 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="1,3,0,0"/> | |
2178 </Grid> | |
2179 </Border> | |
2180 </Grid> | |
2181 </ControlTemplate> | |
2182 </Setter.Value> | |
2183 </Setter> | |
2184 </Style> | |
2185 | |
2186 <!--ProgressBar Style--> | |
2187 <Style TargetType="ProgressBar" x:Key="DefaultProgressBarStyle"> | |
2188 <Setter Property="Foreground" Value="{StaticResource HighlightBrush}"/> | |
2189 <Setter Property="Background" Value="{StaticResource GrayBrush4}"/> | |
2190 <Setter Property="Maximum" Value="100"/> | |
2191 <Setter Property="Height" Value="5"/> | |
2192 <Setter Property="IsTabStop" Value="False"/> | |
2193 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
2194 <Setter Property="BorderThickness" Value="1"/> | |
2195 <Setter Property="Template"> | |
2196 <Setter.Value> | |
2197 <ControlTemplate TargetType="ProgressBar"> | |
2198 <Grid x:Name="ProgressBar"> | |
2199 <VisualStateManager.VisualStateGroups> | |
2200 <VisualStateGroup x:Name="CommonStates"> | |
2201 <VisualState x:Name="Determinate" /> | |
2202 <VisualState x:Name="Indeterminate"> | |
2203 <Storyboard> | |
2204 <ObjectAnimationUsingKeyFrames Duration="00:00:00" | |
2205 Storyboard.TargetName="Indicator" | |
2206 Storyboard.TargetProperty="Visibility"> | |
2207 <DiscreteObjectKeyFrame KeyTime="00:00:00"> | |
2208 <DiscreteObjectKeyFrame.Value> | |
2209 <Visibility>Collapsed</Visibility> | |
2210 </DiscreteObjectKeyFrame.Value> | |
2211 </DiscreteObjectKeyFrame> | |
2212 </ObjectAnimationUsingKeyFrames> | |
2213 <ObjectAnimationUsingKeyFrames Duration="00:00:00" | |
2214 Storyboard.TargetName="PART_GlowRect" | |
2215 Storyboard.TargetProperty="Visibility"> | |
2216 <DiscreteObjectKeyFrame KeyTime="00:00:00"> | |
2217 <DiscreteObjectKeyFrame.Value> | |
2218 <Visibility>Visible</Visibility> | |
2219 </DiscreteObjectKeyFrame.Value> | |
2220 </DiscreteObjectKeyFrame> | |
2221 </ObjectAnimationUsingKeyFrames> | |
2222 </Storyboard> | |
2223 </VisualState> | |
2224 </VisualStateGroup> | |
2225 </VisualStateManager.VisualStateGroups> | |
2226 | |
2227 <Border x:Name="PART_Track" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" /> | |
2228 <Decorator x:Name="PART_Indicator" HorizontalAlignment="Left" Margin="1"> | |
2229 <Grid x:Name="Foreground"> | |
2230 <Rectangle x:Name="Indicator" Fill="{TemplateBinding Foreground}" Visibility="Visible" /> | |
2231 <Grid x:Name="Animation" ClipToBounds="True"> | |
2232 <Border x:Name="PART_GlowRect" HorizontalAlignment="Left" Margin="-100,0,0,0" Width="100" Background="{TemplateBinding Foreground}" Visibility="Collapsed" /> | |
2233 </Grid> | |
2234 </Grid> | |
2235 </Decorator> | |
2236 </Grid> | |
2237 </ControlTemplate> | |
2238 </Setter.Value> | |
2239 </Setter> | |
2240 </Style> | |
2241 | |
2242 <!--RadioButton Style--> | |
2243 <Style TargetType="RadioButton" x:Key="DefaultRadioButtonStyle"> | |
2244 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
2245 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
2246 <Setter Property="Background" Value="{StaticResource CheckBoxBackgroundBrush}"/> | |
2247 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
2248 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
2249 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
2250 <Setter Property="Padding" Value="4,0,0,0"/> | |
2251 <Setter Property="BorderThickness" Value="1"/> | |
2252 <Setter Property="BorderBrush" Value="{StaticResource CheckBoxBrush}"/> | |
2253 <Setter Property="Template"> | |
2254 <Setter.Value> | |
2255 <ControlTemplate TargetType="RadioButton"> | |
2256 <Grid> | |
2257 <VisualStateManager.VisualStateGroups> | |
2258 <VisualStateGroup x:Name="CommonStates"> | |
2259 <VisualState x:Name="Normal"/> | |
2260 <VisualState x:Name="MouseOver"> | |
2261 <Storyboard> | |
2262 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverEllipse"> | |
2263 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
2264 </DoubleAnimationUsingKeyFrames> | |
2265 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
2266 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource Gray2}"/> | |
2267 </ColorAnimationUsingKeyFrames> | |
2268 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid"> | |
2269 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
2270 </DoubleAnimationUsingKeyFrames> | |
2271 </Storyboard> | |
2272 </VisualState> | |
2273 <VisualState x:Name="Pressed"> | |
2274 <Storyboard/> | |
2275 </VisualState> | |
2276 <VisualState x:Name="Disabled"> | |
2277 <Storyboard> | |
2278 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
2279 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
2280 </DoubleAnimationUsingKeyFrames> | |
2281 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualElement"> | |
2282 <SplineDoubleKeyFrame KeyTime="0" Value="0.55"/> | |
2283 </DoubleAnimationUsingKeyFrames> | |
2284 </Storyboard> | |
2285 </VisualState> | |
2286 </VisualStateGroup> | |
2287 <VisualStateGroup x:Name="CheckStates"> | |
2288 <VisualState x:Name="Checked"> | |
2289 <Storyboard> | |
2290 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckIcon"> | |
2291 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
2292 </DoubleAnimationUsingKeyFrames> | |
2293 </Storyboard> | |
2294 </VisualState> | |
2295 <VisualState x:Name="Unchecked"/> | |
2296 </VisualStateGroup> | |
2297 <VisualStateGroup x:Name="FocusStates"> | |
2298 <VisualState x:Name="Focused"> | |
2299 <Storyboard/> | |
2300 </VisualState> | |
2301 <VisualState x:Name="Unfocused"/> | |
2302 </VisualStateGroup> | |
2303 <VisualStateGroup x:Name="ValidationStates"> | |
2304 <VisualState x:Name="Valid"/> | |
2305 <VisualState x:Name="InvalidUnfocused"> | |
2306 <Storyboard> | |
2307 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
2308 <DiscreteObjectKeyFrame KeyTime="0"> | |
2309 <DiscreteObjectKeyFrame.Value> | |
2310 <Visibility>Visible</Visibility> | |
2311 </DiscreteObjectKeyFrame.Value> | |
2312 </DiscreteObjectKeyFrame> | |
2313 </ObjectAnimationUsingKeyFrames> | |
2314 </Storyboard> | |
2315 </VisualState> | |
2316 <VisualState x:Name="InvalidFocused"> | |
2317 <Storyboard> | |
2318 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement"> | |
2319 <DiscreteObjectKeyFrame KeyTime="0"> | |
2320 <DiscreteObjectKeyFrame.Value> | |
2321 <Visibility>Visible</Visibility> | |
2322 </DiscreteObjectKeyFrame.Value> | |
2323 </DiscreteObjectKeyFrame> | |
2324 </ObjectAnimationUsingKeyFrames> | |
2325 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip"> | |
2326 <DiscreteObjectKeyFrame KeyTime="0"> | |
2327 <DiscreteObjectKeyFrame.Value> | |
2328 <sys:Boolean>True</sys:Boolean> | |
2329 </DiscreteObjectKeyFrame.Value> | |
2330 </DiscreteObjectKeyFrame> | |
2331 </ObjectAnimationUsingKeyFrames> | |
2332 </Storyboard> | |
2333 </VisualState> | |
2334 </VisualStateGroup> | |
2335 </VisualStateManager.VisualStateGroups> | |
2336 <Grid.ColumnDefinitions> | |
2337 <ColumnDefinition Width="16"/> | |
2338 <ColumnDefinition Width="*"/> | |
2339 </Grid.ColumnDefinitions> | |
2340 <Grid HorizontalAlignment="Left" VerticalAlignment="Center"> | |
2341 <Grid x:Name="grid" Height="15" Width="15" Opacity="0.7"> | |
2342 <Ellipse x:Name="Background" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" Margin="1" StrokeThickness="{TemplateBinding BorderThickness}" /> | |
2343 <Ellipse x:Name="MouseOverEllipse" Stroke="{StaticResource CheckBoxMouseOverBrush}" Margin="1" Opacity="0" /> | |
2344 <Ellipse x:Name="PressedEllipse" Stroke="{StaticResource BlackBrush}" Margin="1" Opacity="0" /> | |
2345 <Ellipse x:Name="CheckIcon" Fill="{StaticResource BlackBrush}" Height="7" Opacity="0" Width="7"/> | |
2346 <Ellipse x:Name="DisabledVisualElement" Fill="{StaticResource DisabledWhiteColorBrush}" Opacity="0" /> | |
2347 <Grid x:Name="ValidationErrorElement" ToolTipService.PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed"> | |
2348 <ToolTipService.ToolTip> | |
2349 <ToolTip x:Name="validationTooltip" IsHitTestVisible="True" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}" /> | |
2350 </ToolTipService.ToolTip> | |
2351 <Ellipse Height="14" Stroke="{StaticResource ControlsValidationBrush}" StrokeThickness="1" Width="14"/> | |
2352 <Ellipse Fill="{StaticResource ControlsValidationBrush}" HorizontalAlignment="Right" Height="4" Margin="0,-2,-1,0" VerticalAlignment="Top" Width="4"/> | |
2353 <Ellipse Fill="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-5,-4,0" VerticalAlignment="Top" Width="10"/> | |
2354 </Grid> | |
2355 </Grid> | |
2356 </Grid> | |
2357 <ContentControl Grid.Column="1" VerticalAlignment="Center"> | |
2358 <ContentControl.Foreground> | |
2359 <SolidColorBrush x:Name="ContentPresenterWrapperColor" Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
2360 </ContentControl.Foreground> | |
2361 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
2362 RenderOptions.ClearTypeHint="Enabled"/> | |
2363 </ContentControl> | |
2364 </Grid> | |
2365 </ControlTemplate> | |
2366 </Setter.Value> | |
2367 </Setter> | |
2368 </Style> | |
2369 | |
2370 <!--RepeatButton Style--> | |
2371 <Style TargetType="RepeatButton" x:Key="DefaultRepeatButtonStyle"> | |
2372 <Setter Property="Background" Value="{StaticResource GrayBrush7}"/> | |
2373 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
2374 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
2375 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
2376 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
2377 <Setter Property="FontWeight" Value="SemiBold"/> | |
2378 <Setter Property="Padding" Value="5,6"/> | |
2379 <Setter Property="BorderThickness" Value="1"/> | |
2380 <Setter Property="Template"> | |
2381 <Setter.Value> | |
2382 <ControlTemplate TargetType="RepeatButton"> | |
2383 <Grid> | |
2384 <VisualStateManager.VisualStateGroups> | |
2385 <VisualStateGroup x:Name="CommonStates"> | |
2386 <VisualState x:Name="Normal"/> | |
2387 <VisualState x:Name="MouseOver"> | |
2388 <Storyboard> | |
2389 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder"> | |
2390 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2391 </DoubleAnimationUsingKeyFrames> | |
2392 </Storyboard> | |
2393 </VisualState> | |
2394 <VisualState x:Name="Pressed"> | |
2395 <Storyboard> | |
2396 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
2397 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2398 </DoubleAnimationUsingKeyFrames> | |
2399 </Storyboard> | |
2400 </VisualState> | |
2401 <VisualState x:Name="Disabled"> | |
2402 <Storyboard> | |
2403 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
2404 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
2405 </DoubleAnimationUsingKeyFrames> | |
2406 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
2407 <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
2408 </DoubleAnimationUsingKeyFrames> | |
2409 </Storyboard> | |
2410 </VisualState> | |
2411 </VisualStateGroup> | |
2412 <VisualStateGroup x:Name="FocusStates"> | |
2413 <VisualState x:Name="Focused"> | |
2414 <Storyboard> | |
2415 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle"> | |
2416 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2417 </DoubleAnimationUsingKeyFrames> | |
2418 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"> | |
2419 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2420 </DoubleAnimationUsingKeyFrames> | |
2421 </Storyboard> | |
2422 </VisualState> | |
2423 <VisualState x:Name="Unfocused"/> | |
2424 </VisualStateGroup> | |
2425 </VisualStateManager.VisualStateGroups> | |
2426 <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3"/> | |
2427 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledWhiteColorBrush}" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/> | |
2428 <Border x:Name="MouseOverBorder" Background="{StaticResource GrayBrush8}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
2429 <Border x:Name="PressedBorder" Background="{StaticResource GrayBrush5}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
2430 <Rectangle x:Name="FocusRectangle" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" RadiusY="4" RadiusX="4" Margin="-1" Opacity="0" /> | |
2431 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" RadiusX="3" RadiusY="3" Opacity="0" /> | |
2432 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
2433 RenderOptions.ClearTypeHint="Enabled"/> | |
2434 </Grid> | |
2435 </ControlTemplate> | |
2436 </Setter.Value> | |
2437 </Setter> | |
2438 </Style> | |
2439 | |
2440 <!--Thumb Style--> | |
2441 <Style x:Key="HorizontalSliderThumb" TargetType="Thumb"> | |
2442 <Setter Property="Background" Value="{StaticResource GrayBrush7}"/> | |
2443 <Setter Property="BorderThickness" Value="1"/> | |
2444 <Setter Property="IsTabStop" Value="False"/> | |
2445 <Setter Property="Template"> | |
2446 <Setter.Value> | |
2447 <ControlTemplate TargetType="Thumb"> | |
2448 <Grid> | |
2449 <VisualStateManager.VisualStateGroups> | |
2450 <VisualStateGroup x:Name="CommonStates"> | |
2451 <VisualState x:Name="Normal"/> | |
2452 <VisualState x:Name="MouseOver"> | |
2453 <Storyboard/> | |
2454 </VisualState> | |
2455 <VisualState x:Name="Pressed"> | |
2456 <Storyboard/> | |
2457 </VisualState> | |
2458 <VisualState x:Name="Disabled"> | |
2459 <Storyboard> | |
2460 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
2461 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
2462 </DoubleAnimationUsingKeyFrames> | |
2463 </Storyboard> | |
2464 </VisualState> | |
2465 </VisualStateGroup> | |
2466 <VisualStateGroup x:Name="FocusStates"> | |
2467 <VisualState x:Name="Focused"/> | |
2468 <VisualState x:Name="Unfocused"/> | |
2469 </VisualStateGroup> | |
2470 </VisualStateManager.VisualStateGroups> | |
2471 <Border Background="{StaticResource BlackBrush}" BorderThickness="0,0,1,0" BorderBrush="{StaticResource ControlBackgroundBrush}" /> | |
2472 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledWhiteColorBrush}" IsHitTestVisible="false" Opacity="0"/> | |
2473 </Grid> | |
2474 </ControlTemplate> | |
2475 </Setter.Value> | |
2476 </Setter> | |
2477 </Style> | |
2478 | |
2479 <!--VerticalSliderThumb--> | |
2480 <Style x:Key="VerticalSliderThumb" TargetType="Thumb"> | |
2481 <Setter Property="Background" Value="{StaticResource TransparentWhiteBrush}"/> | |
2482 <Setter Property="BorderThickness" Value="1"/> | |
2483 <Setter Property="IsTabStop" Value="False"/> | |
2484 <Setter Property="Template"> | |
2485 <Setter.Value> | |
2486 <ControlTemplate TargetType="Thumb"> | |
2487 <Grid> | |
2488 <VisualStateManager.VisualStateGroups> | |
2489 <VisualStateGroup x:Name="CommonStates"> | |
2490 <VisualState x:Name="Normal"/> | |
2491 <VisualState x:Name="MouseOver"> | |
2492 <Storyboard/> | |
2493 </VisualState> | |
2494 <VisualState x:Name="Pressed"> | |
2495 <Storyboard/> | |
2496 </VisualState> | |
2497 <VisualState x:Name="Disabled"> | |
2498 <Storyboard> | |
2499 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
2500 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
2501 </DoubleAnimationUsingKeyFrames> | |
2502 </Storyboard> | |
2503 </VisualState> | |
2504 </VisualStateGroup> | |
2505 <VisualStateGroup x:Name="FocusStates"> | |
2506 <VisualState x:Name="Focused"/> | |
2507 <VisualState x:Name="Unfocused"/> | |
2508 </VisualStateGroup> | |
2509 </VisualStateManager.VisualStateGroups> | |
2510 <Border Background="{StaticResource BlackBrush}" BorderThickness="0,1,0,0" BorderBrush="{StaticResource ControlBackgroundBrush}" /> | |
2511 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledWhiteColorBrush}" IsHitTestVisible="false" Opacity="0"/> | |
2512 </Grid> | |
2513 </ControlTemplate> | |
2514 </Setter.Value> | |
2515 </Setter> | |
2516 </Style> | |
2517 | |
2518 <!--HorizontalTrackLargeDecrease--> | |
2519 <ControlTemplate x:Key="HorizontalTrackLargeDecrease" TargetType="RepeatButton"> | |
2520 <Grid x:Name="Root" Margin="0,-1,0,0"> | |
2521 <VisualStateManager.VisualStateGroups> | |
2522 <VisualStateGroup x:Name="CommonStates"> | |
2523 <VisualState x:Name="Normal"/> | |
2524 <VisualState x:Name="MouseOver"/> | |
2525 <VisualState x:Name="Pressed"/> | |
2526 <VisualState x:Name="Disabled"/> | |
2527 </VisualStateGroup> | |
2528 </VisualStateManager.VisualStateGroups> | |
2529 <Rectangle Height="3" Margin="0,1,0,0"> | |
2530 <Rectangle.Fill> | |
2531 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
2532 </Rectangle.Fill> | |
2533 </Rectangle> | |
2534 </Grid> | |
2535 </ControlTemplate> | |
2536 | |
2537 <!--VerticalTrackLargeDecrease--> | |
2538 <ControlTemplate x:Key="VerticalTrackLargeDecrease" TargetType="RepeatButton"> | |
2539 <Grid x:Name="Root" Margin="0,0,0,0" > | |
2540 <Rectangle Width="3"> | |
2541 <Rectangle.Fill> | |
2542 <SolidColorBrush Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
2543 </Rectangle.Fill> | |
2544 </Rectangle> | |
2545 </Grid> | |
2546 </ControlTemplate> | |
2547 | |
2548 <!--Slider Style--> | |
2549 <Style TargetType="Slider" x:Key="DefaultSliderStyle"> | |
2550 <Setter Property="BorderThickness" Value="1"/> | |
2551 <Setter Property="Maximum" Value="10"/> | |
2552 <Setter Property="Minimum" Value="0"/> | |
2553 <Setter Property="Value" Value="0"/> | |
2554 <Setter Property="BorderBrush" Value="{StaticResource ControlBorderBrush}"/> | |
2555 <Setter Property="IsTabStop" Value="False"/> | |
2556 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
2557 <Setter Property="Template"> | |
2558 <Setter.Value> | |
2559 <ControlTemplate TargetType="Slider"> | |
2560 <Grid x:Name="Root"> | |
2561 <Grid.Resources> | |
2562 <ControlTemplate x:Key="RepeatButtonTemplate"> | |
2563 <Grid x:Name="Root" Opacity="0"/> | |
2564 </ControlTemplate> | |
2565 </Grid.Resources> | |
2566 <VisualStateManager.VisualStateGroups> | |
2567 <VisualStateGroup x:Name="CommonStates"> | |
2568 <VisualState x:Name="Normal"/> | |
2569 <VisualState x:Name="MouseOver"/> | |
2570 <VisualState x:Name="Disabled"> | |
2571 <Storyboard> | |
2572 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="HorizontalTrackRectangleDisabledOverlay"> | |
2573 <DiscreteObjectKeyFrame KeyTime="0"> | |
2574 <DiscreteObjectKeyFrame.Value> | |
2575 <Visibility>Visible</Visibility> | |
2576 </DiscreteObjectKeyFrame.Value> | |
2577 </DiscreteObjectKeyFrame> | |
2578 </ObjectAnimationUsingKeyFrames> | |
2579 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ThumbDisabledOverlay"> | |
2580 <DiscreteObjectKeyFrame KeyTime="0"> | |
2581 <DiscreteObjectKeyFrame.Value> | |
2582 <Visibility>Visible</Visibility> | |
2583 </DiscreteObjectKeyFrame.Value> | |
2584 </DiscreteObjectKeyFrame> | |
2585 </ObjectAnimationUsingKeyFrames> | |
2586 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="VerticalTrackRectangleDisabledOverlay"> | |
2587 <DiscreteObjectKeyFrame KeyTime="0"> | |
2588 <DiscreteObjectKeyFrame.Value> | |
2589 <Visibility>Visible</Visibility> | |
2590 </DiscreteObjectKeyFrame.Value> | |
2591 </DiscreteObjectKeyFrame> | |
2592 </ObjectAnimationUsingKeyFrames> | |
2593 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ThumbDisabledOverlayVertical"> | |
2594 <DiscreteObjectKeyFrame KeyTime="0"> | |
2595 <DiscreteObjectKeyFrame.Value> | |
2596 <Visibility>Visible</Visibility> | |
2597 </DiscreteObjectKeyFrame.Value> | |
2598 </DiscreteObjectKeyFrame> | |
2599 </ObjectAnimationUsingKeyFrames> | |
2600 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="HorizontalTrackRectangleDisabledOverlay_Copy"> | |
2601 <DiscreteObjectKeyFrame KeyTime="0"> | |
2602 <DiscreteObjectKeyFrame.Value> | |
2603 <Visibility>Visible</Visibility> | |
2604 </DiscreteObjectKeyFrame.Value> | |
2605 </DiscreteObjectKeyFrame> | |
2606 </ObjectAnimationUsingKeyFrames> | |
2607 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="VerticalTrackRectangleDisabledOverlay_Copy"> | |
2608 <DiscreteObjectKeyFrame KeyTime="0"> | |
2609 <DiscreteObjectKeyFrame.Value> | |
2610 <Visibility>Visible</Visibility> | |
2611 </DiscreteObjectKeyFrame.Value> | |
2612 </DiscreteObjectKeyFrame> | |
2613 </ObjectAnimationUsingKeyFrames> | |
2614 </Storyboard> | |
2615 </VisualState> | |
2616 </VisualStateGroup> | |
2617 <VisualStateGroup x:Name="FocusStates"> | |
2618 <VisualState x:Name="Unfocused"/> | |
2619 <VisualState x:Name="Focused"/> | |
2620 </VisualStateGroup> | |
2621 </VisualStateManager.VisualStateGroups> | |
2622 <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}"> | |
2623 <Rectangle x:Name="TrackRectangle" Height="3" Margin="5,0" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{StaticResource SliderTrackBrush}"/> | |
2624 <Rectangle x:Name="HorizontalTrackRectangleDisabledOverlay" Fill="{StaticResource DisabledWhiteColorBrush}" Height="3" Margin="5,0,5,0" Opacity=".55" Visibility="Collapsed"/> | |
2625 <Rectangle x:Name="HorizontalTrackRectangleDisabledOverlay_Copy" Fill="{StaticResource DisabledWhiteColorBrush}" Height="4" Opacity="0.7" Visibility="Collapsed" /> | |
2626 <Track x:Name="PART_Track" Margin="5,0" Orientation="Horizontal"> | |
2627 <Track.DecreaseRepeatButton> | |
2628 <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Height="10" IsTabStop="False" Template="{StaticResource HorizontalTrackLargeDecrease}"/> | |
2629 </Track.DecreaseRepeatButton> | |
2630 <Track.Thumb> | |
2631 <Thumb x:Name="HorizontalThumb" Height="10" IsTabStop="True" Width="4" Style="{StaticResource HorizontalSliderThumb}"/> | |
2632 </Track.Thumb> | |
2633 <Track.IncreaseRepeatButton> | |
2634 <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Height="10" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}"/> | |
2635 </Track.IncreaseRepeatButton> | |
2636 </Track> | |
2637 <Rectangle x:Name="ThumbDisabledOverlay" Grid.Column="1" Fill="{StaticResource DisabledWhiteColorBrush}" Opacity="0.25" Visibility="Collapsed" Width="4" Height="10"/> | |
2638 </Grid> | |
2639 <Grid x:Name="VerticalTemplate" Background="{TemplateBinding Background}" Visibility="Collapsed"> | |
2640 <Grid.RowDefinitions> | |
2641 <RowDefinition Height="*"/> | |
2642 <RowDefinition Height="Auto"/> | |
2643 <RowDefinition Height="Auto"/> | |
2644 </Grid.RowDefinitions> | |
2645 <Rectangle x:Name="TrackRectangle_Vertical" Grid.ColumnSpan="1" Margin="0,5" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{StaticResource SliderTrackBrush}" Grid.RowSpan="3" Grid.Row="0" Width="3"/> | |
2646 <Rectangle x:Name="VerticalTrackRectangleDisabledOverlay" Fill="{StaticResource DisabledWhiteColorBrush}" Margin="0,5,0,5" Opacity=".55" Grid.Row="0" Grid.RowSpan="3" Width="3" Visibility="Collapsed"/> | |
2647 <RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Grid.Row="2" Width="17" Template="{StaticResource VerticalTrackLargeDecrease}"/> | |
2648 <Rectangle x:Name="VerticalTrackRectangleDisabledOverlay_Copy" Fill="{StaticResource DisabledWhiteColorBrush}" Opacity="0.7" Grid.Row="2" Grid.RowSpan="1" Width="5" Visibility="Collapsed"/> | |
2649 <Thumb x:Name="VerticalThumb" Height="4" IsTabStop="True" Grid.Row="1" Width="10" Style="{StaticResource VerticalSliderThumb}"/> | |
2650 <RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Grid.Row="0" Template="{StaticResource RepeatButtonTemplate}" Width="17"/> | |
2651 <Rectangle x:Name="ThumbDisabledOverlayVertical" Fill="{StaticResource DisabledWhiteColorBrush}" Opacity="0.25" Width="10" Height="4" Grid.Row="1" Visibility="Collapsed"/> | |
2652 </Grid> | |
2653 </Grid> | |
2654 </ControlTemplate> | |
2655 </Setter.Value> | |
2656 </Setter> | |
2657 </Style> | |
2658 | |
2659 <!--ToggleButton Style--> | |
2660 <Style TargetType="ToggleButton" x:Key="DefaultToggleButtonStyle"> | |
2661 <Setter Property="Background" Value="{StaticResource GrayBrush7}"/> | |
2662 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
2663 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
2664 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
2665 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
2666 <Setter Property="FontWeight" Value="SemiBold"/> | |
2667 <Setter Property="Padding" Value="5,6"/> | |
2668 <Setter Property="BorderThickness" Value="1"/> | |
2669 <Setter Property="Template"> | |
2670 <Setter.Value> | |
2671 <ControlTemplate TargetType="ToggleButton"> | |
2672 <Grid> | |
2673 <VisualStateManager.VisualStateGroups> | |
2674 <VisualStateGroup x:Name="CommonStates"> | |
2675 <VisualState x:Name="Normal"/> | |
2676 <VisualState x:Name="MouseOver"> | |
2677 <Storyboard> | |
2678 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder"> | |
2679 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2680 </DoubleAnimationUsingKeyFrames> | |
2681 </Storyboard> | |
2682 </VisualState> | |
2683 <VisualState x:Name="Pressed"> | |
2684 <Storyboard> | |
2685 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
2686 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2687 </DoubleAnimationUsingKeyFrames> | |
2688 </Storyboard> | |
2689 </VisualState> | |
2690 <VisualState x:Name="Disabled"> | |
2691 <Storyboard> | |
2692 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"> | |
2693 <SplineDoubleKeyFrame KeyTime="0" Value=".55"/> | |
2694 </DoubleAnimationUsingKeyFrames> | |
2695 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
2696 <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
2697 </DoubleAnimationUsingKeyFrames> | |
2698 </Storyboard> | |
2699 </VisualState> | |
2700 </VisualStateGroup> | |
2701 <VisualStateGroup x:Name="CheckStates"> | |
2702 <VisualState x:Name="Checked"> | |
2703 <Storyboard> | |
2704 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckedRectangle"> | |
2705 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2706 </DoubleAnimationUsingKeyFrames> | |
2707 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckedInnerRectangle"> | |
2708 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2709 </DoubleAnimationUsingKeyFrames> | |
2710 </Storyboard> | |
2711 </VisualState> | |
2712 <VisualState x:Name="Unchecked"/> | |
2713 </VisualStateGroup> | |
2714 <VisualStateGroup x:Name="FocusStates"> | |
2715 <VisualState x:Name="Focused"> | |
2716 <Storyboard> | |
2717 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle"> | |
2718 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2719 </DoubleAnimationUsingKeyFrames> | |
2720 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle"> | |
2721 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
2722 </DoubleAnimationUsingKeyFrames> | |
2723 </Storyboard> | |
2724 </VisualState> | |
2725 <VisualState x:Name="Unfocused"/> | |
2726 </VisualStateGroup> | |
2727 </VisualStateManager.VisualStateGroups> | |
2728 <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3"/> | |
2729 <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource WhiteColorBrush}" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/> | |
2730 <Border x:Name="MouseOverBorder" Background="{StaticResource GrayBrush8}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
2731 <Border x:Name="PressedBorder" Background="{StaticResource GrayBrush5}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
2732 <Border x:Name="CheckedBorder" Background="{StaticResource GrayBrush5}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3.5" Opacity="0"/> | |
2733 <Rectangle x:Name="FocusRectangle" Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" RadiusY="4" RadiusX="4" Margin="-1" Opacity="0" /> | |
2734 <Rectangle x:Name="FocusInnerRectangle" StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" RadiusX="3" RadiusY="3" Opacity="0" /> | |
2735 <Rectangle x:Name="CheckedRectangle" Stroke="{StaticResource GrayBrush1}" RadiusY="4" RadiusX="4" Margin="-1" Opacity="0" /> | |
2736 <Rectangle x:Name="CheckedInnerRectangle" Fill="{StaticResource GrayBrush2}" StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{StaticResource GrayBrush2}" RadiusX="3" RadiusY="3" Opacity="0" /> | |
2737 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
2738 RenderOptions.ClearTypeHint="Enabled"/> | |
2739 </Grid> | |
2740 </ControlTemplate> | |
2741 </Setter.Value> | |
2742 </Setter> | |
2743 </Style> | |
2744 | |
2745 <!--Tooltip Style--> | |
2746 <Style TargetType="ToolTip" x:Key="DefaultToolTipStyle"> | |
2747 <Setter Property="FontSize" Value="{StaticResource ControlContentFontSize}"/> | |
2748 <Setter Property="FontWeight" Value="Bold"/> | |
2749 <Setter Property="Background" Value="{StaticResource WhiteBrush}"/> | |
2750 <Setter Property="Padding" Value="1"/> | |
2751 <Setter Property="BorderThickness" Value="1"/> | |
2752 <Setter Property="BorderBrush" Value="{StaticResource ItemSelectedBrush}"/> | |
2753 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
2754 <Setter Property="Template"> | |
2755 <Setter.Value> | |
2756 <ControlTemplate TargetType="ToolTip"> | |
2757 <Border x:Name="Root" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Effect="{StaticResource DropShadowBrush}" Opacity="0"> | |
2758 <VisualStateManager.VisualStateGroups> | |
2759 <VisualStateGroup x:Name="OpenStates"> | |
2760 <VisualStateGroup.Transitions> | |
2761 <VisualTransition From="Open" GeneratedDuration="0:0:0.3" To="Closed"/> | |
2762 </VisualStateGroup.Transitions> | |
2763 <VisualState x:Name="Closed"> | |
2764 <Storyboard> | |
2765 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Root"> | |
2766 <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/> | |
2767 </DoubleAnimationUsingKeyFrames> | |
2768 </Storyboard> | |
2769 </VisualState> | |
2770 <VisualState x:Name="Open"> | |
2771 <Storyboard> | |
2772 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Root"> | |
2773 <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/> | |
2774 </DoubleAnimationUsingKeyFrames> | |
2775 </Storyboard> | |
2776 </VisualState> | |
2777 </VisualStateGroup> | |
2778 </VisualStateManager.VisualStateGroups> | |
2779 <Border Padding="{TemplateBinding Padding}"> | |
2780 <Border.Resources> | |
2781 <Storyboard x:Key="Visible State"/> | |
2782 <Storyboard x:Key="Normal State"/> | |
2783 </Border.Resources> | |
2784 <ContentPresenter Cursor="{TemplateBinding Cursor}" | |
2785 Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" | |
2786 Margin="{TemplateBinding Padding}" | |
2787 Opacity="0.7" | |
2788 VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
2789 RenderOptions.ClearTypeHint="Enabled"/> | |
2790 </Border> | |
2791 </Border> | |
2792 </ControlTemplate> | |
2793 </Setter.Value> | |
2794 </Setter> | |
2795 </Style> | |
2796 | |
2797 <!-- ContextMenu Style--> | |
2798 <Style TargetType="ContextMenu" x:Key="DefaultContextMenuStyle"> | |
2799 <Setter Property="Background" Value="{StaticResource WhiteBrush}"/> | |
2800 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
2801 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
2802 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
2803 <Setter Property="BorderThickness" Value="1"/> | |
2804 <Setter Property="BorderBrush" Value="{StaticResource ThumbBrush}"/> | |
2805 <Setter Property="Padding" Value="4,4,4,4"/> | |
2806 <Setter Property="Grid.IsSharedSizeScope" Value="True" /> | |
2807 <Setter Property="Template"> | |
2808 <Setter.Value> | |
2809 <ControlTemplate TargetType="ContextMenu"> | |
2810 <Grid> | |
2811 <Border CornerRadius="0" | |
2812 BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" | |
2813 Background="{TemplateBinding Background}" | |
2814 Effect="{StaticResource DropShadowBrush}"> | |
2815 </Border> | |
2816 | |
2817 <ItemsPresenter Margin="{TemplateBinding Padding}" KeyboardNavigation.DirectionalNavigation="Cycle" | |
2818 ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled" /> | |
2819 </Grid> | |
2820 </ControlTemplate> | |
2821 </Setter.Value> | |
2822 </Setter> | |
2823 </Style> | |
2824 | |
2825 <!--Separator Style--> | |
2826 <Style TargetType="Separator" x:Key="DefaultSeparatorStyle"> | |
2827 <Setter Property="BorderBrush" Value="LightGray"/> | |
2828 <Setter Property="IsTabStop" Value="False"/> | |
2829 <Setter Property="Margin" Value="4,4,4,4" /> | |
2830 <Setter Property="Height" Value="1"/> | |
2831 <Setter Property="Template"> | |
2832 <Setter.Value> | |
2833 <ControlTemplate TargetType="Separator"> | |
2834 <Border | |
2835 BorderBrush="{TemplateBinding BorderBrush}" | |
2836 BorderThickness="1" /> | |
2837 </ControlTemplate> | |
2838 </Setter.Value> | |
2839 </Setter> | |
2840 </Style> | |
2841 | |
2842 <!--MenuItem Styles & Templates--> | |
2843 <ControlTemplate x:Key="{x:Static MenuItem.TopLevelHeaderTemplateKey}" TargetType="MenuItem"> | |
2844 <Grid> | |
2845 <VisualStateManager.VisualStateGroups> | |
2846 <VisualStateGroup x:Name="CommonStates"> | |
2847 <VisualState x:Name="Normal"/> | |
2848 <VisualState x:Name="Disabled"> | |
2849 <Storyboard> | |
2850 <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentPresenter"/> | |
2851 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="IconPresenter"> | |
2852 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
2853 </DoubleAnimationUsingKeyFrames> | |
2854 </Storyboard> | |
2855 </VisualState> | |
2856 </VisualStateGroup> | |
2857 <VisualStateGroup x:Name="FocusStates"> | |
2858 <VisualState x:Name="Unfocused"/> | |
2859 <VisualState x:Name="Focused"> | |
2860 <Storyboard> | |
2861 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
2862 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.695"/> | |
2863 </DoubleAnimationUsingKeyFrames> | |
2864 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="IconPresenter"> | |
2865 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
2866 </DoubleAnimationUsingKeyFrames> | |
2867 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> | |
2868 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
2869 </DoubleAnimationUsingKeyFrames> | |
2870 </Storyboard> | |
2871 </VisualState> | |
2872 </VisualStateGroup> | |
2873 </VisualStateManager.VisualStateGroups> | |
2874 | |
2875 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
2876 | |
2877 <Grid Margin="{TemplateBinding Padding}"> | |
2878 <Grid.ColumnDefinitions> | |
2879 <ColumnDefinition | |
2880 Width="Auto"/> | |
2881 <ColumnDefinition Width="2"/> | |
2882 <ColumnDefinition Width="*"/> | |
2883 <ColumnDefinition Width="17"/> | |
2884 </Grid.ColumnDefinitions> | |
2885 | |
2886 <ContentPresenter | |
2887 x:Name="IconPresenter" | |
2888 Grid.Column="0" | |
2889 Content="{TemplateBinding Icon}" | |
2890 Margin="1" | |
2891 Opacity="0.7" | |
2892 VerticalAlignment="Center" /> | |
2893 | |
2894 <ContentPresenter | |
2895 x:Name="ContentPresenter" | |
2896 MinWidth="120" | |
2897 Opacity="0.7" | |
2898 RecognizesAccessKey="True" | |
2899 Content="{TemplateBinding Header}" | |
2900 ContentTemplate="{TemplateBinding HeaderTemplate}" | |
2901 VerticalAlignment="Center" | |
2902 Grid.Column="2" | |
2903 RenderOptions.ClearTypeHint="Enabled"/> | |
2904 | |
2905 <Path Grid.Column="2" | |
2906 Data="M 0 0 L 0 7 L 4 3.5 Z" | |
2907 HorizontalAlignment="Right" VerticalAlignment="Center" | |
2908 Height="Auto" Width="Auto" | |
2909 Fill="{StaticResource BlackColorBrush}" | |
2910 Stroke="Black" StrokeLineJoin="Miter" | |
2911 UseLayoutRounding="False"> | |
2912 </Path> | |
2913 | |
2914 <Popup x:Name="Popup" | |
2915 Placement="Right" | |
2916 IsOpen="{TemplateBinding IsSubmenuOpen}" | |
2917 AllowsTransparency="True" | |
2918 Focusable="False" | |
2919 PopupAnimation="Fade"> | |
2920 <ScrollViewer CanContentScroll="False" | |
2921 HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled"> | |
2922 <ItemsPresenter KeyboardNavigation.DirectionalNavigation="Cycle" /> | |
2923 </ScrollViewer> | |
2924 </Popup> | |
2925 </Grid> | |
2926 </Grid> | |
2927 <ControlTemplate.Triggers> | |
2928 <Trigger Property="IsSuspendingPopupAnimation" Value="true"> | |
2929 <Setter TargetName="Popup" Property="PopupAnimation" Value="None" /> | |
2930 </Trigger> | |
2931 <Trigger Property="Icon" Value="{x:Null}"> | |
2932 <Setter TargetName="IconPresenter" Property="Visibility" Value="Hidden"/> | |
2933 </Trigger> | |
2934 <Trigger Property="IsEnabled" Value="false"> | |
2935 <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/> | |
2936 <Setter TargetName="ContentPresenter" Property="Opacity" Value="0.5" /> | |
2937 <Setter TargetName="IconPresenter" Property="Opacity" Value="0.3" /> | |
2938 </Trigger> | |
2939 <Trigger Property="IsHighlighted" Value="True"> | |
2940 <Setter TargetName="MouseOverRectangle" Property="Opacity" Value="0.695" /> | |
2941 <Setter TargetName="IconPresenter" Property="Opacity" Value="1" /> | |
2942 <Setter TargetName="ContentPresenter" Property="Opacity" Value="1" /> | |
2943 </Trigger> | |
2944 </ControlTemplate.Triggers> | |
2945 </ControlTemplate> | |
2946 | |
2947 <ControlTemplate x:Key="{x:Static MenuItem.TopLevelItemTemplateKey}" TargetType="MenuItem"> | |
2948 <Grid> | |
2949 <VisualStateManager.VisualStateGroups> | |
2950 <VisualStateGroup x:Name="CommonStates"> | |
2951 <VisualState x:Name="Normal"/> | |
2952 <VisualState x:Name="Disabled"> | |
2953 <Storyboard> | |
2954 <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentPresenter"/> | |
2955 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="IconPresenter"> | |
2956 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
2957 </DoubleAnimationUsingKeyFrames> | |
2958 </Storyboard> | |
2959 </VisualState> | |
2960 </VisualStateGroup> | |
2961 <VisualStateGroup x:Name="FocusStates"> | |
2962 <VisualState x:Name="Unfocused"/> | |
2963 <VisualState x:Name="Focused"> | |
2964 <Storyboard> | |
2965 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
2966 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.695"/> | |
2967 </DoubleAnimationUsingKeyFrames> | |
2968 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="IconPresenter"> | |
2969 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
2970 </DoubleAnimationUsingKeyFrames> | |
2971 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> | |
2972 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
2973 </DoubleAnimationUsingKeyFrames> | |
2974 </Storyboard> | |
2975 </VisualState> | |
2976 </VisualStateGroup> | |
2977 </VisualStateManager.VisualStateGroups> | |
2978 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
2979 <Grid Margin="{TemplateBinding Padding}"> | |
2980 <Grid.ColumnDefinitions> | |
2981 <ColumnDefinition | |
2982 Width="Auto"/> | |
2983 <ColumnDefinition Width="2"/> | |
2984 <ColumnDefinition Width="*"/> | |
2985 <ColumnDefinition Width="17"/> | |
2986 </Grid.ColumnDefinitions> | |
2987 <ContentPresenter | |
2988 x:Name="IconPresenter" | |
2989 Grid.Column="0" | |
2990 Content="{TemplateBinding Icon}" | |
2991 Margin="1" | |
2992 Opacity="0.7" | |
2993 VerticalAlignment="Center"/> | |
2994 <ContentPresenter | |
2995 x:Name="ContentPresenter" | |
2996 MinWidth="120" | |
2997 Opacity="0.7" | |
2998 RecognizesAccessKey="True" | |
2999 Content="{TemplateBinding Header}" | |
3000 ContentTemplate="{TemplateBinding HeaderTemplate}" | |
3001 Grid.Column="2" | |
3002 RenderOptions.ClearTypeHint="Enabled"/> | |
3003 </Grid> | |
3004 </Grid> | |
3005 <ControlTemplate.Triggers> | |
3006 <Trigger Property="Icon" Value="{x:Null}"> | |
3007 <Setter TargetName="IconPresenter" Property="Visibility" Value="Hidden"/> | |
3008 </Trigger> | |
3009 <Trigger Property="IsEnabled" Value="false"> | |
3010 <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/> | |
3011 <Setter TargetName="ContentPresenter" Property="Opacity" Value="0.5" /> | |
3012 <Setter TargetName="IconPresenter" Property="Opacity" Value="0.3" /> | |
3013 </Trigger> | |
3014 <Trigger Property="IsHighlighted" Value="True"> | |
3015 <Setter TargetName="MouseOverRectangle" Property="Opacity" Value="0.695" /> | |
3016 <Setter TargetName="IconPresenter" Property="Opacity" Value="1" /> | |
3017 <Setter TargetName="ContentPresenter" Property="Opacity" Value="1" /> | |
3018 </Trigger> | |
3019 </ControlTemplate.Triggers> | |
3020 </ControlTemplate> | |
3021 | |
3022 <Style TargetType="MenuItem" x:Key="DefaultMenuItemStyle"> | |
3023 <Setter Property="Background" Value="Transparent"/> | |
3024 <Setter Property="BorderBrush" Value="Transparent"/> | |
3025 <Setter Property="BorderThickness" Value="0"/> | |
3026 <Setter Property="Padding" Value="8,3,10,3"/> | |
3027 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3028 | |
3029 <Style.Triggers> | |
3030 <Trigger Property="Role" Value="TopLevelHeader"> | |
3031 <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelHeaderTemplateKey}}"/> | |
3032 </Trigger> | |
3033 <Trigger Property="Role" Value="TopLevelItem"> | |
3034 <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelItemTemplateKey}}"/> | |
3035 </Trigger> | |
3036 <Trigger Property="Role" Value="SubmenuHeader"> | |
3037 <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelHeaderTemplateKey}}"/> | |
3038 </Trigger> | |
3039 <Trigger Property="Role" Value="SubmenuItem"> | |
3040 <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelItemTemplateKey}}"/> | |
3041 </Trigger> | |
3042 </Style.Triggers> | |
3043 </Style> | |
3044 | |
3045 <!--DataPagerPageButtonImageButton Style--> | |
3046 <Style x:Key="ImageButton" TargetType="Button"> | |
3047 <Setter Property="Background" Value="{StaticResource GrayBrush3}"/> | |
3048 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3049 <Setter Property="Padding" Value="3"/> | |
3050 <Setter Property="BorderThickness" Value="1"/> | |
3051 <Setter Property="Template"> | |
3052 <Setter.Value> | |
3053 <ControlTemplate TargetType="Button"> | |
3054 <Grid> | |
3055 <VisualStateManager.VisualStateGroups> | |
3056 <VisualStateGroup x:Name="CommonStates"> | |
3057 <VisualStateGroup.Transitions> | |
3058 <VisualTransition From="Normal" GeneratedDuration="0:0:0.3" To="MouseOver"/> | |
3059 <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3" To="Normal"/> | |
3060 </VisualStateGroup.Transitions> | |
3061 <VisualState x:Name="Normal"/> | |
3062 <VisualState x:Name="MouseOver"> | |
3063 <Storyboard> | |
3064 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse"> | |
3065 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
3066 </DoubleAnimationUsingKeyFrames> | |
3067 </Storyboard> | |
3068 </VisualState> | |
3069 <VisualState x:Name="Pressed"> | |
3070 <Storyboard> | |
3071 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
3072 <EasingDoubleKeyFrame KeyTime="0" Value="0.4"/> | |
3073 </DoubleAnimationUsingKeyFrames> | |
3074 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse"> | |
3075 <EasingDoubleKeyFrame KeyTime="0" Value="0.4"/> | |
3076 </DoubleAnimationUsingKeyFrames> | |
3077 </Storyboard> | |
3078 </VisualState> | |
3079 <VisualState x:Name="Disabled"> | |
3080 <Storyboard> | |
3081 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter"> | |
3082 <EasingDoubleKeyFrame KeyTime="0" Value="0.2"/> | |
3083 </DoubleAnimationUsingKeyFrames> | |
3084 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse"> | |
3085 <EasingDoubleKeyFrame KeyTime="0" Value="0.2"/> | |
3086 </DoubleAnimationUsingKeyFrames> | |
3087 </Storyboard> | |
3088 </VisualState> | |
3089 </VisualStateGroup> | |
3090 <VisualStateGroup x:Name="FocusStates"> | |
3091 <VisualState x:Name="Focused"> | |
3092 <Storyboard/> | |
3093 </VisualState> | |
3094 <VisualState x:Name="Unfocused"/> | |
3095 </VisualStateGroup> | |
3096 </VisualStateManager.VisualStateGroups> | |
3097 <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
3098 RenderOptions.ClearTypeHint="Enabled"/> | |
3099 <Ellipse x:Name="ellipse" Stroke="{StaticResource CheckBoxMouseOverBrush}" Opacity="0.3" Fill="Transparent"/> | |
3100 </Grid> | |
3101 </ControlTemplate> | |
3102 </Setter.Value> | |
3103 </Setter> | |
3104 </Style> | |
3105 | |
3106 <!--CalendarItem Style--> | |
3107 <Style TargetType="CalendarItem" x:Key="DefaultCalendarItemStyle"> | |
3108 <Setter Property="Template"> | |
3109 <Setter.Value> | |
3110 <ControlTemplate TargetType="CalendarItem"> | |
3111 <ControlTemplate.Resources> | |
3112 <DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}"> | |
3113 <TextBlock Foreground="{StaticResource TextBoxMouseOverBorderBrush}" | |
3114 FontWeight="Bold" FontSize="12" | |
3115 Margin="0,4,0,4" Text="{Binding}" | |
3116 HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
3117 </DataTemplate> | |
3118 </ControlTemplate.Resources> | |
3119 <Grid x:Name="PART_Root"> | |
3120 <Grid.Resources> | |
3121 <SolidColorBrush x:Key="DisabledBrush" Color="{StaticResource TransparentLightLightColor}" PresentationOptions:Freeze="True"/> | |
3122 </Grid.Resources> | |
3123 <VisualStateManager.VisualStateGroups> | |
3124 <VisualStateGroup x:Name="CommonStates"> | |
3125 <VisualState x:Name="Normal"/> | |
3126 <VisualState x:Name="Disabled"> | |
3127 <Storyboard> | |
3128 <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_DisabledVisual"/> | |
3129 </Storyboard> | |
3130 </VisualState> | |
3131 </VisualStateGroup> | |
3132 </VisualStateManager.VisualStateGroups> | |
3133 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="0"> | |
3134 <Grid Margin="2"> | |
3135 <Grid.Resources> | |
3136 <ControlTemplate x:Key="HeaderButtonTemplate" TargetType="Button"> | |
3137 <Grid Cursor="Hand"> | |
3138 <VisualStateManager.VisualStateGroups> | |
3139 <VisualStateGroup x:Name="CommonStates"> | |
3140 <VisualState x:Name="Normal"/> | |
3141 <VisualState x:Name="MouseOver"> | |
3142 <Storyboard> | |
3143 <ColorAnimation Duration="0" To="{StaticResource AccentColorLightBlue}" Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="Content"/> | |
3144 </Storyboard> | |
3145 </VisualState> | |
3146 <VisualState x:Name="Disabled"> | |
3147 <Storyboard> | |
3148 <DoubleAnimation Duration="0" To=".5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content"/> | |
3149 </Storyboard> | |
3150 </VisualState> | |
3151 </VisualStateGroup> | |
3152 </VisualStateManager.VisualStateGroups> | |
3153 <ContentControl x:Name="Content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{StaticResource GrayBrush3}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" Margin="1,5,1,9" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> | |
3154 </Grid> | |
3155 </ControlTemplate> | |
3156 <ControlTemplate x:Key="PreviousButtonTemplate" TargetType="Button"> | |
3157 <Grid Cursor="Hand"> | |
3158 <VisualStateManager.VisualStateGroups> | |
3159 <VisualStateGroup x:Name="CommonStates"> | |
3160 <VisualState x:Name="Normal"/> | |
3161 <VisualState x:Name="MouseOver"> | |
3162 <Storyboard> | |
3163 <ColorAnimation Duration="0" To="{StaticResource AccentColorLightBlue}" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="IconPath"/> | |
3164 </Storyboard> | |
3165 </VisualState> | |
3166 <VisualState x:Name="Disabled"> | |
3167 <Storyboard> | |
3168 <DoubleAnimation Duration="0" To=".5" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Opacity)" Storyboard.TargetName="IconPath"/> | |
3169 </Storyboard> | |
3170 </VisualState> | |
3171 </VisualStateGroup> | |
3172 </VisualStateManager.VisualStateGroups> | |
3173 <Rectangle Fill="{StaticResource TransparentWhiteBrush}" Opacity="1" Stretch="Fill"/> | |
3174 <Grid> | |
3175 <Path x:Name="IconPath" Data="M288.75,232.25 L288.75,240.625 L283,236.625 z" Fill="{StaticResource GrayBrush3}" HorizontalAlignment="Left" Height="10" Margin="14,-6,0,0" Stretch="Fill" VerticalAlignment="Center" Width="6"/> | |
3176 </Grid> | |
3177 </Grid> | |
3178 </ControlTemplate> | |
3179 <ControlTemplate x:Key="NextButtonTemplate" TargetType="Button"> | |
3180 <Grid Cursor="Hand"> | |
3181 <VisualStateManager.VisualStateGroups> | |
3182 <VisualStateGroup x:Name="CommonStates"> | |
3183 <VisualState x:Name="Normal"/> | |
3184 <VisualState x:Name="MouseOver"> | |
3185 <Storyboard> | |
3186 <ColorAnimation Duration="0" To="{StaticResource AccentColorLightBlue}" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="IconPath"/> | |
3187 </Storyboard> | |
3188 </VisualState> | |
3189 <VisualState x:Name="Disabled"> | |
3190 <Storyboard> | |
3191 <DoubleAnimation Duration="0" To=".5" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Opacity)" Storyboard.TargetName="IconPath"/> | |
3192 </Storyboard> | |
3193 </VisualState> | |
3194 </VisualStateGroup> | |
3195 </VisualStateManager.VisualStateGroups> | |
3196 <Rectangle Fill="{StaticResource TransparentWhiteBrush}" Opacity="1" Stretch="Fill"/> | |
3197 <Grid> | |
3198 <Path x:Name="IconPath" Data="M282.875,231.875 L282.875,240.375 L288.625,236 z" Fill="{StaticResource GrayBrush3}" HorizontalAlignment="Right" Height="10" Margin="0,-6,14,0" Stretch="Fill" VerticalAlignment="Center" Width="6"/> | |
3199 </Grid> | |
3200 </Grid> | |
3201 </ControlTemplate> | |
3202 </Grid.Resources> | |
3203 <Grid.ColumnDefinitions> | |
3204 <ColumnDefinition Width="Auto"/> | |
3205 <ColumnDefinition Width="Auto"/> | |
3206 <ColumnDefinition Width="Auto"/> | |
3207 </Grid.ColumnDefinitions> | |
3208 <Grid.RowDefinitions> | |
3209 <RowDefinition Height="Auto"/> | |
3210 <RowDefinition Height="*"/> | |
3211 </Grid.RowDefinitions> | |
3212 <Button x:Name="PART_PreviousButton" Grid.Row="0" Grid.Column="0" Cursor="Hand" HorizontalAlignment="Left" Height="24" Width="24" Margin="13,0,0,0" Style="{StaticResource ImageButton}"> | |
3213 <Grid> | |
3214 <Path x:Name="PreviousIconPath" Data="M288.75,232.25 L288.75,240.625 L283,236.625 z" Fill="{StaticResource CheckBoxMouseOverBrush}" HorizontalAlignment="Left" Height="10" Stretch="Fill" VerticalAlignment="Center" Width="6" Opacity="0.7"/> | |
3215 </Grid> | |
3216 </Button> | |
3217 <Button x:Name="PART_HeaderButton" Grid.Row="0" Grid.Column="1" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0" Foreground="{StaticResource HighlightBrush}" FontWeight="Bold" FontSize="13.333" HorizontalAlignment="Center" Cursor="Hand" Height="30" VerticalAlignment="Center" Width="Auto"/> | |
3218 <Button x:Name="PART_NextButton" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right" Height="24" Width="24" Cursor="Hand" Margin="0,0,13,0" Style="{StaticResource ImageButton}"> | |
3219 <Path x:Name="NextIconPath" Data="M282.875,231.875 L282.875,240.375 L288.625,236 z" Fill="{StaticResource CheckBoxMouseOverBrush}" HorizontalAlignment="Right" Height="10" Stretch="Fill" VerticalAlignment="Center" Width="6" Opacity="0.7"/> | |
3220 </Button> | |
3221 <Grid x:Name="PART_MonthView" Grid.ColumnSpan="3" Margin="15,7,15,6" Grid.Row="1" Visibility="Visible" HorizontalAlignment="Center"> | |
3222 <Grid.ColumnDefinitions> | |
3223 <ColumnDefinition Width="Auto"/> | |
3224 <ColumnDefinition Width="Auto"/> | |
3225 <ColumnDefinition Width="Auto"/> | |
3226 <ColumnDefinition Width="Auto"/> | |
3227 <ColumnDefinition Width="Auto"/> | |
3228 <ColumnDefinition Width="Auto"/> | |
3229 <ColumnDefinition Width="Auto"/> | |
3230 </Grid.ColumnDefinitions> | |
3231 <Grid.RowDefinitions> | |
3232 <RowDefinition Height="Auto"/> | |
3233 <RowDefinition Height="Auto"/> | |
3234 <RowDefinition Height="Auto"/> | |
3235 <RowDefinition Height="Auto"/> | |
3236 <RowDefinition Height="Auto"/> | |
3237 <RowDefinition Height="Auto"/> | |
3238 <RowDefinition Height="Auto"/> | |
3239 </Grid.RowDefinitions> | |
3240 </Grid> | |
3241 <Grid x:Name="PART_YearView" Grid.ColumnSpan="3" Margin="6,7,7,6" Grid.Row="1" Visibility="Hidden"> | |
3242 <Grid.ColumnDefinitions> | |
3243 <ColumnDefinition Width="Auto"/> | |
3244 <ColumnDefinition Width="Auto"/> | |
3245 <ColumnDefinition Width="Auto"/> | |
3246 <ColumnDefinition Width="Auto"/> | |
3247 </Grid.ColumnDefinitions> | |
3248 <Grid.RowDefinitions> | |
3249 <RowDefinition Height="Auto"/> | |
3250 <RowDefinition Height="Auto"/> | |
3251 <RowDefinition Height="Auto"/> | |
3252 </Grid.RowDefinitions> | |
3253 </Grid> | |
3254 </Grid> | |
3255 </Border> | |
3256 <Rectangle x:Name="PART_DisabledVisual" Fill="{StaticResource DisabledBrush}" Margin="0,2,0,2" Opacity="0" Stretch="Fill" Stroke="{StaticResource DisabledBrush}" StrokeThickness="1" Visibility="Collapsed"/> | |
3257 </Grid> | |
3258 <ControlTemplate.Triggers> | |
3259 <Trigger Property="IsEnabled" Value="False"> | |
3260 <Setter Property="Visibility" TargetName="PART_DisabledVisual" Value="Visible"/> | |
3261 </Trigger> | |
3262 <DataTrigger Value="Year"> | |
3263 <DataTrigger.Binding> | |
3264 <Binding Path="DisplayMode"> | |
3265 <Binding.RelativeSource> | |
3266 <RelativeSource Mode="FindAncestor" AncestorType="{x:Type Calendar}" /> | |
3267 </Binding.RelativeSource> | |
3268 </Binding> | |
3269 </DataTrigger.Binding> | |
3270 <Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" /> | |
3271 <Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" /> | |
3272 </DataTrigger> | |
3273 <DataTrigger Value="Decade"> | |
3274 <DataTrigger.Binding> | |
3275 <Binding Path="DisplayMode"> | |
3276 <Binding.RelativeSource> | |
3277 <RelativeSource Mode="FindAncestor" AncestorType="{x:Type Calendar}" /> | |
3278 </Binding.RelativeSource> | |
3279 </Binding> | |
3280 </DataTrigger.Binding> | |
3281 <Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" /> | |
3282 <Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" /> | |
3283 </DataTrigger> | |
3284 </ControlTemplate.Triggers> | |
3285 </ControlTemplate> | |
3286 </Setter.Value> | |
3287 </Setter> | |
3288 </Style> | |
3289 | |
3290 <!--Calendar Style--> | |
3291 <Style x:Key="DefaultCalendarStyle" TargetType="Calendar"> | |
3292 <Setter Property="IsTabStop" Value="False"/> | |
3293 <Setter Property="Background" Value="{StaticResource WhiteBrush}"/> | |
3294 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3295 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
3296 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
3297 <Setter Property="BorderThickness" Value="1"/> | |
3298 <Setter Property="Padding" Value="1"/> | |
3299 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
3300 <Setter Property="Template"> | |
3301 <Setter.Value> | |
3302 <ControlTemplate TargetType="Calendar"> | |
3303 <StackPanel x:Name="PART_Root" HorizontalAlignment="Center"> | |
3304 <CalendarItem x:Name="PART_CalendarItem" | |
3305 Background="{TemplateBinding Background}" | |
3306 BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" | |
3307 FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" | |
3308 Margin="0" Padding="0"/> | |
3309 </StackPanel> | |
3310 </ControlTemplate> | |
3311 </Setter.Value> | |
3312 </Setter> | |
3313 </Style> | |
3314 | |
3315 <!--CalendarDayButton Style--> | |
3316 <Style TargetType="CalendarDayButton" x:Key="DefaultCalendarDayButtonStyle"> | |
3317 <Setter Property="Background" Value="{x:Null}"/> | |
3318 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3319 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
3320 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
3321 <Setter Property="FontWeight" Value="Bold"/> | |
3322 <Setter Property="HorizontalContentAlignment" Value="Center"/> | |
3323 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
3324 <Setter Property="MinWidth" Value="8"/> | |
3325 <Setter Property="MinHeight" Value="8"/> | |
3326 <Setter Property="Template"> | |
3327 <Setter.Value> | |
3328 <ControlTemplate TargetType="CalendarDayButton"> | |
3329 <Grid> | |
3330 <VisualStateManager.VisualStateGroups> | |
3331 <VisualStateGroup x:Name="CommonStates"> | |
3332 <VisualStateGroup.Transitions> | |
3333 <VisualTransition GeneratedDuration="0:0:0.1"/> | |
3334 </VisualStateGroup.Transitions> | |
3335 <VisualState x:Name="Normal"/> | |
3336 <VisualState x:Name="MouseOver"> | |
3337 <Storyboard> | |
3338 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
3339 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.695"/> | |
3340 </DoubleAnimationUsingKeyFrames> | |
3341 </Storyboard> | |
3342 </VisualState> | |
3343 <VisualState x:Name="Pressed"> | |
3344 <Storyboard> | |
3345 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
3346 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
3347 </DoubleAnimationUsingKeyFrames> | |
3348 </Storyboard> | |
3349 </VisualState> | |
3350 <VisualState x:Name="Disabled"> | |
3351 <Storyboard> | |
3352 | |
3353 <DoubleAnimation Duration="0" To=".35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content"/> | |
3354 </Storyboard> | |
3355 </VisualState> | |
3356 </VisualStateGroup> | |
3357 <VisualStateGroup x:Name="SelectionStates"> | |
3358 <VisualStateGroup.Transitions> | |
3359 <VisualTransition GeneratedDuration="0"/> | |
3360 </VisualStateGroup.Transitions> | |
3361 <VisualState x:Name="Unselected"/> | |
3362 <VisualState x:Name="Selected"> | |
3363 <Storyboard> | |
3364 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
3365 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
3366 </DoubleAnimationUsingKeyFrames> | |
3367 </Storyboard> | |
3368 </VisualState> | |
3369 </VisualStateGroup> | |
3370 <VisualStateGroup x:Name="CalendarButtonFocusStates"> | |
3371 <VisualStateGroup.Transitions> | |
3372 <VisualTransition GeneratedDuration="0"/> | |
3373 </VisualStateGroup.Transitions> | |
3374 <VisualState x:Name="CalendarButtonFocused"> | |
3375 <Storyboard> | |
3376 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual"> | |
3377 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/> | |
3378 </ObjectAnimationUsingKeyFrames> | |
3379 </Storyboard> | |
3380 </VisualState> | |
3381 <VisualState x:Name="CalendarButtonUnfocused"> | |
3382 <Storyboard> | |
3383 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual"> | |
3384 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/> | |
3385 </ObjectAnimationUsingKeyFrames> | |
3386 </Storyboard> | |
3387 </VisualState> | |
3388 </VisualStateGroup> | |
3389 <VisualStateGroup x:Name="ActiveStates"> | |
3390 <VisualStateGroup.Transitions> | |
3391 <VisualTransition GeneratedDuration="0"/> | |
3392 </VisualStateGroup.Transitions> | |
3393 <VisualState x:Name="Active"/> | |
3394 <VisualState x:Name="Inactive"> | |
3395 <Storyboard> | |
3396 <ColorAnimation Duration="0" To="{StaticResource Gray3}" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="Content"/> | |
3397 <ColorAnimation Duration="0" To="{StaticResource Gray3}" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="Content"/> | |
3398 </Storyboard> | |
3399 </VisualState> | |
3400 </VisualStateGroup> | |
3401 <VisualStateGroup x:Name="DayStates"> | |
3402 <VisualStateGroup.Transitions> | |
3403 <VisualTransition GeneratedDuration="0"/> | |
3404 </VisualStateGroup.Transitions> | |
3405 <VisualState x:Name="RegularDay"/> | |
3406 <VisualState x:Name="Today"> | |
3407 <Storyboard> | |
3408 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TodayBackground"/> | |
3409 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="Content"/> | |
3410 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="Content"/> | |
3411 </Storyboard> | |
3412 </VisualState> | |
3413 </VisualStateGroup> | |
3414 <VisualStateGroup x:Name="BlackoutDayStates"> | |
3415 <VisualStateGroup.Transitions> | |
3416 <VisualTransition GeneratedDuration="0"/> | |
3417 </VisualStateGroup.Transitions> | |
3418 <VisualState x:Name="NormalDay"/> | |
3419 <VisualState x:Name="BlackoutDay"> | |
3420 <Storyboard> | |
3421 <DoubleAnimation Duration="0" To=".2" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BlackoutVisual"/> | |
3422 </Storyboard> | |
3423 </VisualState> | |
3424 </VisualStateGroup> | |
3425 </VisualStateManager.VisualStateGroups> | |
3426 <Rectangle x:Name="TodayBackground" Opacity="0" > | |
3427 <Rectangle.Fill> | |
3428 <SolidColorBrush Color="{StaticResource Gray2}" PresentationOptions:Freeze="True"/> | |
3429 </Rectangle.Fill> | |
3430 </Rectangle> | |
3431 <Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
3432 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
3433 <Border x:Name="PressedBorder" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0"> | |
3434 <Border.Background> | |
3435 <SolidColorBrush Color="{StaticResource Gray5}" PresentationOptions:Freeze="True"/> | |
3436 </Border.Background> | |
3437 </Border> | |
3438 <ContentControl x:Name="Content" | |
3439 FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" Margin="5,1,5,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> | |
3440 <ContentControl.Foreground> | |
3441 <LinearGradientBrush> | |
3442 <GradientStop Color="{StaticResource WhiteColor}" Offset="0"/> | |
3443 <GradientStop Color="{StaticResource WhiteColor}" Offset="0"/> | |
3444 <GradientStop Color="{StaticResource Gray3}" Offset="0"/> | |
3445 <GradientStop Color="{StaticResource Gray3}" Offset="1"/> | |
3446 </LinearGradientBrush> | |
3447 </ContentControl.Foreground> | |
3448 </ContentControl> | |
3449 <Path x:Name="BlackoutVisual" Data="M8.1772461,11.029181 L10.433105,11.029181 L11.700684,12.801641 L12.973633,11.029181 L15.191895,11.029181 L12.844727,13.999395 L15.21875,17.060919 L12.962891,17.060919 L11.673828,15.256231 L10.352539,17.060919 L8.1396484,17.060919 L10.519043,14.042364 z" Fill="{StaticResource BlackColorBrush}" HorizontalAlignment="Stretch" Margin="3" Opacity="0" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Stretch"/> | |
3450 <Rectangle x:Name="FocusVisual" IsHitTestVisible="false" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" Visibility="Collapsed"/> | |
3451 </Grid> | |
3452 </ControlTemplate> | |
3453 </Setter.Value> | |
3454 </Setter> | |
3455 </Style> | |
3456 | |
3457 <!--CalendarButton Style--> | |
3458 <Style TargetType="CalendarButton" x:Key="DefaultCalendarButtonStyle"> | |
3459 <Setter Property="Background" Value="{x:Null}"/> | |
3460 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3461 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
3462 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
3463 <Setter Property="HorizontalContentAlignment" Value="Center"/> | |
3464 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
3465 <Setter Property="MinWidth" Value="40"/> | |
3466 <Setter Property="MinHeight" Value="42"/> | |
3467 <Setter Property="Template"> | |
3468 <Setter.Value> | |
3469 <ControlTemplate TargetType="CalendarButton"> | |
3470 <Grid> | |
3471 <VisualStateManager.VisualStateGroups> | |
3472 <VisualStateGroup x:Name="CommonStates"> | |
3473 <VisualStateGroup.Transitions> | |
3474 <VisualTransition GeneratedDuration="0:0:0.1"/> | |
3475 </VisualStateGroup.Transitions> | |
3476 <VisualState x:Name="Normal"/> | |
3477 <VisualState x:Name="MouseOver"> | |
3478 <Storyboard> | |
3479 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
3480 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.695"/> | |
3481 </DoubleAnimationUsingKeyFrames> | |
3482 </Storyboard> | |
3483 </VisualState> | |
3484 <VisualState x:Name="Pressed"> | |
3485 <Storyboard> | |
3486 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
3487 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
3488 </DoubleAnimationUsingKeyFrames> | |
3489 </Storyboard> | |
3490 </VisualState> | |
3491 </VisualStateGroup> | |
3492 <VisualStateGroup x:Name="SelectionStates"> | |
3493 <VisualStateGroup.Transitions> | |
3494 <VisualTransition GeneratedDuration="0"/> | |
3495 </VisualStateGroup.Transitions> | |
3496 <VisualState x:Name="Unselected"/> | |
3497 <VisualState x:Name="Selected"> | |
3498 <Storyboard> | |
3499 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
3500 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
3501 </DoubleAnimationUsingKeyFrames> | |
3502 </Storyboard> | |
3503 </VisualState> | |
3504 </VisualStateGroup> | |
3505 <VisualStateGroup x:Name="ActiveStates"> | |
3506 <VisualStateGroup.Transitions> | |
3507 <VisualTransition GeneratedDuration="0"/> | |
3508 </VisualStateGroup.Transitions> | |
3509 <VisualState x:Name="Active"/> | |
3510 <VisualState x:Name="Inactive"> | |
3511 <Storyboard> | |
3512 <ColorAnimation Duration="0" To="{StaticResource Gray3}" Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="Content"/> | |
3513 </Storyboard> | |
3514 </VisualState> | |
3515 </VisualStateGroup> | |
3516 <VisualStateGroup x:Name="CalendarButtonFocusStates"> | |
3517 <VisualStateGroup.Transitions> | |
3518 <VisualTransition GeneratedDuration="0"/> | |
3519 </VisualStateGroup.Transitions> | |
3520 <VisualState x:Name="CalendarButtonFocused"> | |
3521 <Storyboard> | |
3522 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual"> | |
3523 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/> | |
3524 </ObjectAnimationUsingKeyFrames> | |
3525 </Storyboard> | |
3526 </VisualState> | |
3527 <VisualState x:Name="CalendarButtonUnfocused"> | |
3528 <Storyboard> | |
3529 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual"> | |
3530 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/> | |
3531 </ObjectAnimationUsingKeyFrames> | |
3532 </Storyboard> | |
3533 </VisualState> | |
3534 </VisualStateGroup> | |
3535 </VisualStateManager.VisualStateGroups> | |
3536 <Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
3537 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
3538 <Border x:Name="PressedBorder" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0"> | |
3539 <Border.Background> | |
3540 <SolidColorBrush Color="{StaticResource Gray5}" PresentationOptions:Freeze="True"/> | |
3541 </Border.Background> | |
3542 </Border> | |
3543 <ContentControl x:Name="Content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{StaticResource GrayBrush3}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" Margin="1,0,1,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> | |
3544 <Rectangle x:Name="FocusVisual" IsHitTestVisible="false" Stroke="{StaticResource TextBoxMouseOverBorderBrush}" Visibility="Collapsed"/> | |
3545 </Grid> | |
3546 </ControlTemplate> | |
3547 </Setter.Value> | |
3548 </Setter> | |
3549 </Style> | |
3550 | |
3551 <!--DatePicker Style--> | |
3552 <Style TargetType="DatePicker" x:Key="DefaultDatePickerStyle"> | |
3553 <Setter Property="IsTabStop" Value="False"/> | |
3554 <Setter Property="Background" Value="{StaticResource WhiteBrush}"/> | |
3555 <Setter Property="Padding" Value="2"/> | |
3556 <!--<Setter Property="SelectionBackground"> | |
3557 <Setter.Value> | |
3558 <SolidColorBrush Color="{StaticResource AccentColorBlue}"/> | |
3559 </Setter.Value> | |
3560 </Setter>--> | |
3561 <Setter Property="MinHeight" Value="26"/> | |
3562 <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/> | |
3563 <Setter Property="CalendarStyle" Value="{StaticResource DefaultCalendarStyle}" /> | |
3564 <Setter Property="BorderThickness" Value="1"/> | |
3565 <Setter Property="Template"> | |
3566 <Setter.Value> | |
3567 <ControlTemplate TargetType="DatePicker"> | |
3568 <Grid x:Name="PART_Root"> | |
3569 <Grid.Resources> | |
3570 <SolidColorBrush x:Key="DisabledBrush" Color="{StaticResource TransparentLightLightColor}" PresentationOptions:Freeze="True"/> | |
3571 <ControlTemplate x:Key="DropDownButtonTemplate" TargetType="Button"> | |
3572 <Grid FlowDirection="LeftToRight"> | |
3573 <VisualStateManager.VisualStateGroups> | |
3574 <VisualStateGroup x:Name="CommonStates"> | |
3575 <VisualStateGroup.Transitions> | |
3576 <VisualTransition GeneratedDuration="0"/> | |
3577 <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/> | |
3578 <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed"/> | |
3579 </VisualStateGroup.Transitions> | |
3580 <VisualState x:Name="Normal"/> | |
3581 <VisualState x:Name="MouseOver"> | |
3582 <Storyboard> | |
3583 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder"> | |
3584 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
3585 </DoubleAnimationUsingKeyFrames> | |
3586 </Storyboard> | |
3587 </VisualState> | |
3588 <VisualState x:Name="Pressed"> | |
3589 <Storyboard> | |
3590 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder"> | |
3591 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
3592 </DoubleAnimationUsingKeyFrames> | |
3593 </Storyboard> | |
3594 </VisualState> | |
3595 <VisualState x:Name="Disabled"> | |
3596 <Storyboard> | |
3597 <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisual"> | |
3598 <SplineDoubleKeyFrame KeyTime="0" Value="0.595"/> | |
3599 </DoubleAnimationUsingKeyFrames> | |
3600 </Storyboard> | |
3601 </VisualState> | |
3602 </VisualStateGroup> | |
3603 </VisualStateManager.VisualStateGroups> | |
3604 <Grid Background="{StaticResource TransparentWhiteBrush}" HorizontalAlignment="Center" Height="18" Margin="0" VerticalAlignment="Center" Width="19"> | |
3605 <Grid.ColumnDefinitions> | |
3606 <ColumnDefinition Width="20*"/> | |
3607 <ColumnDefinition Width="20*"/> | |
3608 <ColumnDefinition Width="20*"/> | |
3609 <ColumnDefinition Width="20*"/> | |
3610 </Grid.ColumnDefinitions> | |
3611 <Grid.RowDefinitions> | |
3612 <RowDefinition Height="23*"/> | |
3613 <RowDefinition Height="19*"/> | |
3614 <RowDefinition Height="19*"/> | |
3615 <RowDefinition Height="19*"/> | |
3616 </Grid.RowDefinitions> | |
3617 <Border x:Name="Background" BorderBrush="{StaticResource TextBoxBorderBrush}" BorderThickness="1" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="1" Grid.Row="1" Grid.RowSpan="3"> | |
3618 <Border.Background> | |
3619 <SolidColorBrush Color="{StaticResource Gray7}" PresentationOptions:Freeze="True"/> | |
3620 </Border.Background> | |
3621 </Border> | |
3622 <Rectangle Grid.ColumnSpan="4" Grid.RowSpan="1" StrokeThickness="1" Stroke="{StaticResource TextBoxBorderBrush}" Fill="{StaticResource TextBoxMouseOverBorderBrush}"/> | |
3623 <Border x:Name="MouseOverBorder" BorderBrush="{StaticResource TextBoxBorderBrush}" BorderThickness="1" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="0" Grid.Row="1" Grid.RowSpan="3"> | |
3624 <Border.Background> | |
3625 <SolidColorBrush Color="{StaticResource Gray8}" PresentationOptions:Freeze="True"/> | |
3626 </Border.Background> | |
3627 </Border> | |
3628 <Border x:Name="PressedBorder" BorderBrush="{StaticResource TextBoxBorderBrush}" BorderThickness="1" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="0" Grid.Row="1" Grid.RowSpan="3"> | |
3629 <Border.Background> | |
3630 <SolidColorBrush Color="{StaticResource Gray5}" PresentationOptions:Freeze="True"/> | |
3631 </Border.Background> | |
3632 </Border> | |
3633 <Path Grid.ColumnSpan="4" Grid.Column="0" 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" Fill="{StaticResource GrayBrush3}" HorizontalAlignment="Center" Margin="4,3,4,3" Grid.Row="1" Grid.RowSpan="3" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center"/> | |
3634 <Ellipse Grid.ColumnSpan="4" Fill="{StaticResource WhiteColorBrush}" HorizontalAlignment="Center" Height="3" StrokeThickness="0" VerticalAlignment="Center" Width="3"/> | |
3635 <Border x:Name="DisabledVisual" BorderBrush="{StaticResource TransparentLightLightBrush}" BorderThickness="1" Grid.ColumnSpan="4" CornerRadius="0,0,.5,.5" Opacity="0" Grid.Row="0" Grid.RowSpan="4" Background="White"/> | |
3636 </Grid> | |
3637 </Grid> | |
3638 </ControlTemplate> | |
3639 </Grid.Resources> | |
3640 <VisualStateManager.VisualStateGroups> | |
3641 <VisualStateGroup x:Name="CommonStates"> | |
3642 <VisualState x:Name="Normal"/> | |
3643 <VisualState x:Name="Disabled"> | |
3644 <Storyboard> | |
3645 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_DisabledVisual"/> | |
3646 </Storyboard> | |
3647 </VisualState> | |
3648 </VisualStateGroup> | |
3649 </VisualStateManager.VisualStateGroups> | |
3650 <Grid.ColumnDefinitions> | |
3651 <ColumnDefinition Width="*"/> | |
3652 <ColumnDefinition Width="Auto"/> | |
3653 </Grid.ColumnDefinitions> | |
3654 <DatePickerTextBox x:Name="PART_TextBox" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="0" Padding="{TemplateBinding Padding}" /> | |
3655 <Button x:Name="PART_Button" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" Foreground="{TemplateBinding Foreground}" Margin="2,0,2,0" Template="{StaticResource DropDownButtonTemplate}" Width="20"/> | |
3656 <Grid x:Name="PART_DisabledVisual" Grid.ColumnSpan="2" IsHitTestVisible="False" Opacity="0"> | |
3657 <Grid.ColumnDefinitions> | |
3658 <ColumnDefinition Width="*"/> | |
3659 <ColumnDefinition Width="Auto"/> | |
3660 </Grid.ColumnDefinitions> | |
3661 <Rectangle Fill="{StaticResource TransparentLightLightBrush}" RadiusY="1" RadiusX="1"/> | |
3662 <Rectangle Grid.Column="1" Fill="{StaticResource TransparentLightLightBrush}" Height="18" Margin="2,0,2,0" RadiusY="1" RadiusX="1" Width="19"/> | |
3663 </Grid> | |
3664 <Popup x:Name="PART_Popup" | |
3665 AllowsTransparency="True" | |
3666 Placement="Bottom" | |
3667 PlacementTarget="{Binding ElementName=PART_TextBox}" | |
3668 StaysOpen="False" /> | |
3669 </Grid> | |
3670 </ControlTemplate> | |
3671 </Setter.Value> | |
3672 </Setter> | |
3673 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3674 </Style> | |
3675 | |
3676 <!--TreeView Style--> | |
3677 <Style TargetType="TreeView" x:Key="DefaultTreeViewStyle"> | |
3678 <Setter Property="Background" Value="{StaticResource WhiteBrush}"/> | |
3679 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3680 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
3681 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
3682 <Setter Property="Cursor" Value="Arrow"/> | |
3683 <Setter Property="BorderThickness" Value="0"/> | |
3684 <Setter Property="Padding" Value="1"/> | |
3685 <Setter Property="BorderBrush" Value="{StaticResource ThumbBrush}"/> | |
3686 <Setter Property="IsTabStop" Value="True"/> | |
3687 <Setter Property="KeyboardNavigation.TabNavigation" Value="Once"/> | |
3688 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" /> | |
3689 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /> | |
3690 <Setter Property="Template"> | |
3691 <Setter.Value> | |
3692 <ControlTemplate TargetType="TreeView"> | |
3693 <Grid> | |
3694 <VisualStateManager.VisualStateGroups> | |
3695 <VisualStateGroup x:Name="CommonStates"> | |
3696 <VisualState x:Name="Normal"/> | |
3697 <VisualState x:Name="MouseOver"/> | |
3698 <VisualState x:Name="Pressed"/> | |
3699 <VisualState x:Name="Disabled"/> | |
3700 </VisualStateGroup> | |
3701 <VisualStateGroup x:Name="FocusStates"> | |
3702 <VisualState x:Name="Unfocused"/> | |
3703 <VisualState x:Name="Focused"/> | |
3704 </VisualStateGroup> | |
3705 <VisualStateGroup x:Name="ValidationStates"> | |
3706 <VisualState x:Name="Valid"/> | |
3707 <VisualState x:Name="InvalidUnfocused"> | |
3708 <Storyboard> | |
3709 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Validation"> | |
3710 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/> | |
3711 </ObjectAnimationUsingKeyFrames> | |
3712 </Storyboard> | |
3713 </VisualState> | |
3714 <VisualState x:Name="InvalidFocused"> | |
3715 <Storyboard> | |
3716 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Validation"> | |
3717 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/> | |
3718 </ObjectAnimationUsingKeyFrames> | |
3719 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="ValidationToolTip"> | |
3720 <DiscreteObjectKeyFrame KeyTime="0"> | |
3721 <DiscreteObjectKeyFrame.Value> | |
3722 <sys:Boolean>True</sys:Boolean> | |
3723 </DiscreteObjectKeyFrame.Value> | |
3724 </DiscreteObjectKeyFrame> | |
3725 </ObjectAnimationUsingKeyFrames> | |
3726 </Storyboard> | |
3727 </VisualState> | |
3728 </VisualStateGroup> | |
3729 </VisualStateManager.VisualStateGroups> | |
3730 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> | |
3731 <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"> | |
3732 <ScrollViewer x:Name="ScrollViewer" | |
3733 Focusable="False" | |
3734 IsTabStop="False" | |
3735 Background="Transparent" | |
3736 BorderThickness="0" | |
3737 CanContentScroll="False"> | |
3738 <ItemsPresenter Margin="5" /> | |
3739 </ScrollViewer> | |
3740 </Border> | |
3741 </Border> | |
3742 <Border x:Name="Validation" BorderBrush="{StaticResource ValidationBrush5}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" CornerRadius="2" Visibility="Collapsed"> | |
3743 <ToolTipService.ToolTip> | |
3744 <ToolTip x:Name="ValidationToolTip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" IsHitTestVisible="True" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource CommonValidationToolTipTemplate}"/> | |
3745 </ToolTipService.ToolTip> | |
3746 <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10"> | |
3747 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 Z" Fill="{StaticResource ValidationBrush5}" Margin="-1,3,0,0"/> | |
3748 <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource WhiteColorBrush}" Margin="-1,3,0,0"/> | |
3749 </Grid> | |
3750 </Border> | |
3751 </Grid> | |
3752 </ControlTemplate> | |
3753 </Setter.Value> | |
3754 </Setter> | |
3755 </Style> | |
3756 | |
3757 <!--TreeViewItem Style--> | |
3758 <Style TargetType="TreeViewItem" x:Key="DefaultTreeViewItemStyle"> | |
3759 <Setter Property="Padding" Value="3"/> | |
3760 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
3761 <Setter Property="VerticalContentAlignment" Value="Top"/> | |
3762 <Setter Property="Background" Value="Transparent"/> | |
3763 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
3764 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
3765 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
3766 <Setter Property="BorderThickness" Value="1"/> | |
3767 <Setter Property="Cursor" Value="Arrow"/> | |
3768 <Setter Property="IsTabStop" Value="True"/> | |
3769 <Setter Property="KeyboardNavigation.TabNavigation" Value="Once"/> | |
3770 <Setter Property="Margin" Value="0 1 0 0"/> | |
3771 <Setter Property="Template"> | |
3772 <Setter.Value> | |
3773 <ControlTemplate TargetType="TreeViewItem"> | |
3774 <Grid Background="{x:Null}"> | |
3775 <Grid.ColumnDefinitions> | |
3776 <ColumnDefinition Width="15"/> | |
3777 <ColumnDefinition Width="Auto"/> | |
3778 <ColumnDefinition Width="*"/> | |
3779 </Grid.ColumnDefinitions> | |
3780 <Grid.RowDefinitions> | |
3781 <RowDefinition Height="Auto"/> | |
3782 <RowDefinition Height="*"/> | |
3783 </Grid.RowDefinitions> | |
3784 <VisualStateManager.VisualStateGroups> | |
3785 <VisualStateGroup x:Name="CommonStates"> | |
3786 <VisualState x:Name="Normal"/> | |
3787 <VisualState x:Name="MouseOver"/> | |
3788 <VisualState x:Name="Pressed"/> | |
3789 <VisualState x:Name="Disabled"/> | |
3790 </VisualStateGroup> | |
3791 <VisualStateGroup x:Name="SelectionStates"> | |
3792 <VisualState x:Name="Unselected"/> | |
3793 <VisualState x:Name="Selected"> | |
3794 <Storyboard> | |
3795 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
3796 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
3797 </DoubleAnimationUsingKeyFrames> | |
3798 <ColorAnimationUsingKeyFrames Storyboard.TargetName="SelectWrapper" Storyboard.TargetProperty="Color"> | |
3799 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource WhiteColor}"/> | |
3800 </ColorAnimationUsingKeyFrames> | |
3801 | |
3802 </Storyboard> | |
3803 </VisualState> | |
3804 <VisualState x:Name="SelectedInactive"> | |
3805 <Storyboard/> | |
3806 </VisualState> | |
3807 </VisualStateGroup> | |
3808 <VisualStateGroup x:Name="HasItemsStates"> | |
3809 <VisualState x:Name="HasItems"/> | |
3810 <VisualState x:Name="NoItems"> | |
3811 <Storyboard> | |
3812 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ExpanderButton"> | |
3813 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/> | |
3814 </ObjectAnimationUsingKeyFrames> | |
3815 </Storyboard> | |
3816 </VisualState> | |
3817 </VisualStateGroup> | |
3818 <VisualStateGroup x:Name="ExpansionStates"> | |
3819 <VisualState x:Name="Collapsed"/> | |
3820 <VisualState x:Name="Expanded"> | |
3821 <Storyboard> | |
3822 <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ItemsHost"> | |
3823 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/> | |
3824 </ObjectAnimationUsingKeyFrames> | |
3825 </Storyboard> | |
3826 </VisualState> | |
3827 </VisualStateGroup> | |
3828 </VisualStateManager.VisualStateGroups> | |
3829 <ToggleButton x:Name="ExpanderButton" HorizontalAlignment="Stretch" IsTabStop="False" KeyboardNavigation.TabNavigation="Once" VerticalAlignment="Stretch" | |
3830 IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"> | |
3831 <ToggleButton.Template> | |
3832 <ControlTemplate TargetType="ToggleButton"> | |
3833 <Grid x:Name="Root" Background="Transparent"> | |
3834 <VisualStateManager.VisualStateGroups> | |
3835 <VisualStateGroup x:Name="CommonStates"> | |
3836 <VisualState x:Name="Normal"/> | |
3837 <VisualState x:Name="MouseOver"> | |
3838 <Storyboard> | |
3839 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid" d:IsOptimized="True"/> | |
3840 <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="UncheckedVisual"> | |
3841 <EasingColorKeyFrame KeyTime="0" Value="White"/> | |
3842 <EasingColorKeyFrame KeyTime="0:0:0.4" Value="{StaticResource AccentColorLightBlue}"/> | |
3843 </ColorAnimationUsingKeyFrames> | |
3844 </Storyboard> | |
3845 </VisualState> | |
3846 <VisualState x:Name="Disabled"> | |
3847 <Storyboard> | |
3848 <DoubleAnimation Duration="0" To=".7" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/> | |
3849 </Storyboard> | |
3850 </VisualState> | |
3851 </VisualStateGroup> | |
3852 <VisualStateGroup x:Name="CheckStates"> | |
3853 <VisualState x:Name="Unchecked"/> | |
3854 <VisualState x:Name="Checked"> | |
3855 <Storyboard> | |
3856 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="UncheckedVisual" d:IsOptimized="True"/> | |
3857 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckedVisual" d:IsOptimized="True"/> | |
3858 </Storyboard> | |
3859 </VisualState> | |
3860 </VisualStateGroup> | |
3861 </VisualStateManager.VisualStateGroups> | |
3862 <Grid x:Name="grid" HorizontalAlignment="Right" Margin="2 2 5 2" Opacity="0.6"> | |
3863 <Path x:Name="OldUncheckedVisual" Data="M5.8535156,2.1822653 L10.195313,2.1822653 L10.195313,6.5152731 L14.537109,6.5152731 L14.537109,10.848281 L10.195313,10.848281 L10.195313,15.181289 L5.8535156,15.181289 L5.8535156,10.848281 L1.5205078,10.848281 L1.5205078,6.5152731 L5.8535156,6.5152731 z" HorizontalAlignment="Right" Height="8" Margin="0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="8" Visibility="Collapsed" > | |
3864 <Path.Fill> | |
3865 <SolidColorBrush Color="{StaticResource Gray3}" PresentationOptions:Freeze="True"/> | |
3866 </Path.Fill> | |
3867 </Path> | |
3868 <Path x:Name="OldCheckedVisual" Data="M10.195313,6.5152731 L14.537109,6.5152731 14.537109,10.848281 10.195313,10.848281 5.8535156,10.848281 1.5205078,10.848281 1.5205078,6.5152731 5.8535156,6.5152731 z" HorizontalAlignment="Right" Height="2" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="8" Visibility="Collapsed" > | |
3869 <Path.Fill> | |
3870 <SolidColorBrush Color="{StaticResource Gray3}" PresentationOptions:Freeze="True"/> | |
3871 </Path.Fill> | |
3872 </Path> | |
3873 <Path x:Name="UncheckedVisual" Data="M 0,0 L 0,9 L 5,4.5 Z" HorizontalAlignment="Right" Height="9" StrokeThickness="1" StrokeLineJoin="Miter" VerticalAlignment="Center" Width="6" Margin="0,0,2,0" UseLayoutRounding="False"> | |
3874 <Path.Fill> | |
3875 <SolidColorBrush x:Name="BlankBackgroundBrush" Color="{StaticResource BaseColor2}" PresentationOptions:Freeze="True"/> | |
3876 </Path.Fill> | |
3877 <Path.Stroke> | |
3878 <SolidColorBrush x:Name="BaseBrush5" Color="{StaticResource BaseColor5}" PresentationOptions:Freeze="True"/> | |
3879 </Path.Stroke> | |
3880 </Path> | |
3881 <Path x:Name="CheckedVisual" Data="M 6,0 L 6,6 L 0,6 Z" HorizontalAlignment="Center" Height="6" Opacity="0" StrokeLineJoin="Miter" VerticalAlignment="Center" Width="6" Stroke="Black" UseLayoutRounding="False"> | |
3882 <Path.Fill> | |
3883 <SolidColorBrush Color="{StaticResource BaseColor3}" PresentationOptions:Freeze="True"/> | |
3884 </Path.Fill> | |
3885 </Path> | |
3886 </Grid> | |
3887 </Grid> | |
3888 </ControlTemplate> | |
3889 </ToggleButton.Template> | |
3890 </ToggleButton> | |
3891 <Rectangle x:Name="SelectedRectangle" Grid.Column="1" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource HighlightBrush}"/> | |
3892 <Rectangle x:Name="Selection" Grid.Column="1" IsHitTestVisible="False" Opacity="0" RadiusY="2" RadiusX="2" StrokeThickness="1"> | |
3893 <Rectangle.Fill> | |
3894 <SolidColorBrush x:Name="SelectionFill" Color="{StaticResource AccentColorLightBlue}" PresentationOptions:Freeze="True"/> | |
3895 </Rectangle.Fill> | |
3896 <Rectangle.Stroke> | |
3897 <SolidColorBrush x:Name="SelectionStroke" Color="{StaticResource AccentColorBlue}" PresentationOptions:Freeze="True"/> | |
3898 </Rectangle.Stroke> | |
3899 </Rectangle> | |
3900 <Button x:Name="PART_Header" FontWeight="Light" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Cursor="{TemplateBinding Cursor}" ClickMode="Hover" Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" KeyboardNavigation.TabNavigation="Once" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" > | |
3901 <Button.Foreground> | |
3902 <SolidColorBrush x:Name="HeaderWrapper" Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
3903 </Button.Foreground> | |
3904 <Button.Template> | |
3905 <ControlTemplate TargetType="Button"> | |
3906 <Grid Background="{TemplateBinding Background}"> | |
3907 <VisualStateManager.VisualStateGroups> | |
3908 <VisualStateGroup x:Name="CommonStates"> | |
3909 <VisualState x:Name="Normal"/> | |
3910 <VisualState x:Name="Pressed"> | |
3911 <Storyboard> | |
3912 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
3913 <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
3914 </DoubleAnimationUsingKeyFrames> | |
3915 <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor" Storyboard.TargetProperty="Color"> | |
3916 <EasingColorKeyFrame KeyTime="0" Value="{StaticResource WhiteColor}"/> | |
3917 </ColorAnimationUsingKeyFrames> | |
3918 </Storyboard> | |
3919 </VisualState> | |
3920 <VisualState x:Name="Disabled"> | |
3921 <Storyboard> | |
3922 <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content"/> | |
3923 </Storyboard> | |
3924 </VisualState> | |
3925 </VisualStateGroup> | |
3926 </VisualStateManager.VisualStateGroups> | |
3927 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource HighlightBrush}"/> | |
3928 <ContentControl Margin="0,-2" > | |
3929 <ContentControl.Foreground> | |
3930 <SolidColorBrush x:Name="ContentPresenterWrapperColor" Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
3931 </ContentControl.Foreground> | |
3932 <ContentPresenter x:Name="Content" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="Left" Margin="{TemplateBinding Padding}" | |
3933 RenderOptions.ClearTypeHint="Enabled"/> | |
3934 </ContentControl> | |
3935 </Grid> | |
3936 </ControlTemplate> | |
3937 </Button.Template> | |
3938 <ContentControl> | |
3939 <ContentControl.Foreground> | |
3940 <SolidColorBrush x:Name="SelectWrapper" Color="{StaticResource BlackColor}" PresentationOptions:Freeze="True"/> | |
3941 </ContentControl.Foreground> | |
3942 <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" | |
3943 RenderOptions.ClearTypeHint="Enabled"/> | |
3944 </ContentControl> | |
3945 </Button> | |
3946 <ItemsPresenter x:Name="ItemsHost" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1" Visibility="Collapsed"/> | |
3947 </Grid> | |
3948 </ControlTemplate> | |
3949 </Setter.Value> | |
3950 </Setter> | |
3951 </Style> | |
3952 | |
3953 <!--TabControl Style & Templates--> | |
3954 <ControlTemplate x:Key="TopTabStripTabControlTemplate" TargetType="TabControl"> | |
3955 <Grid> | |
3956 <VisualStateManager.VisualStateGroups> | |
3957 <VisualStateGroup x:Name="CommonStates"> | |
3958 <VisualStateGroup.Transitions> | |
3959 <VisualTransition GeneratedDuration="0"/> | |
3960 </VisualStateGroup.Transitions> | |
3961 <VisualState x:Name="Normal"/> | |
3962 <VisualState x:Name="Disabled"> | |
3963 <Storyboard> | |
3964 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualTop"> | |
3965 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
3966 </DoubleAnimationUsingKeyFrames> | |
3967 </Storyboard> | |
3968 </VisualState> | |
3969 </VisualStateGroup> | |
3970 </VisualStateManager.VisualStateGroups> | |
3971 <Grid x:Name="TemplateTop"> | |
3972 <Grid.RowDefinitions> | |
3973 <RowDefinition Height="Auto"/> | |
3974 <RowDefinition Height="*"/> | |
3975 </Grid.RowDefinitions> | |
3976 <TabPanel x:Name="TabPanelTop" IsItemsHost="True" Margin="5,2,2,-1" Canvas.ZIndex="100"/> | |
3977 <Border BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" MinWidth="10" MinHeight="10" Grid.Row="1" BorderThickness="0,1,0,0"> | |
3978 <ContentPresenter x:Name="PART_SelectedContentHost" | |
3979 ContentSource="SelectedContent" | |
3980 Cursor="{TemplateBinding Cursor}" | |
3981 HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" | |
3982 Margin="{TemplateBinding Padding}" | |
3983 RenderOptions.ClearTypeHint="Enabled"/> | |
3984 </Border> | |
3985 <Border x:Name="DisabledVisualTop" Background="{StaticResource TransparentLightLightBrush}" CornerRadius="0,0,3,3" IsHitTestVisible="False" Opacity="0" Grid.Row="1" Grid.RowSpan="2" Canvas.ZIndex="1"/> | |
3986 </Grid> | |
3987 </Grid> | |
3988 </ControlTemplate> | |
3989 | |
3990 <ControlTemplate x:Key="BottomTabStripTabControlTemplate" TargetType="TabControl"> | |
3991 <Grid> | |
3992 <VisualStateManager.VisualStateGroups> | |
3993 <VisualStateGroup x:Name="CommonStates"> | |
3994 <VisualStateGroup.Transitions> | |
3995 <VisualTransition GeneratedDuration="0"/> | |
3996 </VisualStateGroup.Transitions> | |
3997 <VisualState x:Name="Normal"/> | |
3998 <VisualState x:Name="Disabled"> | |
3999 <Storyboard> | |
4000 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualBottom"> | |
4001 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
4002 </DoubleAnimationUsingKeyFrames> | |
4003 </Storyboard> | |
4004 </VisualState> | |
4005 </VisualStateGroup> | |
4006 </VisualStateManager.VisualStateGroups> | |
4007 <Grid x:Name="TemplateBottom"> | |
4008 <Grid.RowDefinitions> | |
4009 <RowDefinition Height="*"/> | |
4010 <RowDefinition Height="Auto"/> | |
4011 </Grid.RowDefinitions> | |
4012 <TabPanel x:Name="TabPanelBottom" IsItemsHost="True" Margin="2,-1,2,2" Grid.Row="1" Canvas.ZIndex="1"/> | |
4013 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3,3,0,0" MinWidth="10" MinHeight="10"> | |
4014 <ContentPresenter x:Name="PART_SelectedContentHost" | |
4015 ContentSource="SelectedContent" | |
4016 Cursor="{TemplateBinding Cursor}" | |
4017 HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" | |
4018 Margin="{TemplateBinding Padding}" | |
4019 RenderOptions.ClearTypeHint="Enabled"/> | |
4020 </Border> | |
4021 <Border x:Name="DisabledVisualBottom" Background="{StaticResource TransparentLightLightBrush}" CornerRadius="3,3,0,0" IsHitTestVisible="False" Opacity="0" Canvas.ZIndex="1"/> | |
4022 </Grid> | |
4023 </Grid> | |
4024 </ControlTemplate> | |
4025 | |
4026 <ControlTemplate x:Key="LeftTabStripTabControlTemplate" TargetType="TabControl"> | |
4027 <Grid> | |
4028 <VisualStateManager.VisualStateGroups> | |
4029 <VisualStateGroup x:Name="CommonStates"> | |
4030 <VisualStateGroup.Transitions> | |
4031 <VisualTransition GeneratedDuration="0"/> | |
4032 </VisualStateGroup.Transitions> | |
4033 <VisualState x:Name="Normal"/> | |
4034 <VisualState x:Name="Disabled"> | |
4035 <Storyboard> | |
4036 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualLeft"> | |
4037 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
4038 </DoubleAnimationUsingKeyFrames> | |
4039 </Storyboard> | |
4040 </VisualState> | |
4041 </VisualStateGroup> | |
4042 </VisualStateManager.VisualStateGroups> | |
4043 <Grid x:Name="TemplateLeft"> | |
4044 <Grid.ColumnDefinitions> | |
4045 <ColumnDefinition Width="Auto"/> | |
4046 <ColumnDefinition Width="*"/> | |
4047 </Grid.ColumnDefinitions> | |
4048 <TabPanel x:Name="TabPanelLeft" IsItemsHost="True" Margin="2,2,-1,2" Canvas.ZIndex="1"/> | |
4049 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="1" CornerRadius="0,3,3,0" MinWidth="10" MinHeight="10"> | |
4050 <ContentPresenter x:Name="PART_SelectedContentHost" | |
4051 Cursor="{TemplateBinding Cursor}" | |
4052 ContentSource="SelectedContent" | |
4053 HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" | |
4054 Margin="{TemplateBinding Padding}" | |
4055 RenderOptions.ClearTypeHint="Enabled"/> | |
4056 </Border> | |
4057 <Border x:Name="DisabledVisualLeft" Background="{StaticResource TransparentLightLightBrush}" Grid.Column="1" CornerRadius="0,3,3,0" IsHitTestVisible="False" Opacity="0" Canvas.ZIndex="1"/> | |
4058 </Grid> | |
4059 </Grid> | |
4060 </ControlTemplate> | |
4061 | |
4062 <ControlTemplate x:Key="RightTabStripTabControlTemplate" TargetType="TabControl"> | |
4063 <Grid> | |
4064 <VisualStateManager.VisualStateGroups> | |
4065 <VisualStateGroup x:Name="CommonStates"> | |
4066 <VisualStateGroup.Transitions> | |
4067 <VisualTransition GeneratedDuration="0"/> | |
4068 </VisualStateGroup.Transitions> | |
4069 <VisualState x:Name="Normal"/> | |
4070 <VisualState x:Name="Disabled"> | |
4071 <Storyboard> | |
4072 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualRight"> | |
4073 <SplineDoubleKeyFrame KeyTime="0" Value="1"/> | |
4074 </DoubleAnimationUsingKeyFrames> | |
4075 </Storyboard> | |
4076 </VisualState> | |
4077 </VisualStateGroup> | |
4078 </VisualStateManager.VisualStateGroups> | |
4079 <Grid x:Name="TemplateRight" Visibility="Collapsed"> | |
4080 <Grid.ColumnDefinitions> | |
4081 <ColumnDefinition Width="*"/> | |
4082 <ColumnDefinition Width="Auto"/> | |
4083 </Grid.ColumnDefinitions> | |
4084 <TabPanel x:Name="TabPanelRight" IsItemsHost="True" Grid.Column="1" Margin="-1,2,2,2" Canvas.ZIndex="1"/> | |
4085 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3,0,0,3" MinWidth="10" MinHeight="10"> | |
4086 <ContentPresenter x:Name="PART_SelectedContentHost" | |
4087 ContentSource="SelectedContent" | |
4088 Cursor="{TemplateBinding Cursor}" | |
4089 HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" | |
4090 Margin="{TemplateBinding Padding}" | |
4091 RenderOptions.ClearTypeHint="Enabled"/> | |
4092 </Border> | |
4093 <Border x:Name="DisabledVisualRight" Background="{StaticResource TransparentLightLightBrush}" CornerRadius="3,0,0,3" IsHitTestVisible="False" Margin="0" Opacity="0" Canvas.ZIndex="1"/> | |
4094 </Grid> | |
4095 </Grid> | |
4096 </ControlTemplate> | |
4097 | |
4098 <Style TargetType="TabControl" x:Key="DefaultTabControlStyle"> | |
4099 <Setter Property="IsTabStop" Value="False"/> | |
4100 <Setter Property="TabStripPlacement" Value="Top" /> | |
4101 <Setter Property="Background" Value="{x:Null}"/> | |
4102 <Setter Property="BorderBrush"> | |
4103 <Setter.Value> | |
4104 <SolidColorBrush Color="{StaticResource Gray1}" PresentationOptions:Freeze="True"/> | |
4105 </Setter.Value> | |
4106 </Setter> | |
4107 <Setter Property="BorderThickness" Value="1"/> | |
4108 <Setter Property="Padding" Value="5"/> | |
4109 <Setter Property="HorizontalContentAlignment" Value="Stretch"/> | |
4110 <Setter Property="VerticalContentAlignment" Value="Stretch"/> | |
4111 <Setter Property="VerticalContentAlignment" Value="Stretch"/> | |
4112 <Style.Triggers> | |
4113 <Trigger Property="TabStripPlacement" Value="Top"> | |
4114 <Setter Property="Width" Value="Auto" /> | |
4115 <Setter Property="Template" Value="{StaticResource TopTabStripTabControlTemplate}" /> | |
4116 </Trigger> | |
4117 <Trigger Property="TabStripPlacement" Value="Left"> | |
4118 <Setter Property="Height" Value="Auto" /> | |
4119 <Setter Property="Template" Value="{StaticResource LeftTabStripTabControlTemplate}" /> | |
4120 </Trigger> | |
4121 <Trigger Property="TabStripPlacement" Value="Right"> | |
4122 <Setter Property="Height" Value="Auto" /> | |
4123 <Setter Property="Template" Value="{StaticResource RightTabStripTabControlTemplate}" /> | |
4124 </Trigger> | |
4125 <Trigger Property="TabStripPlacement" Value="Bottom "> | |
4126 <Setter Property="Width" Value="Auto" /> | |
4127 <Setter Property="Template" Value="{StaticResource BottomTabStripTabControlTemplate}" /> | |
4128 </Trigger> | |
4129 </Style.Triggers> | |
4130 </Style> | |
4131 | |
4132 <!--TabItem Style & Templates--> | |
4133 <ControlTemplate x:Key="TopTabStripTabItemTemplate" TargetType="TabItem"> | |
4134 <Grid x:Name="Root"> | |
4135 <VisualStateManager.VisualStateGroups> | |
4136 <VisualStateGroup x:Name="CommonStates"> | |
4137 <VisualStateGroup.Transitions> | |
4138 <VisualTransition GeneratedDuration="0"/> | |
4139 <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/> | |
4140 </VisualStateGroup.Transitions> | |
4141 <VisualState x:Name="Normal"/> | |
4142 <VisualState x:Name="MouseOver"> | |
4143 <Storyboard> | |
4144 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="TopBorder"> | |
4145 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
4146 </DoubleAnimationUsingKeyFrames> | |
4147 </Storyboard> | |
4148 </VisualState> | |
4149 <VisualState x:Name="Disabled"> | |
4150 <Storyboard> | |
4151 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderTopUnselected"> | |
4152 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4153 </DoubleAnimationUsingKeyFrames> | |
4154 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderTopSelected"> | |
4155 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4156 </DoubleAnimationUsingKeyFrames> | |
4157 </Storyboard> | |
4158 </VisualState> | |
4159 </VisualStateGroup> | |
4160 <VisualStateGroup x:Name="SelectionStates"> | |
4161 <VisualState x:Name="Unselected"/> | |
4162 <VisualState x:Name="Selected"/> | |
4163 </VisualStateGroup> | |
4164 <VisualStateGroup x:Name="FocusStates"> | |
4165 <VisualState x:Name="Focused"> | |
4166 <Storyboard/> | |
4167 </VisualState> | |
4168 <VisualState x:Name="Unfocused"> | |
4169 <Storyboard/> | |
4170 </VisualState> | |
4171 </VisualStateGroup> | |
4172 </VisualStateManager.VisualStateGroups> | |
4173 <Grid x:Name="TemplateTopSelected" Visibility="Collapsed" Canvas.ZIndex="1"> | |
4174 <Border BorderThickness="1,0,1,0" BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource WhiteBrush}"> | |
4175 <ContentControl x:Name="HeaderTopSelected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}" FontWeight="Bold"> | |
4176 <ContentPresenter x:Name="ContentSiteTopSelected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4177 RenderOptions.ClearTypeHint="Enabled"/> | |
4178 </ContentControl> | |
4179 </Border> | |
4180 </Grid> | |
4181 <Grid x:Name="TemplateTopUnselected" Visibility="Collapsed"> | |
4182 <Border x:Name="TopBorder" BorderThickness="1,0,1,0"> | |
4183 <ContentControl x:Name="HeaderTopUnselected" Cursor="{TemplateBinding Cursor}" Foreground="{StaticResource CheckBoxBrush}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"> | |
4184 <ContentPresenter x:Name="ContentSiteTopUnselected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4185 RenderOptions.ClearTypeHint="Enabled"/> | |
4186 </ContentControl> | |
4187 </Border> | |
4188 </Grid> | |
4189 <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource HighlightBrush}" BorderThickness="1" CornerRadius="3,3,0,0" IsHitTestVisible="false" Margin="-1" Visibility="Collapsed"/> | |
4190 </Grid> | |
4191 <ControlTemplate.Triggers> | |
4192 <Trigger Property="Selector.IsSelected" Value="False"> | |
4193 <Setter TargetName="TemplateTopUnselected" Property="Visibility" Value="Visible" /> | |
4194 </Trigger> | |
4195 <Trigger Property="Selector.IsSelected" Value="True"> | |
4196 <Setter TargetName="TemplateTopSelected" Property="Visibility" Value="Visible" /> | |
4197 </Trigger> | |
4198 </ControlTemplate.Triggers> | |
4199 </ControlTemplate> | |
4200 | |
4201 <ControlTemplate x:Key="BottomTabStripTabItemTemplate" TargetType="TabItem"> | |
4202 <Grid x:Name="Root"> | |
4203 <VisualStateManager.VisualStateGroups> | |
4204 <VisualStateGroup x:Name="CommonStates"> | |
4205 <VisualStateGroup.Transitions> | |
4206 <VisualTransition GeneratedDuration="0"/> | |
4207 <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/> | |
4208 </VisualStateGroup.Transitions> | |
4209 <VisualState x:Name="Normal"/> | |
4210 <VisualState x:Name="MouseOver"> | |
4211 <Storyboard> | |
4212 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BottomBorder"> | |
4213 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
4214 </DoubleAnimationUsingKeyFrames> | |
4215 </Storyboard> | |
4216 </VisualState> | |
4217 <VisualState x:Name="Disabled"> | |
4218 <Storyboard> | |
4219 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderBottomUnselected"> | |
4220 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4221 </DoubleAnimationUsingKeyFrames> | |
4222 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderBottomSelected"> | |
4223 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4224 </DoubleAnimationUsingKeyFrames> | |
4225 </Storyboard> | |
4226 </VisualState> | |
4227 </VisualStateGroup> | |
4228 <VisualStateGroup x:Name="SelectionStates"> | |
4229 <VisualState x:Name="Unselected"/> | |
4230 <VisualState x:Name="Selected"/> | |
4231 </VisualStateGroup> | |
4232 <VisualStateGroup x:Name="FocusStates"> | |
4233 <VisualState x:Name="Focused"> | |
4234 <Storyboard/> | |
4235 </VisualState> | |
4236 <VisualState x:Name="Unfocused"> | |
4237 <Storyboard/> | |
4238 </VisualState> | |
4239 </VisualStateGroup> | |
4240 </VisualStateManager.VisualStateGroups> | |
4241 <Grid x:Name="TemplateBottomSelected" Visibility="Collapsed" Canvas.ZIndex="1"> | |
4242 <Border BorderThickness="1,0,1,0" BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource WhiteBrush}"> | |
4243 <ContentControl x:Name="HeaderBottomSelected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}" FontWeight="Bold"> | |
4244 <ContentPresenter x:Name="ContentSiteBottomSelected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4245 RenderOptions.ClearTypeHint="Enabled"/> | |
4246 </ContentControl> | |
4247 </Border> | |
4248 </Grid> | |
4249 <Grid x:Name="TemplateBottomUnselected" Visibility="Collapsed"> | |
4250 <Border x:Name="BottomBorder" BorderThickness="1,0,1,0"> | |
4251 <ContentControl x:Name="HeaderBottomUnselected" Cursor="{TemplateBinding Cursor}" Foreground="{StaticResource CheckBoxBrush}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"> | |
4252 <ContentPresenter x:Name="ContentSiteBottomUnselected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4253 RenderOptions.ClearTypeHint="Enabled"/> | |
4254 </ContentControl> | |
4255 </Border> | |
4256 </Grid> | |
4257 <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource HighlightBrush}" BorderThickness="1" CornerRadius="3,3,0,0" IsHitTestVisible="false" Margin="-1" Visibility="Collapsed"/> | |
4258 </Grid> | |
4259 <ControlTemplate.Triggers> | |
4260 <Trigger Property="Selector.IsSelected" Value="False"> | |
4261 <Setter TargetName="TemplateBottomUnselected" Property="Visibility" Value="Visible" /> | |
4262 </Trigger> | |
4263 <Trigger Property="Selector.IsSelected" Value="True"> | |
4264 <Setter TargetName="TemplateBottomSelected" Property="Visibility" Value="Visible" /> | |
4265 </Trigger> | |
4266 </ControlTemplate.Triggers> | |
4267 </ControlTemplate> | |
4268 | |
4269 <ControlTemplate x:Key="LeftTabStripTabItemTemplate" TargetType="TabItem"> | |
4270 <Grid x:Name="Root"> | |
4271 <VisualStateManager.VisualStateGroups> | |
4272 <VisualStateGroup x:Name="CommonStates"> | |
4273 <VisualStateGroup.Transitions> | |
4274 <VisualTransition GeneratedDuration="0"/> | |
4275 <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/> | |
4276 </VisualStateGroup.Transitions> | |
4277 <VisualState x:Name="Normal"/> | |
4278 <VisualState x:Name="MouseOver"> | |
4279 <Storyboard> | |
4280 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LeftBorder"> | |
4281 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
4282 </DoubleAnimationUsingKeyFrames> | |
4283 </Storyboard> | |
4284 </VisualState> | |
4285 <VisualState x:Name="Disabled"> | |
4286 <Storyboard> | |
4287 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderLeftUnselected"> | |
4288 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4289 </DoubleAnimationUsingKeyFrames> | |
4290 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderLeftSelected"> | |
4291 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4292 </DoubleAnimationUsingKeyFrames> | |
4293 </Storyboard> | |
4294 </VisualState> | |
4295 </VisualStateGroup> | |
4296 <VisualStateGroup x:Name="SelectionStates"> | |
4297 <VisualState x:Name="Unselected"/> | |
4298 <VisualState x:Name="Selected"/> | |
4299 </VisualStateGroup> | |
4300 <VisualStateGroup x:Name="FocusStates"> | |
4301 <VisualState x:Name="Focused"> | |
4302 <Storyboard/> | |
4303 </VisualState> | |
4304 <VisualState x:Name="Unfocused"> | |
4305 <Storyboard/> | |
4306 </VisualState> | |
4307 </VisualStateGroup> | |
4308 </VisualStateManager.VisualStateGroups> | |
4309 <Grid x:Name="TemplateLeftSelected" Visibility="Collapsed" Canvas.ZIndex="1"> | |
4310 <Border BorderThickness="0,1,0,1" BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource WhiteBrush}"> | |
4311 <ContentControl x:Name="HeaderLeftSelected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}" FontWeight="Bold"> | |
4312 <ContentPresenter x:Name="ContentSiteLeftSelected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4313 RenderOptions.ClearTypeHint="Enabled"/> | |
4314 </ContentControl> | |
4315 </Border> | |
4316 </Grid> | |
4317 <Grid x:Name="TemplateLeftUnselected" Visibility="Collapsed"> | |
4318 <Border x:Name="LeftBorder" BorderThickness="0,1,0,1"> | |
4319 <ContentControl x:Name="HeaderLeftUnselected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"> | |
4320 <ContentPresenter x:Name="ContentSiteLeftUnselected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4321 RenderOptions.ClearTypeHint="Enabled"/> | |
4322 </ContentControl> | |
4323 </Border> | |
4324 </Grid> | |
4325 <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource HighlightBrush}" BorderThickness="1" CornerRadius="3,3,0,0" IsHitTestVisible="false" Margin="-1" Visibility="Collapsed"/> | |
4326 </Grid> | |
4327 <ControlTemplate.Triggers> | |
4328 <Trigger Property="Selector.IsSelected" Value="False"> | |
4329 <Setter TargetName="TemplateLeftUnselected" Property="Visibility" Value="Visible" /> | |
4330 </Trigger> | |
4331 <Trigger Property="Selector.IsSelected" Value="True"> | |
4332 <Setter TargetName="TemplateLeftSelected" Property="Visibility" Value="Visible" /> | |
4333 </Trigger> | |
4334 </ControlTemplate.Triggers> | |
4335 </ControlTemplate> | |
4336 | |
4337 <ControlTemplate x:Key="RightTabStripTabItemTemplate" TargetType="TabItem"> | |
4338 <Grid x:Name="Root"> | |
4339 <VisualStateManager.VisualStateGroups> | |
4340 <VisualStateGroup x:Name="CommonStates"> | |
4341 <VisualStateGroup.Transitions> | |
4342 <VisualTransition GeneratedDuration="0"/> | |
4343 <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/> | |
4344 </VisualStateGroup.Transitions> | |
4345 <VisualState x:Name="Normal"/> | |
4346 <VisualState x:Name="MouseOver"> | |
4347 <Storyboard> | |
4348 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RightBorder"> | |
4349 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
4350 </DoubleAnimationUsingKeyFrames> | |
4351 </Storyboard> | |
4352 </VisualState> | |
4353 <VisualState x:Name="Disabled"> | |
4354 <Storyboard> | |
4355 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderRightUnselected"> | |
4356 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4357 </DoubleAnimationUsingKeyFrames> | |
4358 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HeaderRightSelected"> | |
4359 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4360 </DoubleAnimationUsingKeyFrames> | |
4361 </Storyboard> | |
4362 </VisualState> | |
4363 </VisualStateGroup> | |
4364 <VisualStateGroup x:Name="SelectionStates"> | |
4365 <VisualState x:Name="Unselected"/> | |
4366 <VisualState x:Name="Selected"/> | |
4367 </VisualStateGroup> | |
4368 <VisualStateGroup x:Name="FocusStates"> | |
4369 <VisualState x:Name="Focused"> | |
4370 <Storyboard/> | |
4371 </VisualState> | |
4372 <VisualState x:Name="Unfocused"> | |
4373 <Storyboard/> | |
4374 </VisualState> | |
4375 </VisualStateGroup> | |
4376 </VisualStateManager.VisualStateGroups> | |
4377 <Grid x:Name="TemplateRightSelected" Visibility="Collapsed" Canvas.ZIndex="1"> | |
4378 <Border BorderThickness="0,1,0,1" BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource WhiteBrush}"> | |
4379 <ContentControl x:Name="HeaderRightSelected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}" FontWeight="Bold"> | |
4380 <ContentPresenter x:Name="ContentSiteRightSelected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4381 RenderOptions.ClearTypeHint="Enabled"/> | |
4382 </ContentControl> | |
4383 </Border> | |
4384 </Grid> | |
4385 <Grid x:Name="TemplateRightUnselected" Visibility="Collapsed"> | |
4386 <Border x:Name="RightBorder" BorderThickness="0,1,0,1"> | |
4387 <ContentControl x:Name="HeaderRightUnselected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"> | |
4388 <ContentPresenter x:Name="ContentSiteRightUnselected" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header" | |
4389 RenderOptions.ClearTypeHint="Enabled"/> | |
4390 </ContentControl> | |
4391 </Border> | |
4392 </Grid> | |
4393 <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource HighlightBrush}" BorderThickness="1" CornerRadius="3,3,0,0" IsHitTestVisible="false" Margin="-1" Visibility="Collapsed"/> | |
4394 </Grid> | |
4395 <ControlTemplate.Triggers> | |
4396 <Trigger Property="Selector.IsSelected" Value="False"> | |
4397 <Setter TargetName="TemplateRightUnselected" Property="Visibility" Value="Visible" /> | |
4398 </Trigger> | |
4399 <Trigger Property="Selector.IsSelected" Value="True"> | |
4400 <Setter TargetName="TemplateRightSelected" Property="Visibility" Value="Visible" /> | |
4401 </Trigger> | |
4402 </ControlTemplate.Triggers> | |
4403 </ControlTemplate> | |
4404 | |
4405 <Style TargetType="TabItem" x:Key="DefaultTabItemStyle" d:IsControlPart="True"> | |
4406 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
4407 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
4408 <Setter Property="FontSize" Value="{StaticResource ControlTitleFontSize}"/> | |
4409 <Setter Property="IsTabStop" Value="False"/> | |
4410 <Setter Property="Background" Value="{StaticResource TransparentWhiteBrush}"/> | |
4411 <Setter Property="BorderBrush"> | |
4412 <Setter.Value> | |
4413 <SolidColorBrush Color="{StaticResource Gray1}" PresentationOptions:Freeze="True"/> | |
4414 </Setter.Value> | |
4415 </Setter> | |
4416 <Setter Property="BorderThickness" Value="1"/> | |
4417 <Setter Property="Padding" Value="6,2,6,2"/> | |
4418 <Setter Property="HorizontalContentAlignment" Value="Stretch"/> | |
4419 <Setter Property="VerticalContentAlignment" Value="Stretch"/> | |
4420 <Setter Property="MinWidth" Value="5"/> | |
4421 <Setter Property="MinHeight" Value="5"/> | |
4422 <Style.Triggers> | |
4423 <Trigger Property="TabStripPlacement" Value="Top"> | |
4424 <Setter Property="Width" Value="Auto" /> | |
4425 <Setter Property="Template" Value="{StaticResource TopTabStripTabItemTemplate}" /> | |
4426 </Trigger> | |
4427 <Trigger Property="TabStripPlacement" Value="Left"> | |
4428 <Setter Property="Height" Value="Auto" /> | |
4429 <Setter Property="Template" Value="{StaticResource LeftTabStripTabItemTemplate}" /> | |
4430 </Trigger> | |
4431 <Trigger Property="TabStripPlacement" Value="Right"> | |
4432 <Setter Property="Height" Value="Auto" /> | |
4433 <Setter Property="Template" Value="{StaticResource RightTabStripTabItemTemplate}" /> | |
4434 </Trigger> | |
4435 <Trigger Property="TabStripPlacement" Value="Bottom "> | |
4436 <Setter Property="Width" Value="Auto" /> | |
4437 <Setter Property="Template" Value="{StaticResource BottomTabStripTabItemTemplate}" /> | |
4438 </Trigger> | |
4439 </Style.Triggers> | |
4440 </Style> | |
4441 | |
4442 <!-- Grid Splitter Style --> | |
4443 <Style x:Key="DefaultGridSplitterStyle" TargetType="GridSplitter"> | |
4444 <Setter Property="Background" Value="Transparent"/> | |
4445 <Setter Property="IsTabStop" Value="true"/> | |
4446 <Setter Property="Padding" Value="10,3" /> | |
4447 <Setter Property="PreviewStyle"> | |
4448 <Setter.Value> | |
4449 <Style TargetType="Control"> | |
4450 <Setter Property="Background" Value="#FF868686"/> | |
4451 <Setter Property="Template"> | |
4452 <Setter.Value> | |
4453 <ControlTemplate TargetType="Control"> | |
4454 <Grid x:Name="Root" Opacity=".5"> | |
4455 <Rectangle Fill="{TemplateBinding Background}"/> | |
4456 <Grid x:Name="HorizontalTemplate" Height="2"/> | |
4457 <Grid x:Name="VerticalTemplate" Visibility="Collapsed" Width="2"/> | |
4458 </Grid> | |
4459 </ControlTemplate> | |
4460 </Setter.Value> | |
4461 </Setter> | |
4462 </Style> | |
4463 </Setter.Value> | |
4464 </Setter> | |
4465 <Setter Property="Template"> | |
4466 <Setter.Value> | |
4467 <ControlTemplate TargetType="GridSplitter"> | |
4468 <Grid x:Name="Root" Background="{TemplateBinding Background}" IsHitTestVisible="{TemplateBinding IsEnabled}" d:DesignWidth="30" d:DesignHeight="30"> | |
4469 <VisualStateManager.VisualStateGroups> | |
4470 <VisualStateGroup x:Name="CommonStates"> | |
4471 <VisualState x:Name="Normal"/> | |
4472 <VisualState x:Name="MouseOver"/> | |
4473 <VisualState x:Name="Disabled"> | |
4474 <Storyboard> | |
4475 <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/> | |
4476 </Storyboard> | |
4477 </VisualState> | |
4478 </VisualStateGroup> | |
4479 <VisualStateGroup x:Name="FocusStates"> | |
4480 <VisualStateGroup.Transitions> | |
4481 <VisualTransition GeneratedDuration="0"/> | |
4482 </VisualStateGroup.Transitions> | |
4483 <VisualState x:Name="Focused"> | |
4484 <Storyboard> | |
4485 <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(FrameworkElement.Opacity)" To="1" /> | |
4486 </Storyboard> | |
4487 </VisualState> | |
4488 <VisualState x:Name="Unfocused" /> | |
4489 </VisualStateGroup> | |
4490 </VisualStateManager.VisualStateGroups> | |
4491 <Grid x:Name="HorizontalTemplate" Height="2" Margin="{TemplateBinding Padding}" Visibility="Collapsed"> | |
4492 <Rectangle Height="1" VerticalAlignment="Top"> | |
4493 <Rectangle.Fill> | |
4494 <LinearGradientBrush StartPoint="0,0" EndPoint="1,0"> | |
4495 <GradientStop Offset="0" Color="#00000000" /> | |
4496 <GradientStop Offset="0.2" Color="#80000000" /> | |
4497 <GradientStop Offset="0.8" Color="#80000000" /> | |
4498 <GradientStop Offset="1" Color="#00000000" /> | |
4499 </LinearGradientBrush> | |
4500 </Rectangle.Fill> | |
4501 </Rectangle> | |
4502 <Rectangle Height="1" Margin="0,1,0,0"> | |
4503 <Rectangle.Fill> | |
4504 <LinearGradientBrush StartPoint="0,0" EndPoint="1,0"> | |
4505 <GradientStop Offset="0" Color="#00FFFFFF" /> | |
4506 <GradientStop Offset="0.2" Color="#80FFFFFF" /> | |
4507 <GradientStop Offset="0.8" Color="#80FFFFFF" /> | |
4508 <GradientStop Offset="1" Color="#00FFFFFF" /> | |
4509 </LinearGradientBrush> | |
4510 </Rectangle.Fill> | |
4511 </Rectangle> | |
4512 </Grid> | |
4513 <Grid x:Name="VerticalTemplate" Margin="{TemplateBinding Padding}" Width="2"> | |
4514 <Rectangle HorizontalAlignment="Left" Width="1"> | |
4515 <Rectangle.Fill> | |
4516 <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> | |
4517 <GradientStop Offset="0" Color="#00000000" /> | |
4518 <GradientStop Offset="0.2" Color="#80000000" /> | |
4519 <GradientStop Offset="0.8" Color="#80000000" /> | |
4520 <GradientStop Offset="1" Color="#00000000" /> | |
4521 </LinearGradientBrush> | |
4522 </Rectangle.Fill> | |
4523 </Rectangle> | |
4524 <Rectangle Margin="1,0,0,0" Width="1"> | |
4525 <Rectangle.Fill> | |
4526 <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> | |
4527 <GradientStop Offset="0" Color="#00FFFFFF" /> | |
4528 <GradientStop Offset="0.2" Color="#80FFFFFF" /> | |
4529 <GradientStop Offset="0.8" Color="#80FFFFFF" /> | |
4530 <GradientStop Offset="1" Color="#00FFFFFF" /> | |
4531 </LinearGradientBrush> | |
4532 </Rectangle.Fill> | |
4533 </Rectangle> | |
4534 </Grid> | |
4535 <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="False" Margin="1" Opacity="0" RadiusX="1" RadiusY="1" Stroke="#00000000" StrokeThickness="1" /> | |
4536 </Grid> | |
4537 </ControlTemplate> | |
4538 </Setter.Value> | |
4539 </Setter> | |
4540 </Style> | |
4541 | |
4542 <!--DataGridCell Style--> | |
4543 <Style TargetType="DataGridCell" x:Key="DefaultDataGridCellStyle"> | |
4544 <Setter Property="Background" Value="Transparent"/> | |
4545 <Setter Property="HorizontalContentAlignment" Value="Stretch"/> | |
4546 <Setter Property="VerticalContentAlignment" Value="Stretch"/> | |
4547 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
4548 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
4549 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
4550 <Setter Property="IsTabStop" Value="True"/> | |
4551 <Setter Property="Template"> | |
4552 <Setter.Value> | |
4553 <ControlTemplate TargetType="DataGridCell"> | |
4554 <Grid x:Name="Root" Background="{TemplateBinding Background}"> | |
4555 <Grid.ColumnDefinitions> | |
4556 <ColumnDefinition/> | |
4557 <ColumnDefinition Width="Auto"/> | |
4558 </Grid.ColumnDefinitions> | |
4559 <VisualStateManager.VisualStateGroups> | |
4560 <VisualStateGroup x:Name="CurrentStates"> | |
4561 <VisualState x:Name="Regular"/> | |
4562 <VisualState x:Name="Current"> | |
4563 <Storyboard> | |
4564 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual" From="0.3"/> | |
4565 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
4566 <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/> | |
4567 </DoubleAnimationUsingKeyFrames> | |
4568 </Storyboard> | |
4569 </VisualState> | |
4570 </VisualStateGroup> | |
4571 <VisualStateGroup x:Name="ValidationStates"> | |
4572 <VisualState x:Name="Valid"/> | |
4573 <VisualState x:Name="InvalidFocused"> | |
4574 <Storyboard> | |
4575 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InvalidVisualElement"/> | |
4576 <ColorAnimation Duration="0" To="{StaticResource WhiteColor}" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="FocusVisual"/> | |
4577 </Storyboard> | |
4578 </VisualState> | |
4579 <VisualState x:Name="InvalidUnfocused"> | |
4580 <Storyboard> | |
4581 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InvalidVisualElement"/> | |
4582 <ColorAnimation Duration="0" To="{StaticResource WhiteColor}" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="FocusVisual"/> | |
4583 </Storyboard> | |
4584 </VisualState> | |
4585 </VisualStateGroup> | |
4586 <VisualStateGroup x:Name="CommonStates"> | |
4587 <VisualState x:Name="MouseOver"> | |
4588 <Storyboard> | |
4589 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
4590 <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/> | |
4591 </DoubleAnimationUsingKeyFrames> | |
4592 </Storyboard> | |
4593 </VisualState> | |
4594 <VisualState x:Name="Normal"/> | |
4595 </VisualStateGroup> | |
4596 <VisualStateGroup x:Name="SelectionStates"> | |
4597 <VisualState x:Name="Unselected"/> | |
4598 <VisualState x:Name="Selected"/> | |
4599 </VisualStateGroup> | |
4600 <VisualStateGroup x:Name="InteractionStates"> | |
4601 <VisualState x:Name="Editing"/> | |
4602 <VisualState x:Name="Display"/> | |
4603 </VisualStateGroup> | |
4604 </VisualStateManager.VisualStateGroups> | |
4605 <Rectangle x:Name="FocusVisual" HorizontalAlignment="Stretch" Fill="Transparent" IsHitTestVisible="False" Opacity="0" StrokeThickness="1" VerticalAlignment="Stretch"> | |
4606 <Rectangle.Stroke> | |
4607 <SolidColorBrush Color="{StaticResource Gray2}" PresentationOptions:Freeze="True"/> | |
4608 </Rectangle.Stroke> | |
4609 </Rectangle> | |
4610 <Rectangle x:Name="SelectedRectangle" Grid.Column="0" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource NormalBrush}"/> | |
4611 <Rectangle x:Name="MouseOverRectangle" Grid.Column="0" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}"/> | |
4612 <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1,0,0,0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Grid.ColumnSpan="2" | |
4613 RenderOptions.ClearTypeHint="Enabled"/> | |
4614 <Rectangle x:Name="InvalidVisualElement" HorizontalAlignment="Stretch" IsHitTestVisible="False" Opacity="0" Stroke="{StaticResource ControlsValidationBrush}" StrokeThickness="1" VerticalAlignment="Stretch"/> | |
4615 <Rectangle x:Name="RightGridLine" Grid.Column="1" VerticalAlignment="Stretch" Width="1"/> | |
4616 </Grid> | |
4617 </ControlTemplate> | |
4618 </Setter.Value> | |
4619 </Setter> | |
4620 </Style> | |
4621 | |
4622 <!--DataGridColumnHeader Style--> | |
4623 <Style TargetType="DataGridColumnHeader" x:Key="DefaultDataGridColumnHeaderStyle"> | |
4624 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
4625 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
4626 <Setter Property="FontSize" Value="{StaticResource ControlTitleFontSize}"/> | |
4627 <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
4628 <Setter Property="VerticalContentAlignment" Value="Center"/> | |
4629 <Setter Property="IsTabStop" Value="False"/> | |
4630 <Setter Property="SeparatorBrush" Value="{StaticResource SeperatorBrush}"/> | |
4631 <Setter Property="Padding" Value="4,5,4,5"/> | |
4632 <Setter Property="Template"> | |
4633 <Setter.Value> | |
4634 <ControlTemplate TargetType="DataGridColumnHeader"> | |
4635 <Border BorderBrush="Black" BorderThickness="0,1"> | |
4636 <Border.Resources> | |
4637 <Style x:Key="ColumnHeaderGripperStyle" TargetType="Thumb"> | |
4638 <Setter Property="Width" Value="2"/> | |
4639 <Setter Property="Background" Value="Transparent"/> | |
4640 <Setter Property="Cursor" Value="SizeWE"/> | |
4641 <Setter Property="Template"> | |
4642 <Setter.Value> | |
4643 <ControlTemplate TargetType="Thumb"> | |
4644 <Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}"/> | |
4645 </ControlTemplate> | |
4646 </Setter.Value> | |
4647 </Setter> | |
4648 </Style> | |
4649 </Border.Resources> | |
4650 | |
4651 <VisualStateManager.VisualStateGroups> | |
4652 <VisualStateGroup x:Name="CommonStates"> | |
4653 <VisualState x:Name="Normal"/> | |
4654 <VisualState x:Name="MouseOver"> | |
4655 <Storyboard> | |
4656 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
4657 <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/> | |
4658 </DoubleAnimationUsingKeyFrames> | |
4659 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverLeftRightSeperator"> | |
4660 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
4661 </DoubleAnimationUsingKeyFrames> | |
4662 </Storyboard> | |
4663 </VisualState> | |
4664 <VisualState x:Name="Pressed"> | |
4665 <Storyboard> | |
4666 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedRectangle"> | |
4667 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
4668 </DoubleAnimationUsingKeyFrames> | |
4669 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedLeftRightSeperator"> | |
4670 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
4671 </DoubleAnimationUsingKeyFrames> | |
4672 </Storyboard> | |
4673 </VisualState> | |
4674 </VisualStateGroup> | |
4675 <VisualStateGroup x:Name="SortStates"> | |
4676 <VisualState x:Name="Unsorted"/> | |
4677 <VisualState x:Name="SortAscending"> | |
4678 <Storyboard> | |
4679 <DoubleAnimation Duration="0" To="1.0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SortIcon"/> | |
4680 </Storyboard> | |
4681 </VisualState> | |
4682 <VisualState x:Name="SortDescending"> | |
4683 <Storyboard> | |
4684 <DoubleAnimation Duration="0" To="1.0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SortIcon"/> | |
4685 <DoubleAnimation Duration="0" To="-.9" Storyboard.TargetProperty="(RenderTransform).ScaleY" Storyboard.TargetName="SortIcon"/> | |
4686 </Storyboard> | |
4687 </VisualState> | |
4688 </VisualStateGroup> | |
4689 </VisualStateManager.VisualStateGroups> | |
4690 | |
4691 <Grid x:Name="Root" Height="30"> | |
4692 <Grid.ColumnDefinitions> | |
4693 <ColumnDefinition Width="*" /> | |
4694 <ColumnDefinition Width="Auto" /> | |
4695 </Grid.ColumnDefinitions> | |
4696 <Rectangle x:Name="BackgroundRectangle" Grid.ColumnSpan="2" Stretch="Fill" Fill="{StaticResource WhiteBrush}"/> | |
4697 <Rectangle x:Name="MouseOverRectangle" Grid.ColumnSpan="2" Opacity="0"> | |
4698 <Rectangle.Fill> | |
4699 <SolidColorBrush Color="{StaticResource Gray8}" PresentationOptions:Freeze="True"/> | |
4700 </Rectangle.Fill> | |
4701 </Rectangle> | |
4702 <Rectangle x:Name="PressedRectangle" Grid.ColumnSpan="2" Opacity="0"> | |
4703 <Rectangle.Fill> | |
4704 <SolidColorBrush Color="{StaticResource Gray8}" PresentationOptions:Freeze="True"/> | |
4705 </Rectangle.Fill> | |
4706 </Rectangle> | |
4707 <Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> | |
4708 <Grid.ColumnDefinitions> | |
4709 <ColumnDefinition Width="*" /> | |
4710 <ColumnDefinition Width="Auto" /> | |
4711 </Grid.ColumnDefinitions> | |
4712 <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | |
4713 VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
4714 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | |
4715 RenderOptions.ClearTypeHint="Enabled"/> | |
4716 <Path x:Name="SortIcon" Grid.Column="1" Data="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z " Fill="{StaticResource GrayBrush3}" HorizontalAlignment="Left" Margin="4,0,0,0" Opacity="0" RenderTransformOrigin=".5,.5" Stretch="Uniform" VerticalAlignment="Center" Width="8"> | |
4717 <Path.RenderTransform> | |
4718 <ScaleTransform ScaleY=".9" ScaleX=".9"/> | |
4719 </Path.RenderTransform> | |
4720 </Path> | |
4721 </Grid> | |
4722 <Rectangle x:Name="VerticalSeparator" Grid.Column="1" Fill="{TemplateBinding SeparatorBrush}" Visibility="{TemplateBinding SeparatorVisibility}" VerticalAlignment="Stretch" Width="1" Opacity="0"/> | |
4723 <Border x:Name="MouseOverLeftRightSeperator" Grid.ColumnSpan="2" BorderThickness="1,0" BorderBrush="{StaticResource SeperatorBrush}" Margin="-1,0,0,0" Opacity="0"/> | |
4724 <Border x:Name="PressedLeftRightSeperator" Grid.ColumnSpan="2" Opacity="0" BorderBrush="{StaticResource SeperatorBrush}" BorderThickness="1,0" Margin="-1,0,0,0"/> | |
4725 <Thumb x:Name="PART_LeftHeaderGripper" Grid.RowSpan="2" Grid.Column="2" | |
4726 HorizontalAlignment="Left" | |
4727 Style="{StaticResource ColumnHeaderGripperStyle}"/> | |
4728 <Thumb x:Name="PART_RightHeaderGripper" Grid.RowSpan="2" Grid.Column="2" | |
4729 HorizontalAlignment="Right" | |
4730 Style="{StaticResource ColumnHeaderGripperStyle}"/> | |
4731 </Grid> | |
4732 </Border> | |
4733 </ControlTemplate> | |
4734 </Setter.Value> | |
4735 </Setter> | |
4736 </Style> | |
4737 | |
4738 <!--DataGridRowHeader Style--> | |
4739 <Style TargetType="DataGridRowHeader" x:Key="DefaultDataGridRowHeaderStyle"> | |
4740 <Setter Property="Background" Value="{StaticResource TransparentLightLightBrush}"/> | |
4741 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
4742 <Setter Property="IsTabStop" Value="False"/> | |
4743 <Setter Property="SeparatorBrush" Value="{StaticResource WhiteBrush}"/> | |
4744 <Setter Property="SeparatorVisibility" Value="Collapsed"/> | |
4745 <Setter Property="Template"> | |
4746 <Setter.Value> | |
4747 <ControlTemplate TargetType="DataGridRowHeader"> | |
4748 <Grid x:Name="Root"> | |
4749 <Grid.Resources> | |
4750 <Style x:Key="RowHeaderGripperStyle" TargetType="Thumb"> | |
4751 <Setter Property="Height" Value="Auto"/> | |
4752 <Setter Property="Width" Value="Auto"/> | |
4753 <Setter Property="Background" Value="Transparent"/> | |
4754 <Setter Property="Cursor" Value="SizeNS"/> | |
4755 <Setter Property="Template"> | |
4756 <Setter.Value> | |
4757 <ControlTemplate TargetType="Thumb"> | |
4758 <Border Padding="{TemplateBinding Padding}" | |
4759 Background="{TemplateBinding Background}"/> | |
4760 </ControlTemplate> | |
4761 </Setter.Value> | |
4762 </Setter> | |
4763 </Style> | |
4764 </Grid.Resources> | |
4765 <Grid.ColumnDefinitions> | |
4766 <ColumnDefinition Width="Auto" /> | |
4767 <ColumnDefinition Width="*" /> | |
4768 </Grid.ColumnDefinitions> | |
4769 <Grid.RowDefinitions> | |
4770 <RowDefinition Height="*" /> | |
4771 <RowDefinition Height="*" /> | |
4772 <RowDefinition Height="Auto"/> | |
4773 </Grid.RowDefinitions> | |
4774 | |
4775 <VisualStateManager.VisualStateGroups> | |
4776 <VisualStateGroup x:Name="CommonStates"> | |
4777 <VisualState x:Name="Normal"/> | |
4778 <VisualState x:Name="MouseOver"> | |
4779 <Storyboard> | |
4780 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
4781 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.695"/> | |
4782 </DoubleAnimationUsingKeyFrames> | |
4783 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CurrentRowGlyph"/> | |
4784 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EditingRowGlyph"/> | |
4785 </Storyboard> | |
4786 </VisualState> | |
4787 <VisualState x:Name="MouseOver_CurrentRow_Selected"> | |
4788 <Storyboard> | |
4789 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
4790 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.695"/> | |
4791 </DoubleAnimationUsingKeyFrames> | |
4792 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CurrentRowGlyph"/> | |
4793 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EditingRowGlyph"/> | |
4794 </Storyboard> | |
4795 </VisualState> | |
4796 <VisualState x:Name="Normal_CurrentRow"> | |
4797 <Storyboard> | |
4798 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CurrentRowGlyph"/> | |
4799 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EditingRowGlyph"/> | |
4800 </Storyboard> | |
4801 </VisualState> | |
4802 <VisualState x:Name="Normal_Selected"> | |
4803 <Storyboard> | |
4804 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
4805 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> | |
4806 </DoubleAnimationUsingKeyFrames> | |
4807 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CurrentRowGlyph"/> | |
4808 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EditingRowGlyph"/> | |
4809 </Storyboard> | |
4810 </VisualState> | |
4811 <VisualState x:Name="Normal_EditingRow"> | |
4812 <Storyboard> | |
4813 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CurrentRowGlyph"/> | |
4814 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EditingRowGlyph"/> | |
4815 </Storyboard> | |
4816 </VisualState> | |
4817 </VisualStateGroup> | |
4818 <VisualStateGroup x:Name="ValidationStates"> | |
4819 <VisualState x:Name="Valid"/> | |
4820 <VisualState x:Name="InvalidFocused"> | |
4821 <Storyboard> | |
4822 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundRectangle"/> | |
4823 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RowInvalidVisualElement"/> | |
4824 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color" Storyboard.TargetName="CurrentRowGlyph"/> | |
4825 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="CurrentRowGlyph"/> | |
4826 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color" Storyboard.TargetName="EditingRowGlyph"/> | |
4827 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[1].Color" Storyboard.TargetName="EditingRowGlyph"/> | |
4828 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[2].Color" Storyboard.TargetName="EditingRowGlyph"/> | |
4829 </Storyboard> | |
4830 </VisualState> | |
4831 <VisualState x:Name="InvalidUnfocused"> | |
4832 <Storyboard> | |
4833 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundRectangle"/> | |
4834 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RowInvalidVisualElement"/> | |
4835 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color" Storyboard.TargetName="CurrentRowGlyph"/> | |
4836 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="CurrentRowGlyph"/> | |
4837 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color" Storyboard.TargetName="EditingRowGlyph"/> | |
4838 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[1].Color" Storyboard.TargetName="EditingRowGlyph"/> | |
4839 <ColorAnimation Duration="0" To="{StaticResource ValidationColor5}" Storyboard.TargetProperty="(Fill).(GradientStops)[2].Color" Storyboard.TargetName="EditingRowGlyph"/> | |
4840 </Storyboard> | |
4841 </VisualState> | |
4842 </VisualStateGroup> | |
4843 </VisualStateManager.VisualStateGroups> | |
4844 <Border BorderBrush="{StaticResource WhiteBrush}" BorderThickness="1,0,1,0" Grid.ColumnSpan="2" Grid.RowSpan="3"> | |
4845 <Grid> | |
4846 <Rectangle x:Name="RowInvalidVisualElement" Grid.ColumnSpan="2" Fill="{StaticResource ValidationSummaryFillBrush2}" Opacity="0" Grid.RowSpan="3" Stretch="Fill"/> | |
4847 <Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}" Grid.ColumnSpan="2" Grid.RowSpan="3" Grid.Column="0"/> | |
4848 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}" Grid.ColumnSpan="2" Grid.RowSpan="3" Grid.Column="0"/> | |
4849 </Grid> | |
4850 </Border> | |
4851 <Rectangle x:Name="HorizontalSeparator" Grid.ColumnSpan="2" Fill="{TemplateBinding SeparatorBrush}" HorizontalAlignment="Stretch" Height="1" Margin="1,0,1,0" Grid.Row="2" Visibility="{TemplateBinding SeparatorVisibility}"/> | |
4852 <ContentPresenter Content="{TemplateBinding Content}" Grid.Column="1" HorizontalAlignment="Center" Grid.RowSpan="2" VerticalAlignment="Center" | |
4853 RenderOptions.ClearTypeHint="Enabled"/> | |
4854 <Path x:Name="CurrentRowGlyph" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z " HorizontalAlignment="Center" Height="10" Margin="8,0,8,0" Opacity="0" Grid.RowSpan="2" Stretch="Fill" VerticalAlignment="Center" Width="6"> | |
4855 <Path.Fill> | |
4856 <LinearGradientBrush EndPoint="0,1.75" StartPoint="0,-0.150000005960464"> | |
4857 <LinearGradientBrush.RelativeTransform> | |
4858 <MatrixTransform/> | |
4859 </LinearGradientBrush.RelativeTransform> | |
4860 <GradientStop Color="{StaticResource AccentColorBlue}" Offset="0"/> | |
4861 <GradientStop Color="{StaticResource AccentColorLightBlue}" Offset="1"/> | |
4862 </LinearGradientBrush> | |
4863 </Path.Fill> | |
4864 </Path> | |
4865 <Path x:Name="EditingRowGlyph" Fill="{StaticResource HighlightLightBrush}" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z " HorizontalAlignment="Center" Height="10" Margin="8,0,8,0" Opacity="0" Grid.RowSpan="2" Stretch="Fill" VerticalAlignment="Center" Width="6"/> | |
4866 <Thumb x:Name="PART_TopHeaderGripper" VerticalAlignment="Top" Grid.ColumnSpan="2" Grid.Row="2" Height="1" Style="{StaticResource RowHeaderGripperStyle}"/> | |
4867 <Thumb x:Name="PART_BottomHeaderGripper" VerticalAlignment="Bottom" Height="1" Grid.ColumnSpan="2" Grid.Row="2" Style="{StaticResource RowHeaderGripperStyle}"/> | |
4868 </Grid> | |
4869 </ControlTemplate> | |
4870 </Setter.Value> | |
4871 </Setter> | |
4872 </Style> | |
4873 | |
4874 <!--DataGridRow Style--> | |
4875 <Style TargetType="DataGridRow" x:Key="DefaultDataGridRowStyle"> | |
4876 <Setter Property="SnapsToDevicePixels" Value="true"/> | |
4877 <Setter Property="Template"> | |
4878 <Setter.Value> | |
4879 <ControlTemplate TargetType="DataGridRow"> | |
4880 <SelectiveScrollingGrid x:Name="Root"> | |
4881 <SelectiveScrollingGrid.Resources> | |
4882 <Storyboard x:Key="DetailsVisibleTransition"> | |
4883 <DoubleAnimation Duration="00:00:0.1" Storyboard.TargetProperty="ContentHeight" Storyboard.TargetName="DetailsPresenter"/> | |
4884 </Storyboard> | |
4885 </SelectiveScrollingGrid.Resources> | |
4886 <SelectiveScrollingGrid.ColumnDefinitions> | |
4887 <ColumnDefinition Width="Auto"/> | |
4888 <ColumnDefinition Width="*"/> | |
4889 </SelectiveScrollingGrid.ColumnDefinitions> | |
4890 <SelectiveScrollingGrid.RowDefinitions> | |
4891 <RowDefinition Height="*"/> | |
4892 <RowDefinition Height="Auto"/> | |
4893 <RowDefinition Height="Auto"/> | |
4894 </SelectiveScrollingGrid.RowDefinitions> | |
4895 <VisualStateManager.VisualStateGroups> | |
4896 <VisualStateGroup x:Name="CommonStates"> | |
4897 <VisualState x:Name="Normal"/> | |
4898 <VisualState x:Name="Normal_AlternatingRow"> | |
4899 <Storyboard/> | |
4900 </VisualState> | |
4901 <VisualState x:Name="MouseOver"> | |
4902 <Storyboard> | |
4903 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
4904 <EasingDoubleKeyFrame KeyTime="0" Value="0.695"/> | |
4905 </DoubleAnimationUsingKeyFrames> | |
4906 </Storyboard> | |
4907 </VisualState> | |
4908 <VisualState x:Name="Normal_Selected"> | |
4909 <Storyboard> | |
4910 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SelectedRectangle"> | |
4911 <EasingDoubleKeyFrame KeyTime="0" Value="1"/> | |
4912 </DoubleAnimationUsingKeyFrames> | |
4913 </Storyboard> | |
4914 </VisualState> | |
4915 <VisualState x:Name="MouseOver_Selected"> | |
4916 <Storyboard> | |
4917 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverRectangle"> | |
4918 <EasingDoubleKeyFrame KeyTime="0" Value="0.695"/> | |
4919 </DoubleAnimationUsingKeyFrames> | |
4920 </Storyboard> | |
4921 </VisualState> | |
4922 <VisualState x:Name="Unfocused_Selected"> | |
4923 <Storyboard/> | |
4924 </VisualState> | |
4925 </VisualStateGroup> | |
4926 <VisualStateGroup x:Name="ValidationStates"> | |
4927 <VisualState x:Name="Valid"/> | |
4928 <VisualState x:Name="InvalidFocused"> | |
4929 <Storyboard> | |
4930 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InvalidVisualElement"/> | |
4931 </Storyboard> | |
4932 </VisualState> | |
4933 <VisualState x:Name="InvalidUnfocused"> | |
4934 <Storyboard> | |
4935 <!--<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InvalidVisualElement"/>--> | |
4936 </Storyboard> | |
4937 </VisualState> | |
4938 </VisualStateGroup> | |
4939 </VisualStateManager.VisualStateGroups> | |
4940 <Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2"/> | |
4941 <Rectangle x:Name="MouseOverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource ItemSelectedBrush}" Grid.ColumnSpan="2" Grid.RowSpan="2"/> | |
4942 <DataGridRowHeader x:Name="RowHeader" | |
4943 Grid.RowSpan="2" | |
4944 SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" | |
4945 Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=HeadersVisibility, Converter={x:Static DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static DataGridHeadersVisibility.Row}}"/> | |
4946 <DataGridCellsPresenter x:Name="CellsPresenter" | |
4947 Grid.Column="1" | |
4948 ItemsPanel="{TemplateBinding ItemsPanel}" | |
4949 SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> | |
4950 <DataGridDetailsPresenter x:Name="DetailsPresenter" | |
4951 Grid.Column="1" Grid.Row="1" | |
4952 SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=AreRowDetailsFrozen, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}}" | |
4953 Visibility="{TemplateBinding DetailsVisibility}" /> | |
4954 <Rectangle x:Name="BottomGridLine" Grid.Column="1" HorizontalAlignment="Stretch" Height="1" Grid.Row="2" IsHitTestVisible="False"/> | |
4955 </SelectiveScrollingGrid> | |
4956 </ControlTemplate> | |
4957 </Setter.Value> | |
4958 </Setter> | |
4959 </Style> | |
4960 | |
4961 <!--DataGrid Style--> | |
4962 <Style TargetType="DataGrid" x:Key="DefaultDataGridStyle"> | |
4963 <Setter Property="Foreground" Value="{StaticResource TextBrush}"/> | |
4964 <Setter Property="FontFamily" Value="{StaticResource ContentFontFamily}"/> | |
4965 <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> | |
4966 <Setter Property="Background" Value="{StaticResource WhiteColorBrush}"/> | |
4967 <Setter Property="BorderBrush" Value="{StaticResource ThumbBrush}"/> | |
4968 <Setter Property="BorderThickness" Value="0"/> | |
4969 <Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/> | |
4970 <Setter Property="ScrollViewer.CanContentScroll" Value="True"/> | |
4971 <Setter Property="ScrollViewer.PanningMode" Value="Both" /> | |
4972 <Setter Property="Stylus.IsFlicksEnabled" Value="False" /> | |
4973 <Setter Property="RowBackground" Value="Transparent"/> | |
4974 <Setter Property="AlternatingRowBackground" Value="Transparent"/> | |
4975 <Setter Property="HorizontalScrollBarVisibility" Value="Auto"/> | |
4976 <Setter Property="VerticalScrollBarVisibility" Value="Auto"/> | |
4977 <Setter Property="GridLinesVisibility" Value="None"/> | |
4978 <Setter Property="HorizontalGridLinesBrush" Value="{StaticResource GrayBrush2}"/> | |
4979 <Setter Property="VerticalGridLinesBrush" Value="{StaticResource GrayBrush2}"/> | |
4980 <Setter Property="IsTabStop" Value="True" /> | |
4981 <Setter Property="DropLocationIndicatorStyle"> | |
4982 <Setter.Value> | |
4983 <Style TargetType="Separator"> | |
4984 <Setter Property="Background" Value="{StaticResource GrayBrush3}"/> | |
4985 <Setter Property="Width" Value="2"/> | |
4986 <Setter Property="Template"> | |
4987 <Setter.Value> | |
4988 <ControlTemplate TargetType="Separator"> | |
4989 <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/> | |
4990 </ControlTemplate> | |
4991 </Setter.Value> | |
4992 </Setter> | |
4993 </Style> | |
4994 </Setter.Value> | |
4995 </Setter> | |
4996 <Setter Property="Template"> | |
4997 <Setter.Value> | |
4998 <ControlTemplate TargetType="DataGrid"> | |
4999 <Grid Background="{TemplateBinding Background}"> | |
5000 <VisualStateManager.VisualStateGroups> | |
5001 <VisualStateGroup x:Name="CommonStates"> | |
5002 <VisualState x:Name="Normal"/> | |
5003 <VisualState x:Name="Disabled"> | |
5004 <Storyboard> | |
5005 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/> | |
5006 </Storyboard> | |
5007 </VisualState> | |
5008 </VisualStateGroup> | |
5009 </VisualStateManager.VisualStateGroups> | |
5010 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> | |
5011 <ScrollViewer x:Name="DG_ScrollViewer" | |
5012 Focusable="False"> | |
5013 <ScrollViewer.Template> | |
5014 <ControlTemplate TargetType="ScrollViewer"> | |
5015 <Grid x:Name="Root" Background="{TemplateBinding Background}"> | |
5016 <Grid.Resources> | |
5017 <ControlTemplate x:Key="TopLeftHeaderTemplate" TargetType="DataGridColumnHeader"> | |
5018 <Grid x:Name="Root"> | |
5019 <Grid.RowDefinitions> | |
5020 <RowDefinition/> | |
5021 <RowDefinition/> | |
5022 <RowDefinition Height="Auto"/> | |
5023 </Grid.RowDefinitions> | |
5024 <Border BorderBrush="{StaticResource SeperatorBrush}" Background="{StaticResource WhiteBrush}" Grid.RowSpan="2"/> | |
5025 <Rectangle Fill="{StaticResource GrayBrush4}" Height="1" Grid.RowSpan="2" StrokeThickness="1" VerticalAlignment="Bottom" Width="Auto" Visibility="Collapsed"/> | |
5026 </Grid> | |
5027 </ControlTemplate> | |
5028 <ControlTemplate x:Key="TopRightHeaderTemplate" TargetType="DataGridColumnHeader"> | |
5029 <Grid x:Name="RootElement"> | |
5030 <Grid.RowDefinitions> | |
5031 <RowDefinition/> | |
5032 <RowDefinition/> | |
5033 <RowDefinition Height="Auto"/> | |
5034 </Grid.RowDefinitions> | |
5035 <Border Background="{StaticResource WhiteBrush}" Grid.RowSpan="2"/> | |
5036 </Grid> | |
5037 </ControlTemplate> | |
5038 </Grid.Resources> | |
5039 <Grid.ColumnDefinitions> | |
5040 <ColumnDefinition Width="Auto"/> | |
5041 <ColumnDefinition Width="*"/> | |
5042 <ColumnDefinition Width="Auto"/> | |
5043 </Grid.ColumnDefinitions> | |
5044 <Grid.RowDefinitions> | |
5045 <RowDefinition Height="Auto"/> | |
5046 <RowDefinition Height="*"/> | |
5047 <RowDefinition Height="Auto"/> | |
5048 </Grid.RowDefinitions> | |
5049 <DataGridColumnHeader x:Name="TopLeftCornerHeader" Template="{StaticResource TopLeftHeaderTemplate}" Width="22" | |
5050 Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=HeadersVisibility, Converter={x:Static DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static DataGridHeadersVisibility.All}}"/> | |
5051 <DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" | |
5052 Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=HeadersVisibility, Converter={x:Static DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static DataGridHeadersVisibility.Column}}"/> | |
5053 <DataGridColumnHeader x:Name="TopRightCornerHeader" Grid.Column="2" Template="{StaticResource TopRightHeaderTemplate}" IsHitTestVisible="False"/> | |
5054 <Rectangle x:Name="ColumnHeadersAndRowsSeparator" Grid.ColumnSpan="3" Fill="{StaticResource GrayBrush2}" Height="1" StrokeThickness="1" VerticalAlignment="Bottom" Width="Auto" Visibility="Collapsed" IsHitTestVisible="False"/> | |
5055 <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.ColumnSpan="2" Grid.Row="1" CanContentScroll="{TemplateBinding CanContentScroll}" /> | |
5056 <Rectangle x:Name="BottomRightCorner" Grid.Column="2" Fill="{TemplateBinding Background}" Grid.Row="2" IsHitTestVisible="False" /> | |
5057 <Rectangle x:Name="BottomLeftCorner" Grid.ColumnSpan="2" Fill="{TemplateBinding Background}" Grid.Row="2" IsHitTestVisible="False"/> | |
5058 | |
5059 <ScrollBar x:Name="PART_VerticalScrollBar" | |
5060 Grid.Column="2" Grid.Row="1" | |
5061 Orientation="Vertical" | |
5062 ViewportSize="{TemplateBinding ViewportHeight}" | |
5063 Maximum="{TemplateBinding ScrollableHeight}" | |
5064 Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" | |
5065 Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/> | |
5066 | |
5067 <Grid Grid.Column="1" Grid.Row="2"> | |
5068 <Grid.ColumnDefinitions> | |
5069 <ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" /> | |
5070 <ColumnDefinition Width="*" /> | |
5071 </Grid.ColumnDefinitions> | |
5072 <Rectangle x:Name="FrozenColumnScrollBarSpacer" IsHitTestVisible="False"/> | |
5073 <ScrollBar x:Name="PART_HorizontalScrollBar" | |
5074 Grid.Column="1" | |
5075 Orientation="Horizontal" | |
5076 ViewportSize="{TemplateBinding ViewportWidth}" | |
5077 Maximum="{TemplateBinding ScrollableWidth}" | |
5078 Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" | |
5079 Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/> | |
5080 </Grid> | |
5081 <!--<ValidationSummary x:Name="ValidationSummary" Grid.ColumnSpan="3" Filter="ObjectErrors" MaxHeight="90" Grid.Row="3"/>--> | |
5082 </Grid> | |
5083 </ControlTemplate> | |
5084 </ScrollViewer.Template> | |
5085 <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> | |
5086 </ScrollViewer> | |
5087 </Border> | |
5088 <Border x:Name="DisabledVisualElement" Background="{StaticResource TransparentLightLightBrush}" CornerRadius="2" HorizontalAlignment="Stretch" Height="Auto" IsHitTestVisible="False" Opacity="0" VerticalAlignment="Stretch" Width="Auto" /> | |
5089 </Grid> | |
5090 </ControlTemplate> | |
5091 </Setter.Value> | |
5092 </Setter> | |
5093 <Style.Triggers> | |
5094 <Trigger Property="IsGrouping" Value="true"> | |
5095 <Setter Property="ScrollViewer.CanContentScroll" Value="false" /> | |
5096 </Trigger> | |
5097 </Style.Triggers> | |
5098 </Style> | |
5099 | |
5100 <!-- Implicit Styles --> | |
5101 <!-- When defining your own styles, set "based on" the same way to keep control theming --> | |
5102 <Style TargetType="Button" BasedOn="{StaticResource DefaultButtonStyle}" /> | |
5103 <Style TargetType="TextBox" BasedOn="{StaticResource DefaultTextBoxStyle}" /> | |
5104 <Style TargetType="ComboBox" BasedOn="{StaticResource DefaultComboBoxStyle}" /> | |
5105 <Style TargetType="ComboBoxItem" BasedOn="{StaticResource DefaultComboBoxItemStyle}" /> | |
5106 <Style TargetType="TextBlock" BasedOn="{StaticResource DefaultTextBlockStyle}" /> | |
5107 <Style TargetType="Label" BasedOn="{StaticResource DefaultLabelStyle}" /> | |
5108 <Style TargetType="ScrollBar" BasedOn="{StaticResource DefaultScrollBarStyle}" /> | |
5109 <Style TargetType="ScrollViewer" BasedOn="{StaticResource DefaultScrollViewerStyle}" /> | |
5110 <Style TargetType="ListBox" BasedOn="{StaticResource DefaultListBoxStyle}" /> | |
5111 <Style TargetType="ListBoxItem" BasedOn="{StaticResource DefaultListBoxItemStyle}" /> | |
5112 <Style TargetType="ListView" BasedOn="{StaticResource DefaultListViewStyle}" /> | |
5113 <Style TargetType="ListViewItem" BasedOn="{StaticResource DefaultListViewItemStyle}" /> | |
5114 <Style TargetType="GridViewColumnHeader" BasedOn="{StaticResource DefaultGridViewColumnHeaderStyle}" /> | |
5115 <Style TargetType="CheckBox" BasedOn="{StaticResource DefaultCheckBoxStyle}" /> | |
5116 <Style TargetType="PasswordBox" BasedOn="{StaticResource DefaultPasswordBoxStyle}" /> | |
5117 <Style TargetType="ProgressBar" BasedOn="{StaticResource DefaultProgressBarStyle}" /> | |
5118 <Style TargetType="RadioButton" BasedOn="{StaticResource DefaultRadioButtonStyle}" /> | |
5119 <Style TargetType="RepeatButton" BasedOn="{StaticResource DefaultRepeatButtonStyle}" /> | |
5120 <Style TargetType="Slider" BasedOn="{StaticResource DefaultSliderStyle}" /> | |
5121 <Style TargetType="ToggleButton" BasedOn="{StaticResource DefaultToggleButtonStyle}" /> | |
5122 <Style TargetType="ToolTip" BasedOn="{StaticResource DefaultToolTipStyle}" /> | |
5123 <Style TargetType="ContextMenu" BasedOn="{StaticResource DefaultContextMenuStyle}" /> | |
5124 <Style TargetType="Separator" BasedOn="{StaticResource DefaultSeparatorStyle}" /> | |
5125 <Style TargetType="MenuItem" BasedOn="{StaticResource DefaultMenuItemStyle}" /> | |
5126 <Style TargetType="CalendarItem" BasedOn="{StaticResource DefaultCalendarItemStyle}" /> | |
5127 <Style TargetType="Calendar" BasedOn="{StaticResource DefaultCalendarStyle}" /> | |
5128 <Style TargetType="CalendarDayButton" BasedOn="{StaticResource DefaultCalendarDayButtonStyle}" /> | |
5129 <Style TargetType="CalendarButton" BasedOn="{StaticResource DefaultCalendarButtonStyle}" /> | |
5130 <Style TargetType="DatePicker" BasedOn="{StaticResource DefaultDatePickerStyle}" /> | |
5131 <Style TargetType="DatePickerTextBox" BasedOn="{StaticResource DefaultTextBoxStyle}" /> | |
5132 <Style TargetType="TreeView" BasedOn="{StaticResource DefaultTreeViewStyle}" /> | |
5133 <Style TargetType="TreeViewItem" BasedOn="{StaticResource DefaultTreeViewItemStyle}" /> | |
5134 <Style TargetType="TabControl" BasedOn="{StaticResource DefaultTabControlStyle}" /> | |
5135 <Style TargetType="TabItem" BasedOn="{StaticResource DefaultTabItemStyle}" /> | |
5136 <Style TargetType="DataGridCell" BasedOn="{StaticResource DefaultDataGridCellStyle}" /> | |
5137 <Style TargetType="DataGridColumnHeader" BasedOn="{StaticResource DefaultDataGridColumnHeaderStyle}" /> | |
5138 <Style TargetType="DataGridRowHeader" BasedOn="{StaticResource DefaultDataGridRowHeaderStyle}" /> | |
5139 <Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRowStyle}" /> | |
5140 <Style TargetType="DataGrid" BasedOn="{StaticResource DefaultDataGridStyle}" /> | |
5141 <Style TargetType="GridSplitter" BasedOn="{StaticResource DefaultGridSplitterStyle}" /> | |
5142 | |
5143 </ResourceDictionary> |