1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
---|
2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
---|
3 | > |
---|
4 | <LinearGradientBrush x:Key="WindowGradient" StartPoint="0,0.3" EndPoint="1,0"> |
---|
5 | <LinearGradientBrush.GradientStops> |
---|
6 | <GradientStop Color="#B2B6CAFF" Offset="0" /> |
---|
7 | <GradientStop Color="#BFC3D5FF" Offset="0.1" /> |
---|
8 | <GradientStop Color="#E0E4F0FF" Offset="0.3" /> |
---|
9 | <GradientStop Color="#E6EAF5FF" Offset="0.5" /> |
---|
10 | <GradientStop Color="#CFD7E2FF" Offset="0.6" /> |
---|
11 | <GradientStop Color="#BFC5D3FF" Offset="0.8" /> |
---|
12 | <GradientStop Color="#C4CBD8FF" Offset="1" /> |
---|
13 | </LinearGradientBrush.GradientStops> |
---|
14 | </LinearGradientBrush> |
---|
15 | |
---|
16 | <LinearGradientBrush x:Key="ListBoxGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
17 | <LinearGradientBrush.GradientStops> |
---|
18 | <GradientStop Color="#90000000" Offset="0" /> |
---|
19 | <GradientStop Color="#40000000" Offset="0.005" /> |
---|
20 | <GradientStop Color="#10000000" Offset="0.04" /> |
---|
21 | <GradientStop Color="#20000000" Offset="0.945" /> |
---|
22 | <GradientStop Color="#60FFFFFF" Offset="1" /> |
---|
23 | </LinearGradientBrush.GradientStops> |
---|
24 | </LinearGradientBrush> |
---|
25 | |
---|
26 | <LinearGradientBrush x:Key="ReflectionGradient" StartPoint="0,1" EndPoint="0,0"> |
---|
27 | <LinearGradientBrush.GradientStops> |
---|
28 | <GradientStop Color="#50000000" Offset="0" /> |
---|
29 | <GradientStop Color="Transparent" Offset=".5" /> |
---|
30 | </LinearGradientBrush.GradientStops> |
---|
31 | </LinearGradientBrush> |
---|
32 | |
---|
33 | <LinearGradientBrush x:Key="ButtonGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
34 | <LinearGradientBrush.GradientStops> |
---|
35 | <GradientStop Color="#FDB6CADF" Offset="0" /> |
---|
36 | <GradientStop Color="#FCC3C5FF" Offset="0.1" /> |
---|
37 | <GradientStop Color="#FCC4D0EF" Offset="0.3" /> |
---|
38 | <GradientStop Color="#FDB7C2DF" Offset="0.6" /> |
---|
39 | <GradientStop Color="#FE95B3CF" Offset="0.8" /> |
---|
40 | <GradientStop Color="#FE96AACF" Offset="1" /> |
---|
41 | </LinearGradientBrush.GradientStops> |
---|
42 | </LinearGradientBrush> |
---|
43 | |
---|
44 | <LinearGradientBrush x:Key="VerticalScrollGradient" StartPoint="0,0" EndPoint="1,0"> |
---|
45 | <LinearGradientBrush.GradientStops> |
---|
46 | <GradientStop Color="#FDB6CADF" Offset="0" /> |
---|
47 | <GradientStop Color="#FCC3C5FF" Offset="0.1" /> |
---|
48 | <GradientStop Color="#FCC4D0EF" Offset="0.3" /> |
---|
49 | <GradientStop Color="#FDB7C2DF" Offset="0.6" /> |
---|
50 | <GradientStop Color="#FE95B3CF" Offset="0.8" /> |
---|
51 | <GradientStop Color="#FE96AACF" Offset="1" /> |
---|
52 | </LinearGradientBrush.GradientStops> |
---|
53 | </LinearGradientBrush> |
---|
54 | |
---|
55 | <LinearGradientBrush x:Key="ComboBoxGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
56 | <LinearGradientBrush.GradientStops> |
---|
57 | <GradientStop Color="#B2B6CAFF" Offset="0" /> |
---|
58 | <GradientStop Color="#B0B3C5FF" Offset="0.1" /> |
---|
59 | <GradientStop Color="#BEE4E0FF" Offset="0.3" /> |
---|
60 | <GradientStop Color="#B0D7E2FF" Offset="0.6" /> |
---|
61 | <GradientStop Color="#B0C5D3FF" Offset="0.8" /> |
---|
62 | <GradientStop Color="#C4CBD8FF" Offset="1" /> |
---|
63 | </LinearGradientBrush.GradientStops> |
---|
64 | </LinearGradientBrush> |
---|
65 | |
---|
66 | <LinearGradientBrush x:Key="GreetingCardGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
67 | <LinearGradientBrush.GradientStops> |
---|
68 | <GradientStop Color="#EEEEEE" Offset="0" /> |
---|
69 | <GradientStop Color="#FFFFFF" Offset="1" /> |
---|
70 | </LinearGradientBrush.GradientStops> |
---|
71 | </LinearGradientBrush> |
---|
72 | |
---|
73 | <LinearGradientBrush x:Key="ButtonUpGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
74 | <LinearGradientBrush.GradientStops> |
---|
75 | <GradientStop Color="Transparent" Offset="0" /> |
---|
76 | <GradientStop Color="#33000000" Offset="1" /> |
---|
77 | </LinearGradientBrush.GradientStops> |
---|
78 | </LinearGradientBrush> |
---|
79 | |
---|
80 | <LinearGradientBrush x:Key="ButtonDownGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
81 | <LinearGradientBrush.GradientStops> |
---|
82 | <GradientStop Color="#10000000" Offset="0" /> |
---|
83 | <GradientStop Color="#20000000" Offset="1" /> |
---|
84 | </LinearGradientBrush.GradientStops> |
---|
85 | </LinearGradientBrush> |
---|
86 | |
---|
87 | <LinearGradientBrush x:Key="ButtonDisabledGradient" StartPoint="0,0" EndPoint="0,1"> |
---|
88 | <LinearGradientBrush.GradientStops> |
---|
89 | <GradientStop Color="#10302A90" Offset="0" /> |
---|
90 | <GradientStop Color="#10201040" Offset="1" /> |
---|
91 | </LinearGradientBrush.GradientStops> |
---|
92 | </LinearGradientBrush> |
---|
93 | |
---|
94 | <!-- STYLES --> |
---|
95 | |
---|
96 | <Style x:Key="TitleText" TargetType="{x:Type TextBlock}" > |
---|
97 | <Setter Property="FontFamily" Value="Segoe Black" /> |
---|
98 | <Setter Property="FontSize" Value="20px" /> |
---|
99 | <Setter Property="Foreground" Value="MidnightBlue" /> |
---|
100 | </Style> |
---|
101 | |
---|
102 | <!-- BUTTON TEMPLATE --> |
---|
103 | <Style TargetType="{x:Type Button}"> |
---|
104 | <Setter Property="Template"> |
---|
105 | <Setter.Value> |
---|
106 | <ControlTemplate TargetType="{x:Type Button}"> |
---|
107 | <Border x:Name="OuterBorder" |
---|
108 | CornerRadius="3" |
---|
109 | Background="{DynamicResource ButtonGradient}"> |
---|
110 | <Border |
---|
111 | x:Name="InnerBorder" |
---|
112 | CornerRadius="3" |
---|
113 | Background="{DynamicResource ButtonUpGradient}" |
---|
114 | Padding="{TemplateBinding Padding}"> |
---|
115 | <ContentPresenter x:Name="ContentSite" |
---|
116 | HorizontalAlignment="Center" |
---|
117 | VerticalAlignment="Center" /> |
---|
118 | </Border> |
---|
119 | </Border> |
---|
120 | <ControlTemplate.Triggers> |
---|
121 | <Trigger Property="IsPressed" Value="true"> |
---|
122 | <Setter TargetName="InnerBorder" Property="Background" Value="{DynamicResource ButtonDownGradient}" /> |
---|
123 | </Trigger> |
---|
124 | <Trigger Property="IsEnabled" Value="false"> |
---|
125 | <Setter TargetName="InnerBorder" Property="Background" Value="{DynamicResource ButtonDisabledGradient}" /> |
---|
126 | <Setter Property="BorderBrush" Value="Silver" /> |
---|
127 | <Setter Property="Foreground" Value="SlateGray" /> |
---|
128 | </Trigger> |
---|
129 | </ControlTemplate.Triggers> |
---|
130 | </ControlTemplate> |
---|
131 | </Setter.Value> |
---|
132 | </Setter> |
---|
133 | <Setter Property="Height" Value="18" /> |
---|
134 | <Setter Property="Foreground" Value="MidnightBlue" /> |
---|
135 | </Style> |
---|
136 | |
---|
137 | <!-- COMBOBOX STYLE --> |
---|
138 | |
---|
139 | <Style TargetType="{x:Type ComboBox}" > |
---|
140 | <Setter Property="Background" Value="{DynamicResource ComboBoxGradient}" /> |
---|
141 | <Setter Property="BorderThickness" Value="0" /> |
---|
142 | <Setter Property="Height" Value="18px" /> |
---|
143 | <Setter Property="Foreground" Value="MidnightBlue" /> |
---|
144 | </Style> |
---|
145 | |
---|
146 | <!-- PROGRESS BAR STYLE --> |
---|
147 | |
---|
148 | <Style TargetType="{x:Type ProgressBar}" > |
---|
149 | <Setter Property="Background" Value="{DynamicResource ComboBoxGradient}" /> |
---|
150 | <Setter Property="BorderThickness" Value="1" /> |
---|
151 | <Setter Property="BorderBrush" Value="Gray" /> |
---|
152 | <Setter Property="Foreground" Value="MidnightBlue" /> |
---|
153 | </Style> |
---|
154 | |
---|
155 | <!-- SCROLLBAR TEMPLATES --> |
---|
156 | |
---|
157 | <Style x:Key="Scrollbar_LineButton" TargetType="{x:Type RepeatButton}"> |
---|
158 | <Setter Property="Template"> |
---|
159 | <Setter.Value> |
---|
160 | <ControlTemplate TargetType="{x:Type RepeatButton}"> |
---|
161 | <Border |
---|
162 | BorderBrush="Transparent" |
---|
163 | BorderThickness="1" |
---|
164 | CornerRadius="6" |
---|
165 | Background="{DynamicResource ButtonGradient}"> |
---|
166 | <ContentPresenter x:Name="ContentSite" /> |
---|
167 | </Border> |
---|
168 | </ControlTemplate> |
---|
169 | </Setter.Value> |
---|
170 | </Setter> |
---|
171 | <Setter Property="MinHeight" Value="12" /> |
---|
172 | <Setter Property="MinWidth" Value="12" /> |
---|
173 | <Setter Property="Foreground" Value="Gray" /> |
---|
174 | <Setter Property="FontSize" Value="6pt" /> |
---|
175 | <Setter Property="FontWeight" Value="Bold" /> |
---|
176 | <Setter Property="FontFamily" Value="Lucida Sans" /> |
---|
177 | <Setter Property="VerticalAlignment" Value="Center" /> |
---|
178 | <Setter Property="HorizontalAlignment" Value="Center" /> |
---|
179 | </Style> |
---|
180 | |
---|
181 | <Style x:Key="ScrollBar_TrackRepeater" TargetType="{x:Type RepeatButton}"> |
---|
182 | <Setter Property="IsTabStop" Value="false" /> |
---|
183 | <Setter Property="Focusable" Value="false" /> |
---|
184 | <Setter Property="Command" Value="ScrollBar.PageUpCommand" /> |
---|
185 | <Setter Property="Template"> |
---|
186 | <Setter.Value> |
---|
187 | <ControlTemplate TargetType="{x:Type RepeatButton}"> |
---|
188 | <Rectangle Fill="Transparent" /> |
---|
189 | </ControlTemplate> |
---|
190 | </Setter.Value> |
---|
191 | </Setter> |
---|
192 | </Style> |
---|
193 | |
---|
194 | <Style x:Key="ScrollBar_UpTrack" BasedOn="{StaticResource ScrollBar_TrackRepeater}" TargetType="{x:Type RepeatButton}"> |
---|
195 | <Setter Property="Command" Value="ScrollBar.PageUpCommand" /> |
---|
196 | </Style> |
---|
197 | |
---|
198 | <Style x:Key="ScrollBar_DownTrack" BasedOn="{StaticResource ScrollBar_TrackRepeater}" TargetType="{x:Type RepeatButton}"> |
---|
199 | <Setter Property="Command" Value="ScrollBar.PageDownCommand" /> |
---|
200 | </Style> |
---|
201 | |
---|
202 | <Style x:Key="ScrollBar_LeftTrack" BasedOn="{StaticResource ScrollBar_TrackRepeater}" TargetType="{x:Type RepeatButton}"> |
---|
203 | <Setter Property="Command" Value="ScrollBar.PageLeftCommand" /> |
---|
204 | </Style> |
---|
205 | |
---|
206 | <Style x:Key="ScrollBar_RightTrack" BasedOn="{StaticResource ScrollBar_TrackRepeater}" TargetType="{x:Type RepeatButton}"> |
---|
207 | <Setter Property="Command" Value="ScrollBar.PageRightCommand" /> |
---|
208 | </Style> |
---|
209 | |
---|
210 | <Style x:Key="ScrollBar_VerticalThumb" TargetType="{x:Type Thumb}"> |
---|
211 | <Setter Property="Template"> |
---|
212 | <Setter.Value> |
---|
213 | <ControlTemplate TargetType="{x:Type Thumb}"> |
---|
214 | <Border CornerRadius="6" |
---|
215 | BorderBrush="Transparent" |
---|
216 | BorderThickness="1" |
---|
217 | Background="{DynamicResource VerticalScrollGradient}" /> |
---|
218 | </ControlTemplate> |
---|
219 | </Setter.Value> |
---|
220 | </Setter> |
---|
221 | <Setter Property="MinHeight" Value="10" /> |
---|
222 | <Setter Property="MinWidth" Value="10" /> |
---|
223 | </Style> |
---|
224 | |
---|
225 | <Style x:Key="ScrollBar_HorizontalThumb" TargetType="{x:Type Thumb}"> |
---|
226 | <Setter Property="Template"> |
---|
227 | <Setter.Value> |
---|
228 | <ControlTemplate TargetType="{x:Type Thumb}"> |
---|
229 | <Border CornerRadius="6" |
---|
230 | BorderBrush="Transparent" |
---|
231 | BorderThickness="1" |
---|
232 | Background="{DynamicResource ButtonGradient}" /> |
---|
233 | </ControlTemplate> |
---|
234 | </Setter.Value> |
---|
235 | </Setter> |
---|
236 | <Setter Property="MinHeight" Value="10" /> |
---|
237 | <Setter Property="MinWidth" Value="10" /> |
---|
238 | </Style> |
---|
239 | |
---|
240 | <Style TargetType="{x:Type ScrollBar}"> |
---|
241 | <Setter Property="Background" Value="Transparent" /> |
---|
242 | <Setter Property="MinWidth" Value="10" /> |
---|
243 | <Setter Property="Template"> |
---|
244 | <Setter.Value> |
---|
245 | <ControlTemplate TargetType="{x:Type ScrollBar}"> |
---|
246 | <Grid> |
---|
247 | <Grid.ColumnDefinitions> |
---|
248 | <ColumnDefinition Width="10"/> |
---|
249 | </Grid.ColumnDefinitions> |
---|
250 | <Grid.RowDefinitions> |
---|
251 | <RowDefinition Height="10" /> |
---|
252 | <RowDefinition Height="*"/> |
---|
253 | <RowDefinition Height="10" /> |
---|
254 | </Grid.RowDefinitions> |
---|
255 | <Border Grid.Row="1" BorderThickness="0" Background="Transparent" CornerRadius="4"/> |
---|
256 | <RepeatButton Grid.Row="0" Style="{DynamicResource Scrollbar_LineButton}" Command="ScrollBar.LineUpCommand" Content=" ^" /> |
---|
257 | <Track Grid.Row="1" Name="PART_Track" IsDirectionReversed="True"> |
---|
258 | <Track.IncreaseRepeatButton> |
---|
259 | <RepeatButton Style="{DynamicResource ScrollBar_DownTrack}"/> |
---|
260 | </Track.IncreaseRepeatButton> |
---|
261 | <Track.DecreaseRepeatButton> |
---|
262 | <RepeatButton Style="{DynamicResource ScrollBar_UpTrack}"/> |
---|
263 | </Track.DecreaseRepeatButton> |
---|
264 | <Track.Thumb> |
---|
265 | <Thumb Style="{DynamicResource ScrollBar_VerticalThumb}"/> |
---|
266 | </Track.Thumb> |
---|
267 | </Track> |
---|
268 | <RepeatButton Grid.Row="2" Style="{DynamicResource Scrollbar_LineButton}" Command="ScrollBar.LineDownCommand" Content=" v" /> |
---|
269 | </Grid> |
---|
270 | </ControlTemplate> |
---|
271 | </Setter.Value> |
---|
272 | </Setter> |
---|
273 | <Style.Triggers> |
---|
274 | <Trigger Property="Orientation" Value="Horizontal" > |
---|
275 | <Setter Property="Background" Value="Transparent" /> |
---|
276 | <Setter Property="MinHeight" Value="10" /> |
---|
277 | <Setter Property="Template"> |
---|
278 | <Setter.Value> |
---|
279 | <ControlTemplate TargetType="{x:Type ScrollBar}"> |
---|
280 | <Grid> |
---|
281 | <Grid.RowDefinitions> |
---|
282 | <RowDefinition Height="12"/> |
---|
283 | </Grid.RowDefinitions> |
---|
284 | <Grid.ColumnDefinitions> |
---|
285 | <ColumnDefinition Width="12" /> |
---|
286 | <ColumnDefinition Width="*"/> |
---|
287 | <ColumnDefinition Width="12" /> |
---|
288 | </Grid.ColumnDefinitions> |
---|
289 | <Border Grid.Column="1" BorderThickness="0" Background="Transparent" CornerRadius="4"/> |
---|
290 | <RepeatButton Grid.Column="0" Style="{DynamicResource Scrollbar_LineButton}" Command="ScrollBar.LineLeftCommand" Content=" <" /> |
---|
291 | <Track Grid.Column="1" Name="PART_Track"> |
---|
292 | <Track.IncreaseRepeatButton> |
---|
293 | <RepeatButton Style="{DynamicResource ScrollBar_RightTrack}"/> |
---|
294 | </Track.IncreaseRepeatButton> |
---|
295 | <Track.DecreaseRepeatButton> |
---|
296 | <RepeatButton Style="{DynamicResource ScrollBar_LeftTrack}"/> |
---|
297 | </Track.DecreaseRepeatButton> |
---|
298 | <Track.Thumb> |
---|
299 | <Thumb Style="{DynamicResource ScrollBar_HorizontalThumb}"/> |
---|
300 | </Track.Thumb> |
---|
301 | </Track> |
---|
302 | <RepeatButton Grid.Column="2" Style="{DynamicResource Scrollbar_LineButton}" Command="ScrollBar.LineRightCommand" Content=" >" /> |
---|
303 | |
---|
304 | </Grid> |
---|
305 | </ControlTemplate> |
---|
306 | </Setter.Value> |
---|
307 | </Setter> |
---|
308 | </Trigger> |
---|
309 | </Style.Triggers> |
---|
310 | </Style> |
---|
311 | </ResourceDictionary> |
---|