annotate MetroWpf/MetroWpf.Xaml/Styles/Controls.WatermarkTextBox.xaml @ 119:2362f40014dc

really final version
author stevenh7776
date Sun, 27 May 2012 19:54:13 +0100
parents 8049f7c58c2b
children
rev   line source
18
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
1 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
3 xmlns:local="clr-namespace:Microsoft.Windows.Controls"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
4 xmlns:System="clr-namespace:System;assembly=mscorlib">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
5
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
6 <LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
7 <GradientStop Color="#ABADB3" Offset="0.05"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
8 <GradientStop Color="#E2E3EA" Offset="0.07"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
9 <GradientStop Color="#E3E9EF" Offset="1"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
10 </LinearGradientBrush>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
11
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
12 <LinearGradientBrush x:Key="TextBox_MouseOver" EndPoint="0,1" StartPoint="0,0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
13 <GradientStop Color="#5794BF" Offset="0.05"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
14 <GradientStop Color="#B7D5EA" Offset="0.07"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
15 <GradientStop Color="#C7E2F1" Offset="1"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
16 </LinearGradientBrush>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
17
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
18 <LinearGradientBrush x:Key="TextBox_Focused" EndPoint="0,1" StartPoint="0,0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
19 <GradientStop Color="#3D7BAD" Offset="0.05"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
20 <GradientStop Color="#A4C9E3" Offset="0.07"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
21 <GradientStop Color="#B7D9ED" Offset="1"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
22 </LinearGradientBrush>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
23
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
24 <SolidColorBrush x:Key="TextBox_DisabledBorder" Color="#ADB2B5" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
25 <SolidColorBrush x:Key="TextBox_DisabledBackground" Color="#F4F4F4" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
26
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
27 <DataTemplate x:Key="DefaultWatermarkTemplate">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
28 <ContentControl Content="{Binding}" Foreground="Gray" Focusable="False" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
29 </DataTemplate>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
30
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
31 <Style TargetType="{x:Type local:WatermarkTextBox}">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
32 <Setter Property="FontFamily" Value="{DynamicResource ContentFontFamily}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
33 <Setter Property="FontSize" Value="{DynamicResource ContentFontSize}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
34 <Setter Property="BorderThickness" Value="1" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
35 <Setter Property="Height" Value="26" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
36 <Setter Property="MinHeight" Value="26" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
37 <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
38 <Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
39 <Setter Property="VerticalContentAlignment" Value="Center" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
40 <Setter Property="Padding" Value="0" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
41 <Setter Property="BorderBrush" Value="{DynamicResource TextBoxBorderBrush}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
42 <Setter Property="AllowDrop" Value="true"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
43 <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
44 <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
45 <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
46 <Setter Property="WatermarkTemplate" Value="{StaticResource DefaultWatermarkTemplate}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
47 <Setter Property="Template">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
48 <Setter.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
49 <ControlTemplate TargetType="{x:Type local:WatermarkTextBox}">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
50 <Grid>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
51 <VisualStateManager.VisualStateGroups>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
52 <VisualStateGroup x:Name="CommonStates">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
53 <VisualState x:Name="Normal" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
54 <VisualState x:Name="MouseOver">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
55 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
56 <DoubleAnimation Duration="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
57 To="1"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
58 Storyboard.TargetProperty="(UIElement.Opacity)"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
59 Storyboard.TargetName="FocusRectangle" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
60 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
61 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
62 <VisualState x:Name="Disabled">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
63 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
64 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
65 Storyboard.TargetName="DisabledVisualElement">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
66 <SplineDoubleKeyFrame KeyTime="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
67 Value="1" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
68 </DoubleAnimationUsingKeyFrames>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
69 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
70 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
71 <VisualState x:Name="ReadOnly">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
72 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
73 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
74 Storyboard.TargetName="ReadOnlyVisualElement">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
75 <SplineDoubleKeyFrame KeyTime="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
76 Value="1" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
77 </DoubleAnimationUsingKeyFrames>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
78 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
79 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
80 </VisualStateGroup>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
81 <VisualStateGroup x:Name="FocusStates">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
82 <VisualState x:Name="Focused">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
83 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
84 <DoubleAnimation Duration="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
85 To="1"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
86 Storyboard.TargetProperty="(UIElement.Opacity)"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
87 Storyboard.TargetName="FocusRectangle" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
88 <DoubleAnimation Duration="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
89 To="1"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
90 Storyboard.TargetProperty="(UIElement.Opacity)"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
91 Storyboard.TargetName="FocusInnerRectangle" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
92 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
93 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
94 <VisualState x:Name="Unfocused">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
95 <Storyboard />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
96 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
97 </VisualStateGroup>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
98 <VisualStateGroup x:Name="ValidationStates">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
99 <VisualState x:Name="Valid" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
100 <VisualState x:Name="InvalidUnfocused">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
101 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
102 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
103 Storyboard.TargetName="ValidationErrorElement">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
104 <DiscreteObjectKeyFrame KeyTime="0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
105 <DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
106 <Visibility>Visible</Visibility>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
107 </DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
108 </DiscreteObjectKeyFrame>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
109 </ObjectAnimationUsingKeyFrames>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
110 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
111 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
112 <VisualState x:Name="InvalidFocused">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
113 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
114 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
115 Storyboard.TargetName="ValidationErrorElement">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
116 <DiscreteObjectKeyFrame KeyTime="0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
117 <DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
118 <Visibility>Visible</Visibility>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
119 </DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
120 </DiscreteObjectKeyFrame>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
121 </ObjectAnimationUsingKeyFrames>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
122 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
123 Storyboard.TargetName="validationTooltip">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
124 <DiscreteObjectKeyFrame KeyTime="0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
125 <DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
126 <System:Boolean>True</System:Boolean>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
127 </DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
128 </DiscreteObjectKeyFrame>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
129 </ObjectAnimationUsingKeyFrames>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
130 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
131 </VisualState>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
132 </VisualStateGroup>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
133 </VisualStateManager.VisualStateGroups>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
134 <Rectangle x:Name="Base"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
135 Stroke="{TemplateBinding BorderBrush}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
136 StrokeThickness="{TemplateBinding BorderThickness}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
137 Opacity="1"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
138 Fill="{TemplateBinding Background}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
139 <Rectangle x:Name="FocusRectangle"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
140 StrokeThickness="{TemplateBinding BorderThickness}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
141 Opacity="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
142 Stroke="{DynamicResource TextBoxMouseOverBorderBrush}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
143 <Rectangle x:Name="FocusInnerRectangle"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
144 StrokeThickness="{TemplateBinding BorderThickness}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
145 Opacity="0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
146 Margin="1"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
147 Stroke="{DynamicResource TextBoxMouseOverInnerBorderBrush}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
148 <Grid Margin="0,1,0,0" >
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
149 <Border x:Name="ReadOnlyVisualElement"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
150 Background="{x:Null}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
151 Opacity="0"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
152 <Grid Margin="8,0,0,0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
153 <ScrollViewer x:Name="PART_ContentHost"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
154 SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
155 <ContentPresenter x:Name="PART_WatermarkHost"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
156 Content="{TemplateBinding Watermark}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
157 ContentTemplate="{TemplateBinding WatermarkTemplate}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
158 VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
159 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
160 IsHitTestVisible="False"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
161 Margin="{TemplateBinding Padding}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
162 Visibility="Collapsed"/>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
163
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
164 </Grid>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
165 </Grid>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
166 <Rectangle x:Name="DisabledVisualElement"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
167 Stroke="{DynamicResource ControlsDisabledBrush}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
168 StrokeThickness="{TemplateBinding BorderThickness}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
169 Fill="{DynamicResource ControlsDisabledBrush}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
170 IsHitTestVisible="False"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
171 Opacity="0" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
172 <Border x:Name="ValidationErrorElement"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
173 BorderBrush="{DynamicResource ControlsValidationBrush}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
174 BorderThickness="1"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
175 Visibility="Collapsed">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
176 <ToolTipService.ToolTip>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
177 <ToolTip x:Name="validationTooltip"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
178 DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
179 Placement="Right"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
180 PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
181 Template="{DynamicResource ValidationToolTipTemplate}">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
182 <ToolTip.Triggers>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
183 <EventTrigger RoutedEvent="Canvas.Loaded">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
184 <BeginStoryboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
185 <Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
186 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
187 Storyboard.TargetName="validationTooltip">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
188 <DiscreteObjectKeyFrame KeyTime="0">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
189 <DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
190 <System:Boolean>true</System:Boolean>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
191 </DiscreteObjectKeyFrame.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
192 </DiscreteObjectKeyFrame>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
193 </ObjectAnimationUsingKeyFrames>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
194 </Storyboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
195 </BeginStoryboard>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
196 </EventTrigger>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
197 </ToolTip.Triggers>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
198 </ToolTip>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
199 </ToolTipService.ToolTip>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
200 <Grid Background="Transparent"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
201 HorizontalAlignment="Right"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
202 Height="12"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
203 Margin="1,-4,-4,0"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
204 VerticalAlignment="Top"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
205 Width="12">
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
206 <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
207 Fill="{DynamicResource ValidationBrush5}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
208 Margin="1,3,0,0" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
209 <Path Data="M 0,0 L2,0 L 8,6 L8,8"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
210 Fill="{DynamicResource WhiteColorBrush}"
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
211 Margin="1,3,0,0" />
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
212 </Grid>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
213 </Border>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
214 </Grid>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
215 <ControlTemplate.Triggers>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
216 <MultiTrigger>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
217 <MultiTrigger.Conditions>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
218 <Condition Property="IsFocused" Value="False"></Condition>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
219 <Condition Property="Text" Value=""></Condition>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
220 </MultiTrigger.Conditions>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
221 <MultiTrigger.Setters>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
222 <Setter Property="Visibility" TargetName="PART_WatermarkHost" Value="Visible"></Setter>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
223 </MultiTrigger.Setters>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
224 </MultiTrigger>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
225 </ControlTemplate.Triggers>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
226 </ControlTemplate>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
227 </Setter.Value>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
228 </Setter>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
229 </Style>
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
230
8049f7c58c2b Login form 75% there
stevenh7776 stevenhollidge@hotmail.com
parents:
diff changeset
231 </ResourceDictionary>