comparison SilverlightGlimpse/FloatableWindow/themes/generic.xaml @ 62:810116cd6b8e

ErrorWindow working
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sun, 22 Apr 2012 09:01:20 +0100
parents
children a0bcd783e612
comparison
equal deleted inserted replaced
61:9de81c9ad319 62:810116cd6b8e
1 <ResourceDictionary
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:controls="clr-namespace:System.Windows.Controls"
5 xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
6
7 <Storyboard x:Name="ResizerEnter">
8 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Resizer" Storyboard.TargetProperty="(UIElement.Opacity)">
9 <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
10 </DoubleAnimationUsingKeyFrames>
11 </Storyboard>
12 <Storyboard x:Name="ResizerLeave">
13 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Resizer" Storyboard.TargetProperty="(UIElement.Opacity)">
14 <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
15 </DoubleAnimationUsingKeyFrames>
16 </Storyboard>
17 <Style x:Key="ResizerStyle" TargetType="Thumb">
18 <Setter Property="Background" Value="#FF1F3B53"/>
19 <Setter Property="BorderThickness" Value="1"/>
20 <Setter Property="IsTabStop" Value="False"/>
21 <Setter Property="BorderBrush">
22 <Setter.Value>
23 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
24 <GradientStop Color="#FFA3AEB9" Offset="0"/>
25 <GradientStop Color="#FF8399A9" Offset="0.375"/>
26 <GradientStop Color="#FF718597" Offset="0.375"/>
27 <GradientStop Color="#FF617584" Offset="1"/>
28 </LinearGradientBrush>
29 </Setter.Value>
30 </Setter>
31 <Setter Property="Template">
32 <Setter.Value>
33 <ControlTemplate TargetType="Thumb">
34 <Path Fill="#FFB1B1B1" Stretch="Fill" Height="20" Width="20" UseLayoutRounding="False" Data="M15.499995,0.5 L15.499995,15.5 L0.5,15.5 z">
35 <VisualStateManager.VisualStateGroups>
36 <VisualStateGroup x:Name="CommonStates">
37 <VisualState x:Name="Normal"/>
38 <VisualState x:Name="MouseOver"/>
39 <VisualState x:Name="Pressed"/>
40 <VisualState x:Name="Disabled"/>
41 </VisualStateGroup>
42 <VisualStateGroup x:Name="FocusStates">
43 <VisualState x:Name="Unfocused"/>
44 <VisualState x:Name="Focused"/>
45 </VisualStateGroup>
46 </VisualStateManager.VisualStateGroups>
47 </Path>
48 </ControlTemplate>
49 </Setter.Value>
50 </Setter>
51 </Style>
52 <Style TargetType="controls:FloatableWindow">
53 <Setter Property="IsTabStop" Value="false"/>
54 <Setter Property="TabNavigation" Value="Cycle"/>
55 <Setter Property="HorizontalAlignment" Value="Center"/>
56 <Setter Property="VerticalAlignment" Value="Center"/>
57 <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
58 <Setter Property="VerticalContentAlignment" Value="Stretch"/>
59 <Setter Property="BorderThickness" Value="1"/>
60 <Setter Property="BorderBrush">
61 <Setter.Value>
62 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
63 <GradientStop Color="#FFA3AEB9" Offset="0"/>
64 <GradientStop Color="#FF8399A9" Offset="0.375"/>
65 <GradientStop Color="#FF718597" Offset="0.375"/>
66 <GradientStop Color="#FF617584" Offset="1"/>
67 </LinearGradientBrush>
68 </Setter.Value>
69 </Setter>
70 <Setter Property="OverlayBrush">
71 <Setter.Value>
72 <SolidColorBrush Color="#7F000000"/>
73 </Setter.Value>
74 </Setter>
75 <Setter Property="OverlayOpacity" Value="1"/>
76 <Setter Property="Template">
77 <Setter.Value>
78 <ControlTemplate TargetType="controls:FloatableWindow">
79 <Grid x:Name="Root">
80 <Grid.Resources>
81 <Style x:Key="ButtonStyle" TargetType="Button">
82 <Setter Property="Background" Value="#FF1F3B53"/>
83 <Setter Property="Foreground" Value="#FF000000"/>
84 <Setter Property="Padding" Value="3"/>
85 <Setter Property="BorderThickness" Value="1"/>
86 <Setter Property="BorderBrush">
87 <Setter.Value>
88 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
89 <GradientStop Color="#FFA3AEB9" Offset="0"/>
90 <GradientStop Color="#FF8399A9" Offset="0.375"/>
91 <GradientStop Color="#FF718597" Offset="0.375"/>
92 <GradientStop Color="#FF617584" Offset="1"/>
93 </LinearGradientBrush>
94 </Setter.Value>
95 </Setter>
96 <Setter Property="Template">
97 <Setter.Value>
98 <ControlTemplate TargetType="Button">
99 <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Height="14" Background="#02FFFFFF" x:Name="grid">
100 <vsm:VisualStateManager.VisualStateGroups>
101 <vsm:VisualStateGroup x:Name="CommonStates">
102 <vsm:VisualState x:Name="Normal"/>
103 <vsm:VisualState x:Name="MouseOver">
104 <Storyboard>
105 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz2" Storyboard.TargetProperty="Visibility">
106 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
107 </ObjectAnimationUsingKeyFrames>
108 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz1" Storyboard.TargetProperty="Visibility">
109 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
110 </ObjectAnimationUsingKeyFrames>
111 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz0" Storyboard.TargetProperty="Visibility">
112 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
113 </ObjectAnimationUsingKeyFrames>
114 <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.95"/>
115 </Storyboard>
116 </vsm:VisualState>
117 <vsm:VisualState x:Name="Pressed">
118 <Storyboard>
119 <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.85"/>
120 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz2" Storyboard.TargetProperty="Visibility">
121 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
122 </ObjectAnimationUsingKeyFrames>
123 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz1" Storyboard.TargetProperty="Visibility">
124 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
125 </ObjectAnimationUsingKeyFrames>
126 <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz0" Storyboard.TargetProperty="Visibility">
127 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
128 </ObjectAnimationUsingKeyFrames>
129 </Storyboard>
130 </vsm:VisualState>
131 <vsm:VisualState x:Name="Disabled">
132 <Storyboard>
133 <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.5"/>
134 </Storyboard>
135 </vsm:VisualState>
136 </vsm:VisualStateGroup>
137 </vsm:VisualStateManager.VisualStateGroups>
138 <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#14C51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz2" Stroke="#14C51900" Height="8" VerticalAlignment="Center" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
139 <Path.RenderTransform>
140 <TransformGroup>
141 <ScaleTransform ScaleX="1.3" ScaleY="1.3"/>
142 </TransformGroup>
143 </Path.RenderTransform>
144 </Path>
145 <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#1EC51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz1" Stroke="#1EC51900" Height="8" VerticalAlignment="Center" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
146 <Path.RenderTransform>
147 <TransformGroup>
148 <ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
149 </TransformGroup>
150 </Path.RenderTransform>
151 </Path>
152 <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#FFC51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz0" Stroke="#FFC51900" Height="8" VerticalAlignment="Center" Opacity="1" Visibility="Collapsed"/>
153 <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#FFFFFFFF" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X" Height="8" VerticalAlignment="Center" Opacity="0.7">
154 <Path.Stroke>
155 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
156 <GradientStop Color="#FF313131" Offset="1"/>
157 <GradientStop Color="#FF8E9092" Offset="0"/>
158 </LinearGradientBrush>
159 </Path.Stroke>
160 </Path>
161 </Grid>
162 </ControlTemplate>
163 </Setter.Value>
164 </Setter>
165 </Style>
166 </Grid.Resources>
167 <vsm:VisualStateManager.VisualStateGroups>
168 <vsm:VisualStateGroup x:Name="WindowStates">
169 <vsm:VisualState x:Name="Open">
170 <Storyboard>
171 <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity">
172 <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
173 <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="1"/>
174 </DoubleAnimationUsingKeyFrames>
175 <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX">
176 <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
177 <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
178 <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/>
179 <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/>
180 <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/>
181 </DoubleAnimationUsingKeyFrames>
182 <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY">
183 <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
184 <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
185 <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/>
186 <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/>
187 <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/>
188 </DoubleAnimationUsingKeyFrames>
189 </Storyboard>
190 </vsm:VisualState>
191 <vsm:VisualState x:Name="Closed">
192 <Storyboard>
193 <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity">
194 <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
195 <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0"/>
196 </DoubleAnimationUsingKeyFrames>
197 <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX">
198 <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/>
199 <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/>
200 <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/>
201 </DoubleAnimationUsingKeyFrames>
202 <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY">
203 <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/>
204 <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/>
205 <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/>
206 </DoubleAnimationUsingKeyFrames>
207 </Storyboard>
208 </vsm:VisualState>
209 </vsm:VisualStateGroup>
210 </vsm:VisualStateManager.VisualStateGroups>
211 <Grid x:Name="Overlay" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0" Background="{TemplateBinding OverlayBrush}" Opacity="{TemplateBinding OverlayOpacity}"/>
212 <Grid x:Name="ContentRoot" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
213 <Grid.RenderTransform>
214 <TransformGroup>
215 <ScaleTransform />
216 <SkewTransform />
217 <RotateTransform />
218 <TranslateTransform />
219 </TransformGroup>
220 </Grid.RenderTransform>
221 <Border BorderThickness="1" CornerRadius="2" BorderBrush="#14000000" Background="#14000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-1"/>
222 <Border BorderThickness="1" CornerRadius="2.25" BorderBrush="#0F000000" Background="#0F000000" HorizontalAlignment="Stretch" Margin="-2" VerticalAlignment="Stretch"/>
223 <Border BorderThickness="1" CornerRadius="2.5" BorderBrush="#0C000000" Background="#0C000000" HorizontalAlignment="Stretch" Margin="-3" VerticalAlignment="Stretch"/>
224 <Border BorderThickness="1" CornerRadius="2.75" BorderBrush="#0A000000" Background="#0A000000" HorizontalAlignment="Stretch" Margin="-4" VerticalAlignment="Stretch"/>
225 <Border Background="#FFFFFFFF" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="2">
226 <Border CornerRadius="1.5" Margin="1">
227 <Border.Background>
228 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
229 <GradientStop Color="#FFE5E8EB" Offset="1"/>
230 <GradientStop Color="#FFF6F8F9" Offset="0"/>
231 </LinearGradientBrush>
232 </Border.Background>
233 <Grid>
234 <Grid.RowDefinitions>
235 <RowDefinition Height="Auto"/>
236 <RowDefinition/>
237 </Grid.RowDefinitions>
238 <Border x:Name="Chrome" Width="Auto" BorderBrush="#FFFFFFFF" BorderThickness="0,0,0,1">
239 <Border.Background>
240 <LinearGradientBrush EndPoint="0.5,0.528" StartPoint="0.5,0">
241 <GradientStop Color="#FFE5E8EB" Offset="1"/>
242 <GradientStop Color="#FFFEFEFE" Offset="0"/>
243 </LinearGradientBrush>
244 </Border.Background>
245 <Grid Height="Auto" Width="Auto">
246 <Grid.ColumnDefinitions>
247 <ColumnDefinition/>
248 <ColumnDefinition Width="30"/>
249 </Grid.ColumnDefinitions>
250 <ContentControl Content="{TemplateBinding Title}"
251 IsTabStop="False"
252 FontWeight="Bold"
253 HorizontalAlignment="Stretch"
254 VerticalAlignment="Center"
255 Margin="6,0,6,0"/>
256 <Button x:Name="CloseButton" Grid.Column="1" IsTabStop="False" HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Height="14" Style="{StaticResource ButtonStyle}"/>
257 </Grid>
258 </Border>
259 <Border Background="{TemplateBinding Background}" Margin="7" Grid.Row="1">
260 <ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Content}"
261 ContentTemplate="{TemplateBinding ContentTemplate}"
262 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
263 VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
264 </Border>
265 <Path x:Name="Resizer" Opacity=".25" Fill="#FFB1B1B1" Stretch="Fill" Height="20" Width="20" UseLayoutRounding="False" Grid.Row="1" Data="M15.499995,0.5 L15.499995,15.5 L0.5,15.5 z" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
266 </Grid>
267 </Border>
268 </Border>
269 </Grid>
270 </Grid>
271 </ControlTemplate>
272 </Setter.Value>
273 </Setter>
274 </Style>
275
276 </ResourceDictionary>