-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathColorTool.xaml
More file actions
555 lines (505 loc) · 26.9 KB
/
ColorTool.xaml
File metadata and controls
555 lines (505 loc) · 26.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
<UserControl x:Class="MaterialDesignDemo.ColorTool"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:MaterialDesignDemo.Shared.Converters;assembly=MaterialDesignDemo.Shared"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:sharedDomain="clr-namespace:MaterialDesignDemo.Shared.Domain;assembly=MaterialDesignDemo.Shared"
xmlns:local="clr-namespace:MaterialDesignDemo"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:materialDesignColors="clr-namespace:MaterialDesignColors;assembly=MaterialDesignColors"
xmlns:materialDesignConverters="clr-namespace:MaterialDesignThemes.Wpf.Converters;assembly=MaterialDesignThemes.Wpf"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DataContext="{d:DesignInstance Type=sharedDomain:ColorToolViewModel}"
d:DesignHeight="600"
d:DesignWidth="600"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.RadioButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Slider.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
</ResourceDictionary.MergedDictionaries>
<converters:ColorToBrushConverter x:Key="ColorToBrushConverter" />
<converters:BrushToHexConverter x:Key="BrushToHexConverter" />
<converters:MultiValueEqualityConverter x:Key="MultiValueEqualityConverter" />
<Style TargetType="Button" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp0" />
</Style>
<Style x:Key="HexLabelTextBlock"
TargetType="TextBlock"
BasedOn="{StaticResource MaterialDesignBody2TextBlock}">
<Setter Property="Margin" Value="8" />
</Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="LightGray" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<DataTemplate x:Key="SwatchColorTemplate" DataType="{x:Type Color}">
<Button Width="40"
Height="40"
Background="{Binding Converter={StaticResource ColorToBrushConverter}}"
Command="{Binding DataContext.ChangeHueCommand, RelativeSource={RelativeSource AncestorType=local:ColorTool}}"
CommandParameter="{Binding}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Margin" Value="1,1,0,0" />
<Setter Property="Tag" Value="0" />
<Setter Property="local:ButtonAssist.UniformCornerRadius" Value="0" />
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp0" />
<Setter Property="materialDesign:RippleAssist.IsDisabled" Value="True" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(local:ButtonAssist.UniformCornerRadius)"
To="8"
Duration="0:0:0.18" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(local:ButtonAssist.UniformCornerRadius)"
From="8"
Duration="0:0:0.18" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
<DataTrigger Value="True">
<DataTrigger.Binding>
<MultiBinding Converter="{StaticResource MultiValueEqualityConverter}">
<Binding Mode="OneWay"
Path="DataContext.SelectedColor"
RelativeSource="{RelativeSource AncestorType=local:ColorTool}" />
<Binding Mode="OneWay" />
</MultiBinding>
</DataTrigger.Binding>
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(local:ButtonAssist.UniformCornerRadius)"
To="20"
Duration="0:0:0.18" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<DataTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(local:ButtonAssist.UniformCornerRadius)"
From="20"
Duration="0:0:0.18" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.ExitActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</DataTemplate>
</ResourceDictionary>
</UserControl.Resources>
<DockPanel>
<TextBlock DockPanel.Dock="Top"
Style="{StaticResource PageTitleTextBlock}"
Text="ColorTool" />
<local:ThemeSettings Margin="0,0,0,8" DockPanel.Dock="Top" />
<DockPanel>
<!-- Selection controls -->
<Border DockPanel.Dock="Bottom">
<Grid>
<Grid.Resources>
<Style x:Key="PaletteButton"
TargetType="Button"
BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Height" Value="Auto" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="16" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp0" />
<Setter Property="materialDesign:RippleAssist.Feedback" Value="LightGray" />
<Setter Property="materialDesign:RippleAssist.RippleOnTop" Value="True" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="300" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="2*" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<!-- Primary selection -->
<Border BorderBrush="LightGray" BorderThickness="0,0,1,0">
<Button Command="{Binding ChangeToPrimaryCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource PaletteButton}">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="Primary">
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp8" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="2*" />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Foreground="{DynamicResource MaterialDesignBody}"
Style="{StaticResource MaterialDesignBody1TextBlock}"
Text="Primary" />
<!-- Primary mid section -->
<Border Grid.Row="1" Background="{DynamicResource PrimaryHueMidBrush}">
<Grid>
<TextBlock DataContext="{DynamicResource PrimaryHueMidBrush}"
Foreground="{DynamicResource PrimaryHueMidForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
<Border Width="30"
Height="30"
CornerRadius="15">
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="Primary">
<Setter Property="Background" Value="{DynamicResource PrimaryHueMidForegroundBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="22"
Text="P">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="Primary">
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
</Grid>
</Border>
<UniformGrid Grid.Row="2" Rows="1">
<!-- Primary light -->
<Border Background="{DynamicResource PrimaryHueLightBrush}">
<TextBlock DataContext="{DynamicResource PrimaryHueLightBrush}"
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
</Border>
<!-- Primary dark -->
<Border Background="{DynamicResource PrimaryHueDarkBrush}">
<TextBlock DataContext="{DynamicResource PrimaryHueDarkBrush}"
Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
</Border>
</UniformGrid>
</Grid>
</Button>
</Border>
<!-- Secondary selection -->
<Border Grid.Column="1"
BorderBrush="LightGray"
BorderThickness="0,0,1,0">
<Button Command="{Binding ChangeToSecondaryCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource PaletteButton}">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="Secondary">
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp8" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="2*" />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Foreground="{DynamicResource MaterialDesignBody}"
Style="{StaticResource MaterialDesignBody1TextBlock}"
Text="Secondary" />
<!-- Secondary mid section -->
<Border Grid.Row="1" Background="{DynamicResource SecondaryHueMidBrush}">
<Grid>
<TextBlock DataContext="{DynamicResource SecondaryHueMidBrush}"
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
<Border Width="30"
Height="30"
CornerRadius="15">
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="Secondary">
<Setter Property="Background" Value="{DynamicResource SecondaryHueMidForegroundBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="22"
Text="S">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidForegroundBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="Secondary">
<Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
</Grid>
</Border>
<UniformGrid Grid.Row="2" Rows="1">
<!-- Secondary light -->
<Border Background="{DynamicResource SecondaryHueLightBrush}">
<TextBlock DataContext="{DynamicResource SecondaryHueLightBrush}"
Foreground="{DynamicResource SecondaryHueLightForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
</Border>
<!-- Secondary dark -->
<Border Background="{DynamicResource SecondaryHueDarkBrush}">
<TextBlock DataContext="{DynamicResource SecondaryHueDarkBrush}"
Foreground="{DynamicResource SecondaryHueDarkForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
</Border>
</UniformGrid>
</Grid>
</Button>
</Border>
<UniformGrid Grid.Column="2" Columns="1">
<!-- Primary foreground selection -->
<Border BorderBrush="LightGray" BorderThickness="0,0,0,1">
<Button Command="{Binding ChangeToPrimaryForegroundCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource PaletteButton}">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="PrimaryForeground">
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp8" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Foreground="{DynamicResource MaterialDesignBody}"
Style="{StaticResource MaterialDesignBody1TextBlock}"
Text="Text on Primary" />
<Border Grid.Row="1" Background="{DynamicResource PrimaryHueMidBrush}">
<Grid>
<TextBlock DataContext="{DynamicResource PrimaryHueMidForegroundBrush}"
Foreground="{DynamicResource PrimaryHueMidForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
<Border Width="30"
Height="30"
CornerRadius="15">
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="PrimaryForeground">
<Setter Property="Background" Value="{DynamicResource PrimaryHueMidForegroundBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="22"
Text="T">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="PrimaryForeground">
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
</Grid>
</Border>
</Grid>
</Button>
</Border>
<!-- Secondary foreground selection -->
<Border>
<Button Command="{Binding ChangeToSecondaryForegroundCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource PaletteButton}">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="SecondaryForeground">
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp8" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Foreground="{DynamicResource MaterialDesignBody}"
Style="{StaticResource MaterialDesignBody1TextBlock}"
Text="Text on Secondary" />
<Border Grid.Row="1" Background="{DynamicResource SecondaryHueMidBrush}">
<Grid>
<TextBlock DataContext="{DynamicResource SecondaryHueMidForegroundBrush}"
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}"
Style="{StaticResource HexLabelTextBlock}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}" />
<Border Width="30"
Height="30"
CornerRadius="15">
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="SecondaryForeground">
<Setter Property="Background" Value="{DynamicResource SecondaryHueMidForegroundBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="22"
Text="T">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidForegroundBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding ActiveScheme}" Value="SecondaryForeground">
<Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
</Grid>
</Border>
</Grid>
</Button>
</Border>
</UniformGrid>
</Grid>
</Border>
<!-- Current scheme label -->
<TextBlock DockPanel.Dock="Bottom"
Style="{StaticResource PageTitleTextBlock}"
Text="Current scheme" />
<!-- Color picker section -->
<DockPanel Margin="0,0,0,16">
<UniformGrid Columns="1" DockPanel.Dock="Right">
<RadioButton x:Name="MdPaletteButton"
Margin="4"
Content="MD Palette"
IsChecked="True"
Style="{StaticResource MaterialDesignTabRadioButton}" />
<RadioButton x:Name="CustomPaletteButton"
Margin="4"
Content="Custom"
IsChecked="False"
Style="{StaticResource MaterialDesignTabRadioButton}" />
</UniformGrid>
<Grid DockPanel.Dock="Left">
<Grid Visibility="{Binding IsChecked, ElementName=CustomPaletteButton, Converter={x:Static materialDesignConverters:BooleanToVisibilityConverter.CollapsedInstance}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="160" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<DockPanel>
<TextBox materialDesign:HintAssist.Hint="Color HEX value"
DockPanel.Dock="Top"
Style="{StaticResource MaterialDesignFilledTextBox}"
Text="{Binding Color, ElementName=ColorPicker, UpdateSourceTrigger=PropertyChanged}" />
<Rectangle Margin="2,0,10,2" Fill="{Binding Color, ElementName=ColorPicker, Converter={StaticResource ColorToBrushConverter}}" />
</DockPanel>
<materialDesign:ColorPicker x:Name="ColorPicker"
Grid.Column="1"
Color="{Binding SelectedColor, Delay=25}" />
</Grid>
<StackPanel Visibility="{Binding IsChecked, ElementName=MdPaletteButton, Converter={x:Static materialDesignConverters:BooleanToVisibilityConverter.CollapsedInstance}}">
<StackPanel Orientation="Horizontal">
<StackPanel.Resources>
<Style TargetType="TextBlock">
<Setter Property="Margin" Value="1,1,0,0" />
<Setter Property="TextAlignment" Value="Center" />
<Setter Property="Width" Value="40" />
</Style>
</StackPanel.Resources>
<Rectangle Width="80" />
<TextBlock Text="50" />
<TextBlock Text="100" />
<TextBlock Text="200" />
<TextBlock Text="300" />
<TextBlock Text="400" />
<TextBlock Text="500" />
<TextBlock Text="600" />
<TextBlock Text="700" />
<TextBlock Text="800" />
<TextBlock Text="900" />
<TextBlock Text="A100" />
<TextBlock Text="A200" />
<TextBlock Text="A400" />
<TextBlock Text="A700" />
</StackPanel>
<ItemsControl ItemsSource="{Binding Swatches}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type materialDesignColors:ISwatch}">
<StackPanel Orientation="Horizontal">
<TextBlock Width="80"
VerticalAlignment="Center"
Text="{Binding Name, Mode=OneTime}" />
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}"
ItemsSource="{Binding Lookup.Values, Mode=OneTime}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
</DockPanel>
</DockPanel>
</DockPanel>
</UserControl>