-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathColorTool.xaml
More file actions
611 lines (561 loc) · 37.4 KB
/
ColorTool.xaml
File metadata and controls
611 lines (561 loc) · 37.4 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
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
<UserControl
x:Class="MaterialDesignDemo.ColorTool"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:domain="clr-namespace:MaterialDesignDemo.Domain"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:converters="clr-namespace:MaterialDesignDemo.Converters"
xmlns:local="clr-namespace:MaterialDesignDemo"
xmlns:materialDesignColors="clr-namespace:MaterialDesignColors;assembly=MaterialDesignColors"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=domain:ColorToolViewModel}"
d:DesignHeight="600"
d:DesignWidth="600">
<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 TargetType="TextBlock" x:Key="HexLabelTextBlock" BasedOn="{StaticResource MaterialDesignBody2TextBlock}">
<Setter Property="Margin" Value="8" />
</Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="LightGray" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<DataTemplate DataType="{x:Type Color}" x:Key="SwatchColorTemplate">
<Button
Height="40"
Width="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="local:ButtonAssist.UniformCornerRadius" Value="0" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Margin" Value="1 1 0 0" />
<Setter Property="materialDesign:RippleAssist.IsDisabled" Value="True" />
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp0" />
<Setter Property="Tag" Value="0" />
<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
RelativeSource="{RelativeSource AncestorType=local:ColorTool}"
Path="DataContext.SelectedColor"
Mode="OneWay" />
<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>
<local:ThemeSettings
DockPanel.Dock="Top"
Margin="8" />
<DockPanel>
<!-- Selection controls -->
<Border DockPanel.Dock="Bottom">
<Grid>
<Grid.Resources>
<Style TargetType="Button" BasedOn="{StaticResource MaterialDesignRaisedButton}" x:Key="PaletteButton">
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="materialDesign:ElevationAssist.Elevation" Value="Dp0" />
<Setter Property="materialDesign:ShadowAssist.ShadowEdges" Value="All" />
<Setter Property="materialDesign:RippleAssist.Feedback" Value="LightGray" />
<Setter Property="materialDesign:RippleAssist.RippleOnTop" Value="True" />
<Setter Property="Margin" Value="0" />
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Height" Value="Auto" />
<Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" />
<Setter Property="Padding" Value="16" />
</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
Style="{StaticResource MaterialDesignBody1TextBlock}"
Foreground="{DynamicResource MaterialDesignBody}"
Text="Primary"/>
<!-- Primary mid section -->
<Border
Background="{DynamicResource PrimaryHueMidBrush}"
Grid.Row="1">
<Grid>
<TextBlock
DataContext="{DynamicResource PrimaryHueMidBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource PrimaryHueMidForegroundBrush}" />
<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 Rows="1" Grid.Row="2">
<!-- Primary light -->
<Border Background="{DynamicResource PrimaryHueLightBrush}">
<TextBlock
DataContext="{DynamicResource PrimaryHueLightBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}" />
</Border>
<!-- Primary dark -->
<Border Background="{DynamicResource PrimaryHueDarkBrush}">
<TextBlock
DataContext="{DynamicResource PrimaryHueDarkBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}" />
</Border>
</UniformGrid>
</Grid>
</Button>
</Border>
<!-- Secondary selection -->
<Border
BorderBrush="LightGray"
Grid.Column="1"
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
Style="{StaticResource MaterialDesignBody1TextBlock}"
Foreground="{DynamicResource MaterialDesignBody}"
Text="Secondary"/>
<!-- Secondary mid section -->
<Border
Background="{DynamicResource SecondaryHueMidBrush}"
Grid.Row="1">
<Grid>
<TextBlock
DataContext="{DynamicResource SecondaryHueMidBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}" />
<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 Rows="1" Grid.Row="2">
<!-- Secondary light -->
<Border Background="{DynamicResource SecondaryHueLightBrush}">
<TextBlock
DataContext="{DynamicResource SecondaryHueLightBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource SecondaryHueLightForegroundBrush}" />
</Border>
<!-- Secondary dark -->
<Border Background="{DynamicResource SecondaryHueDarkBrush}">
<TextBlock
DataContext="{DynamicResource SecondaryHueDarkBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource SecondaryHueDarkForegroundBrush}" />
</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
Style="{StaticResource MaterialDesignBody1TextBlock}"
Foreground="{DynamicResource MaterialDesignBody}"
Text="Text on Primary"/>
<Border
Background="{DynamicResource PrimaryHueMidBrush}"
Grid.Row="1">
<Grid>
<TextBlock
DataContext="{DynamicResource PrimaryHueMidForegroundBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource PrimaryHueMidForegroundBrush}" />
<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
Style="{StaticResource MaterialDesignBody1TextBlock}"
Foreground="{DynamicResource MaterialDesignBody}"
Text="Text on Secondary"/>
<Border
Background="{DynamicResource SecondaryHueMidBrush}"
Grid.Row="1">
<Grid>
<TextBlock
DataContext="{DynamicResource SecondaryHueMidForegroundBrush}"
Text="{Binding Converter={StaticResource BrushToHexConverter}}"
Style="{StaticResource HexLabelTextBlock}"
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}" />
<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 -->
<Border
DockPanel.Dock="Bottom"
BorderThickness="1 0 1 0">
<TextBlock
Style="{StaticResource MaterialDesignBody1TextBlock}"
Margin="16"
Text="CURRENT SCHEME"/>
</Border>
<!-- Color picker section -->
<DockPanel Margin="16">
<UniformGrid
Columns="1"
DockPanel.Dock="Right">
<RadioButton
x:Name="MdPaletteButton"
Style="{StaticResource MaterialDesignTabRadioButton}"
Margin="4"
IsChecked="True"
Content="MD Palette"/>
<RadioButton
x:Name="CustomPaletteButton"
Style="{StaticResource MaterialDesignTabRadioButton}"
Margin="4"
IsChecked="False"
Content="Custom"/>
</UniformGrid>
<Grid DockPanel.Dock="Left">
<Grid
Visibility="{Binding IsChecked,
ElementName=CustomPaletteButton,
Converter={StaticResource BooleanToVisibilityConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="160" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<DockPanel>
<TextBox
Text="{Binding Color, ElementName=ColorPicker, UpdateSourceTrigger=PropertyChanged}"
Style="{StaticResource MaterialDesignFilledTextBox}"
materialDesign:HintAssist.Hint="Color HEX value"
DockPanel.Dock="Top"
Margin="2,0,10,2"/>
<Rectangle
Fill="{Binding Color,
ElementName=ColorPicker,
Converter={StaticResource ColorToBrushConverter}}"
Margin="2,0,10,2" />
</DockPanel>
<materialDesign:ColorPicker
x:Name="ColorPicker"
Grid.Column="1"
Color="{Binding SelectedColor, Delay=25}"/>
</Grid>
<StackPanel
Visibility="{Binding IsChecked,
ElementName=MdPaletteButton,
Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel Orientation="Horizontal">
<StackPanel.Resources>
<Style TargetType="TextBlock">
<Setter Property="Width" Value="40" />
<Setter Property="Margin" Value="1 1 0 0" />
<Setter Property="TextAlignment" Value="Center" />
</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 Text="{Binding Name}" Width="80" VerticalAlignment="Center" />
<ItemsControl ItemsSource="{Binding Hues}" ItemTemplate="{StaticResource SwatchColorTemplate}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
</DockPanel>
</DockPanel>
</DockPanel>
</UserControl>