author | cavaliet |
Wed, 28 Oct 2009 17:07:27 +0100 | |
changeset 182 | 25b49d4f1635 |
parent 153 | 3636bb5f4b67 |
permissions | -rw-r--r-- |
147 | 1 |
<UserControl |
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
6 |
mc:Ignorable="d" |
|
7 |
xmlns:Custom="http://schemas.microsoft.com/surface/2008" |
|
8 |
xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic" |
|
9 |
x:Class="FingersDance.Control.SessionInput.UserControlNewProject" |
|
10 |
Background="#FFA09E9E" |
|
11 |
Width="256" |
|
12 |
Height="192" |
|
13 |
x:Name="UserControlnewproject"> |
|
14 |
<UserControl.Resources> |
|
15 |
<Style x:Key="FingersDance.Control.SurfaceRadioButton" TargetType="{x:Type Custom:SurfaceRadioButton}"> |
|
16 |
<Setter Property="HorizontalContentAlignment" Value="Left"/> |
|
17 |
<Setter Property="Background" Value="Transparent"/> |
|
18 |
<Setter Property="Foreground" Value="Black"/> |
|
19 |
<Setter Property="BorderBrush" Value="Transparent"/> |
|
20 |
<Setter Property="Padding" Value="5,0,0,0"/> |
|
21 |
<Setter Property="Template"> |
|
22 |
<Setter.Value> |
|
23 |
<ControlTemplate TargetType="{x:Type Custom:SurfaceRadioButton}"> |
|
24 |
<ControlTemplate.Resources> |
|
25 |
<Storyboard x:Key="ThreeStateExit"> |
|
26 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ThreeStateMark" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
27 |
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/> |
|
28 |
</DoubleAnimationUsingKeyFrames> |
|
29 |
</Storyboard> |
|
30 |
<Storyboard x:Key="Press"> |
|
31 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
32 |
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
|
33 |
</DoubleAnimationUsingKeyFrames> |
|
34 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
35 |
<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-2"/> |
|
36 |
</ThicknessAnimationUsingKeyFrames> |
|
37 |
</Storyboard> |
|
38 |
<Storyboard x:Key="Checked"> |
|
39 |
<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="Checkmark" Storyboard.TargetProperty="Opacity" To="1"/> |
|
40 |
</Storyboard> |
|
41 |
<Storyboard x:Key="Release"> |
|
42 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
43 |
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
|
44 |
<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
|
45 |
</DoubleAnimationUsingKeyFrames> |
|
46 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
47 |
<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-2"/> |
|
48 |
<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
|
49 |
</ThicknessAnimationUsingKeyFrames> |
|
50 |
</Storyboard> |
|
51 |
<Storyboard x:Key="Unchecked"> |
|
52 |
<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="Checkmark" Storyboard.TargetProperty="Opacity" To="0"/> |
|
53 |
</Storyboard> |
|
54 |
<Storyboard x:Key="ThreeStateEnter"> |
|
55 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ThreeStateMark" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
56 |
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.9"/> |
|
57 |
</DoubleAnimationUsingKeyFrames> |
|
58 |
</Storyboard> |
|
59 |
</ControlTemplate.Resources> |
|
60 |
<BulletDecorator x:Name="bulletDecorator" MinHeight="30" MinWidth="30" Height="Auto" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Background="Transparent"> |
|
61 |
<BulletDecorator.Bullet> |
|
62 |
<Grid MinHeight="30" MinWidth="30" Width="30" Height="30" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
63 |
<Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="Transparent" StrokeThickness="1" RadiusX="15" RadiusY="15" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> |
|
64 |
<Rectangle x:Name="Button" Fill="{x:Null}" StrokeThickness="1" RadiusX="15" RadiusY="15" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Stroke="White"/> |
|
65 |
<Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" Margin="3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Fill="{x:Null}" Stroke="{x:Null}"/> |
|
66 |
<Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" Margin="2" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/> |
|
67 |
<Rectangle x:Name="Checkmark" Fill="{x:Null}" StrokeThickness="7" RadiusX="6" RadiusY="6" Margin="8" Opacity="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
68 |
<Rectangle.Stroke> |
|
69 |
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1"> |
|
70 |
<GradientStop Color="#FF292929" Offset="1"/> |
|
71 |
<GradientStop Color="#FF1B1B1B" Offset="0.276"/> |
|
72 |
</LinearGradientBrush> |
|
73 |
</Rectangle.Stroke> |
|
74 |
</Rectangle> |
|
75 |
<Rectangle x:Name="ThreeStateMark" StrokeThickness="1" RadiusX="13" RadiusY="13" Margin="6" Opacity="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
76 |
<Rectangle.Stroke> |
|
77 |
<LinearGradientBrush EndPoint="0,0" StartPoint="0,1"> |
|
78 |
<GradientStop Color="#66000000" Offset="0"/> |
|
79 |
<GradientStop Color="#33000000" Offset="1"/> |
|
80 |
</LinearGradientBrush> |
|
81 |
</Rectangle.Stroke> |
|
82 |
<Rectangle.Fill> |
|
83 |
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1"> |
|
84 |
<GradientStop Color="#FF292929" Offset="0.5"/> |
|
85 |
<GradientStop Color="#FF1B1B1B" Offset="0.196"/> |
|
86 |
</LinearGradientBrush> |
|
87 |
</Rectangle.Fill> |
|
88 |
</Rectangle> |
|
89 |
</Grid> |
|
90 |
</BulletDecorator.Bullet> |
|
91 |
<Grid HorizontalAlignment="Stretch" Margin="5,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
92 |
<Grid x:Name="ContentBox" HorizontalAlignment="Stretch" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Background="Transparent"> |
|
93 |
<ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" ClipToBounds="False" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/> |
|
94 |
</Grid> |
|
95 |
</Grid> |
|
96 |
</BulletDecorator> |
|
97 |
<ControlTemplate.Triggers> |
|
98 |
<MultiTrigger> |
|
99 |
<MultiTrigger.Conditions> |
|
100 |
<Condition Property="IsThreeState" Value="True"/> |
|
101 |
<Condition Property="IsChecked" Value="{x:Null}"/> |
|
102 |
</MultiTrigger.Conditions> |
|
103 |
<MultiTrigger.ExitActions> |
|
104 |
<BeginStoryboard> |
|
105 |
<Storyboard> |
|
106 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ThreeStateMark" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
107 |
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/> |
|
108 |
</DoubleAnimationUsingKeyFrames> |
|
109 |
</Storyboard> |
|
110 |
</BeginStoryboard> |
|
111 |
</MultiTrigger.ExitActions> |
|
112 |
<MultiTrigger.EnterActions> |
|
113 |
<BeginStoryboard> |
|
114 |
<Storyboard> |
|
115 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ThreeStateMark" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
116 |
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.9"/> |
|
117 |
</DoubleAnimationUsingKeyFrames> |
|
118 |
</Storyboard> |
|
119 |
</BeginStoryboard> |
|
120 |
</MultiTrigger.EnterActions> |
|
121 |
</MultiTrigger> |
|
122 |
<Trigger Property="IsChecked" Value="False"> |
|
123 |
<Trigger.EnterActions> |
|
124 |
<BeginStoryboard> |
|
125 |
<Storyboard> |
|
126 |
<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="Checkmark" Storyboard.TargetProperty="Opacity" To="0"/> |
|
127 |
</Storyboard> |
|
128 |
</BeginStoryboard> |
|
129 |
</Trigger.EnterActions> |
|
130 |
<Trigger.ExitActions> |
|
131 |
<BeginStoryboard> |
|
132 |
<Storyboard> |
|
133 |
<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="Checkmark" Storyboard.TargetProperty="Opacity" To="1"/> |
|
134 |
</Storyboard> |
|
135 |
</BeginStoryboard> |
|
136 |
</Trigger.ExitActions> |
|
137 |
</Trigger> |
|
138 |
<Trigger Property="IsChecked" Value="True"> |
|
139 |
<Trigger.EnterActions> |
|
140 |
<BeginStoryboard> |
|
141 |
<Storyboard> |
|
142 |
<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="Checkmark" Storyboard.TargetProperty="Opacity" To="1"/> |
|
143 |
</Storyboard> |
|
144 |
</BeginStoryboard> |
|
145 |
</Trigger.EnterActions> |
|
146 |
<Trigger.ExitActions> |
|
147 |
<BeginStoryboard> |
|
148 |
<Storyboard> |
|
149 |
<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="Checkmark" Storyboard.TargetProperty="Opacity" To="0"/> |
|
150 |
</Storyboard> |
|
151 |
</BeginStoryboard> |
|
152 |
</Trigger.ExitActions> |
|
153 |
</Trigger> |
|
154 |
<Trigger Property="IsPressed" Value="True"> |
|
155 |
<Trigger.EnterActions> |
|
156 |
<BeginStoryboard> |
|
157 |
<Storyboard> |
|
158 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
159 |
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
|
160 |
</DoubleAnimationUsingKeyFrames> |
|
161 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
162 |
<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-2"/> |
|
163 |
</ThicknessAnimationUsingKeyFrames> |
|
164 |
</Storyboard> |
|
165 |
</BeginStoryboard> |
|
166 |
</Trigger.EnterActions> |
|
167 |
<Trigger.ExitActions> |
|
168 |
<BeginStoryboard> |
|
169 |
<Storyboard> |
|
170 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
171 |
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
|
172 |
<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
|
173 |
</DoubleAnimationUsingKeyFrames> |
|
174 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
175 |
<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-2"/> |
|
176 |
<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
|
177 |
</ThicknessAnimationUsingKeyFrames> |
|
178 |
</Storyboard> |
|
179 |
</BeginStoryboard> |
|
180 |
</Trigger.ExitActions> |
|
181 |
</Trigger> |
|
182 |
<Trigger Property="IsEnabled" Value="False"> |
|
183 |
<Setter Property="Fill" TargetName="Button" Value="#00000000"/> |
|
184 |
<Setter Property="Stroke" TargetName="Button" Value="#33000000"/> |
|
185 |
<Setter Property="Foreground" Value="#A5333333"/> |
|
186 |
<Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/> |
|
187 |
<Setter Property="Stroke" TargetName="Checkmark" Value="#33000000"/> |
|
188 |
<Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/> |
|
189 |
</Trigger> |
|
190 |
</ControlTemplate.Triggers> |
|
191 |
</ControlTemplate> |
|
192 |
</Setter.Value> |
|
193 |
</Setter> |
|
194 |
<Style.BasedOn> |
|
195 |
<Style TargetType="{x:Type ButtonBase}"> |
|
196 |
<Setter Property="SnapsToDevicePixels" Value="True"/> |
|
197 |
<Setter Property="FocusVisualStyle"> |
|
198 |
<Setter.Value> |
|
199 |
<Style> |
|
200 |
<Setter Property="Control.Template"> |
|
201 |
<Setter.Value> |
|
202 |
<ControlTemplate/> |
|
203 |
</Setter.Value> |
|
204 |
</Setter> |
|
205 |
</Style> |
|
206 |
</Setter.Value> |
|
207 |
</Setter> |
|
208 |
<Setter Property="FontFamily" Value="Segoe UI"/> |
|
209 |
<Setter Property="FontSize" Value="10"/> |
|
210 |
<Setter Property="Foreground" Value="Black"/> |
|
211 |
<Setter Property="Background" Value="#33A4B4BD"/> |
|
212 |
<Setter Property="BorderBrush"> |
|
213 |
<Setter.Value> |
|
214 |
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0"> |
|
215 |
<GradientStop Color="#7FFFFFFF" Offset="0"/> |
|
216 |
<GradientStop Color="#0CFFFFFF" Offset="1"/> |
|
217 |
</LinearGradientBrush> |
|
218 |
</Setter.Value> |
|
219 |
</Setter> |
|
220 |
<Setter Property="BorderThickness" Value="1"/> |
|
221 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
222 |
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
223 |
<Setter Property="Padding" Value="15,6"/> |
|
224 |
<Setter Property="IsTabStop" Value="False"/> |
|
225 |
<Setter Property="Focusable" Value="False"/> |
|
226 |
<Setter Property="MinWidth" Value="30"/> |
|
227 |
<Setter Property="MinHeight" Value="30"/> |
|
228 |
<Setter Property="Template"> |
|
229 |
<Setter.Value> |
|
230 |
<ControlTemplate TargetType="{x:Type ButtonBase}"> |
|
231 |
<ControlTemplate.Resources> |
|
232 |
<Storyboard x:Key="Press"> |
|
233 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
234 |
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
|
235 |
</DoubleAnimationUsingKeyFrames> |
|
236 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
237 |
<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-3"/> |
|
238 |
</ThicknessAnimationUsingKeyFrames> |
|
239 |
</Storyboard> |
|
240 |
<Storyboard x:Key="Release"> |
|
241 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
242 |
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
|
243 |
<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
|
244 |
</DoubleAnimationUsingKeyFrames> |
|
245 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
246 |
<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-3"/> |
|
247 |
<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
|
248 |
</ThicknessAnimationUsingKeyFrames> |
|
249 |
</Storyboard> |
|
250 |
</ControlTemplate.Resources> |
|
251 |
<Grid x:Name="Grid" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
252 |
<Border x:Name="Shadow" Margin="1,1,1,0" BorderBrush="#33000000" BorderThickness="0,0,0,1" CornerRadius="6" Padding="1"/> |
|
253 |
<Rectangle x:Name="Base" Fill="{TemplateBinding Background}" StrokeThickness="1" RadiusX="5" RadiusY="5" Margin="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
254 |
<Rectangle.Stroke> |
|
255 |
<LinearGradientBrush EndPoint="0,0" StartPoint="0,1"> |
|
256 |
<GradientStop Color="#66000000" Offset="0"/> |
|
257 |
<GradientStop Color="#33000000" Offset="1"/> |
|
258 |
</LinearGradientBrush> |
|
259 |
</Rectangle.Stroke> |
|
260 |
</Rectangle> |
|
261 |
<Rectangle x:Name="RenderOverlay" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="4" RadiusY="4" Margin="2" Opacity="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
|
262 |
<Rectangle.Fill> |
|
263 |
<LinearGradientBrush EndPoint="0,0" StartPoint="0,1"> |
|
264 |
<GradientStop Color="#26000000" Offset="0"/> |
|
265 |
<GradientStop Color="#4CFFFFFF" Offset="1"/> |
|
266 |
</LinearGradientBrush> |
|
267 |
</Rectangle.Fill> |
|
268 |
</Rectangle> |
|
269 |
<Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="Glow" Margin="1" Opacity="0" Color="White" CornerRadius="4"/> |
|
270 |
<ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"> |
|
271 |
<ContentPresenter.RenderTransform> |
|
272 |
<TranslateTransform X="0" Y="-1"/> |
|
273 |
</ContentPresenter.RenderTransform> |
|
274 |
</ContentPresenter> |
|
275 |
</Grid> |
|
276 |
<ControlTemplate.Triggers> |
|
277 |
<Trigger Property="IsPressed" Value="True"> |
|
278 |
<Trigger.EnterActions> |
|
279 |
<BeginStoryboard> |
|
280 |
<Storyboard> |
|
281 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
282 |
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
|
283 |
</DoubleAnimationUsingKeyFrames> |
|
284 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
285 |
<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-3"/> |
|
286 |
</ThicknessAnimationUsingKeyFrames> |
|
287 |
</Storyboard> |
|
288 |
</BeginStoryboard> |
|
289 |
</Trigger.EnterActions> |
|
290 |
<Trigger.ExitActions> |
|
291 |
<BeginStoryboard> |
|
292 |
<Storyboard> |
|
293 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)"> |
|
294 |
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
|
295 |
<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
|
296 |
</DoubleAnimationUsingKeyFrames> |
|
297 |
<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
|
298 |
<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-3"/> |
|
299 |
<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
|
300 |
</ThicknessAnimationUsingKeyFrames> |
|
301 |
</Storyboard> |
|
302 |
</BeginStoryboard> |
|
303 |
</Trigger.ExitActions> |
|
304 |
</Trigger> |
|
305 |
<Trigger Property="IsEnabled" Value="True"/> |
|
306 |
<Trigger Property="IsEnabled" Value="False"> |
|
307 |
<Setter Property="Fill" TargetName="RenderOverlay" Value="#0CFFFFFF"/> |
|
308 |
<Setter Property="Stroke" TargetName="RenderOverlay" Value="#33FFFFFF"/> |
|
309 |
<Setter Property="Stroke" TargetName="Base" Value="#33000000"/> |
|
310 |
<Setter Property="BorderBrush" TargetName="Shadow" Value="#00000000"/> |
|
311 |
<Setter Property="Foreground" Value="#A5333333"/> |
|
312 |
<Setter Property="Background" Value="Transparent"/> |
|
313 |
</Trigger> |
|
314 |
</ControlTemplate.Triggers> |
|
315 |
</ControlTemplate> |
|
316 |
</Setter.Value> |
|
317 |
</Setter> |
|
318 |
</Style> |
|
319 |
</Style.BasedOn> |
|
320 |
</Style> |
|
321 |
</UserControl.Resources> |
|
322 |
||
323 |
<Grid x:Name="LayoutRoot" Background="{DynamicResource SessionInput__Background_xaml}"> |
|
153
3636bb5f4b67
Custom Label and UserControl NewProject and SessionInput changes
sarias
parents:
147
diff
changeset
|
324 |
<Custom:SurfaceTextBox d:LayoutOverrides="HorizontalAlignment" Margin="112,17.818,8,0" x:Name="ST_ProjectName" VerticalAlignment="Top" Text="" TextWrapping="Wrap" Background="#7EFFFFFF" Foreground="#FF000000"/> |
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
153
diff
changeset
|
325 |
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Cutting Name:" Margin="14.367,9.818,0,0" x:Name="LProjectName" Foreground="#FFBCB3B3"/> |
153
3636bb5f4b67
Custom Label and UserControl NewProject and SessionInput changes
sarias
parents:
147
diff
changeset
|
326 |
<Custom:SurfaceTextBox d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Margin="112,50.626,8,0" x:Name="ST_Date" VerticalAlignment="Top" Text="" TextWrapping="Wrap" Background="#7EFFFFFF" BorderBrush="{x:Null}" Foreground="#FF000000"/> |
147 | 327 |
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Date:" Margin="14.367,42.626,0,0" x:Name="LDate" Foreground="#FFBCB3B3"/> |
153
3636bb5f4b67
Custom Label and UserControl NewProject and SessionInput changes
sarias
parents:
147
diff
changeset
|
328 |
<Custom:SurfaceTextBox d:LayoutOverrides="HorizontalAlignment" Margin="112,0,8,30.403" x:Name="ST_Desc" VerticalAlignment="Bottom" Text="" TextWrapping="Wrap" Background="#7EFFFFFF" BorderBrush="{x:Null}" Foreground="#FF000000"/> |
147 | 329 |
<Label x:Name="LDescription" HorizontalAlignment="Left" VerticalAlignment="Bottom" Content="Description:" Margin="14.367,0,0,30.403" Width="74.321" Foreground="#FFBCB3B3"/> |
330 |
<Custom:SurfaceRadioButton RenderTransformOrigin="0.46,0.243" Margin="70.688,0,0,3" VerticalAlignment="Bottom" Content="" Height="30.403" x:Name="SurfaceButtonSubmit" ContactDown="SurfaceButtonSubmit_ContactDown" Click="SurfaceButtonSubmit_Click" HorizontalAlignment="Left" Style="{DynamicResource FingersDance.Control.SurfaceRadioButton}" Width="33.312" Background="{DynamicResource ConfirmationTick_xaml}" BorderBrush="{x:Null}"> |
|
331 |
<Custom:SurfaceRadioButton.RenderTransform> |
|
332 |
<TransformGroup> |
|
333 |
<ScaleTransform ScaleX="1" ScaleY="1"/> |
|
334 |
<SkewTransform AngleX="0" AngleY="0"/> |
|
335 |
<RotateTransform Angle="0"/> |
|
336 |
<TranslateTransform X="0" Y="0"/> |
|
337 |
</TransformGroup> |
|
338 |
</Custom:SurfaceRadioButton.RenderTransform> |
|
339 |
</Custom:SurfaceRadioButton> |
|
340 |
</Grid> |
|
341 |
</UserControl> |