프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Resources / Theme_CustomControl.xaml @ 4fcb686a

이력 | 보기 | 이력해설 | 다운로드 (230 KB)

1
<ResourceDictionary
2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
    xmlns:System="clr-namespace:System;assembly=mscorlib"
5
    xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
6
    xmlns:Telerik_Windows_Controls_Primitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
7
    xmlns:Telerik_Windows_Controls_TabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation"
8
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
9
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
10
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
11
    mc:Ignorable="d">
12

    
13
    <Style x:Key="Style_RadPanelGroup" TargetType="{x:Type telerik:RadPaneGroup}">
14
        <!--<Setter Property="telerik:StyleManager.Theme" Value="Office2016"/>-->
15
        <Setter Property="Template">
16
            <Setter.Value>
17
                <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
18
                    <Grid>
19
                        <Grid.RowDefinitions>
20
                            <RowDefinition Height="*" MinHeight="20" />
21
                            <RowDefinition Height="Auto" />
22
                        </Grid.RowDefinitions>
23
                        <ContentControl
24
                            x:Name="ContentBackground"
25
                            Background="{TemplateBinding Background}"
26
                            BorderBrush="{TemplateBinding BorderBrush}"
27
                            BorderThickness="{TemplateBinding BorderThickness}">
28
                            <ContentControl.Style>
29
                                <Style TargetType="{x:Type ContentControl}">
30
                                    <Setter Property="Template">
31
                                        <Setter.Value>
32
                                            <ControlTemplate TargetType="{x:Type ContentControl}">
33
                                                <Border
34
                                                    x:Name="Root"
35
                                                    Background="{TemplateBinding Background}"
36
                                                    BorderBrush="{TemplateBinding BorderBrush}"
37
                                                    BorderThickness="{TemplateBinding BorderThickness}"
38
                                                    CornerRadius="2,2,2,0">
39
                                                    <ContentPresenter
40
                                                        Content="{TemplateBinding Content}"
41
                                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
42
                                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
43
                                                </Border>
44
                                            </ControlTemplate>
45
                                        </Setter.Value>
46
                                    </Setter>
47
                                </Style>
48
                            </ContentControl.Style>
49
                            <Grid>
50
                                <Grid.RowDefinitions>
51
                                    <RowDefinition Height="Auto" />
52
                                    <RowDefinition Height="*" />
53
                                </Grid.RowDefinitions>
54
                                <Border Grid.Row="0" Visibility="{Binding SelectedItem.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}">
55
                                    <telerik:PaneHeader
56
                                        x:Name="HeaderElement"
57
                                        Grid.Row="0"
58
                                        MinHeight="16"
59
                                        SelectedPane="{TemplateBinding SelectedPane}">
60
                                        <telerik:StyleManager.Theme>
61
                                            <telerik:Office2016Theme />
62
                                        </telerik:StyleManager.Theme>
63
                                    </telerik:PaneHeader>
64
                                </Border>
65
                                <Grid Grid.Row="1">
66
                                    <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}">
67
                                        <ContentPresenter.Visibility>
68
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
69
                                                <Binding.Converter>
70
                                                    <telerik:InvertedBooleanToVisibilityConverter />
71
                                                </Binding.Converter>
72
                                            </Binding>
73
                                        </ContentPresenter.Visibility>
74
                                    </ContentPresenter>
75
                                    <Grid x:Name="ContentElementsPanel">
76
                                        <Grid.Visibility>
77
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
78
                                                <Binding.Converter>
79
                                                    <telerik:BooleanToVisibilityConverter />
80
                                                </Binding.Converter>
81
                                            </Binding>
82
                                        </Grid.Visibility>
83
                                    </Grid>
84
                                </Grid>
85
                            </Grid>
86
                        </ContentControl>
87
                        <Border
88
                            x:Name="ItemsContainer"
89
                            Grid.Row="1"
90
                            Margin="0,-5,0,0"
91
                            Padding="0,0,1,0">
92
                            <ItemsPresenter x:Name="ItemsPresenterElement" />
93
                        </Border>
94
                        <telerik:RadGridResizer
95
                            x:Name="DockResizer"
96
                            Grid.RowSpan="2"
97
                            HorizontalAlignment="Left"
98
                            VerticalAlignment="Stretch"
99
                            Cursor="SizeWE"
100
                            Placement="Left"
101
                            ShowsPreview="True"
102
                            Visibility="Collapsed" />
103
                        <VisualStateManager.VisualStateGroups>
104
                            <VisualStateGroup x:Name="CommonStates">
105
                                <VisualState x:Name="Disabled" />
106
                                <VisualState x:Name="Normal" />
107
                            </VisualStateGroup>
108
                            <VisualStateGroup x:Name="FocusStates">
109
                                <VisualState x:Name="Focused" />
110
                                <VisualState x:Name="Unfocused" />
111
                            </VisualStateGroup>
112
                            <VisualStateGroup x:Name="AutoCollapseStates">
113
                                <VisualState x:Name="SingleItem">
114
                                    <Storyboard>
115
                                        <ObjectAnimationUsingKeyFrames
116
                                            Storyboard.TargetName="ItemsContainer"
117
                                            Storyboard.TargetProperty="Visibility"
118
                                            Duration="0">
119
                                            <DiscreteObjectKeyFrame KeyTime="0">
120
                                                <DiscreteObjectKeyFrame.Value>
121
                                                    <Visibility>Collapsed</Visibility>
122
                                                </DiscreteObjectKeyFrame.Value>
123
                                            </DiscreteObjectKeyFrame>
124
                                        </ObjectAnimationUsingKeyFrames>
125
                                    </Storyboard>
126
                                </VisualState>
127
                                <VisualState x:Name="TwoOrMoreItems" />
128
                            </VisualStateGroup>
129
                            <VisualStateGroup x:Name="PaneHeaderVisibilityStates">
130
                                <VisualState x:Name="PaneHeaderHidden">
131
                                    <Storyboard>
132
                                        <ObjectAnimationUsingKeyFrames
133
                                            Storyboard.TargetName="HeaderElement"
134
                                            Storyboard.TargetProperty="Visibility"
135
                                            Duration="0">
136
                                            <DiscreteObjectKeyFrame KeyTime="0">
137
                                                <DiscreteObjectKeyFrame.Value>
138
                                                    <Visibility>Collapsed</Visibility>
139
                                                </DiscreteObjectKeyFrame.Value>
140
                                            </DiscreteObjectKeyFrame>
141
                                        </ObjectAnimationUsingKeyFrames>
142
                                    </Storyboard>
143
                                </VisualState>
144
                                <VisualState x:Name="PaneHeaderVisible" />
145
                            </VisualStateGroup>
146
                            <VisualStateGroup x:Name="ResizerStates">
147
                                <VisualState x:Name="ResizerLeft">
148
                                    <Storyboard>
149
                                        <Storyboard>
150
                                            <ObjectAnimationUsingKeyFrames
151
                                                Storyboard.TargetName="DockResizer"
152
                                                Storyboard.TargetProperty="Visibility"
153
                                                Duration="0">
154
                                                <DiscreteObjectKeyFrame KeyTime="0">
155
                                                    <DiscreteObjectKeyFrame.Value>
156
                                                        <Visibility>Visible</Visibility>
157
                                                    </DiscreteObjectKeyFrame.Value>
158
                                                </DiscreteObjectKeyFrame>
159
                                            </ObjectAnimationUsingKeyFrames>
160
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Width">
161
                                                <DiscreteObjectKeyFrame KeyTime="0">
162
                                                    <DiscreteObjectKeyFrame.Value>
163
                                                        <System:Double>4</System:Double>
164
                                                    </DiscreteObjectKeyFrame.Value>
165
                                                </DiscreteObjectKeyFrame>
166
                                            </ObjectAnimationUsingKeyFrames>
167
                                            <ObjectAnimationUsingKeyFrames
168
                                                Storyboard.TargetName="ItemsContainer"
169
                                                Storyboard.TargetProperty="Margin"
170
                                                Duration="0">
171
                                                <DiscreteObjectKeyFrame KeyTime="0">
172
                                                    <DiscreteObjectKeyFrame.Value>
173
                                                        <Thickness>4,-5,0,0</Thickness>
174
                                                    </DiscreteObjectKeyFrame.Value>
175
                                                </DiscreteObjectKeyFrame>
176
                                            </ObjectAnimationUsingKeyFrames>
177
                                            <ObjectAnimationUsingKeyFrames
178
                                                Storyboard.TargetName="ContentBackground"
179
                                                Storyboard.TargetProperty="Margin"
180
                                                Duration="0">
181
                                                <DiscreteObjectKeyFrame KeyTime="0">
182
                                                    <DiscreteObjectKeyFrame.Value>
183
                                                        <Thickness>4,0,0,0</Thickness>
184
                                                    </DiscreteObjectKeyFrame.Value>
185
                                                </DiscreteObjectKeyFrame>
186
                                            </ObjectAnimationUsingKeyFrames>
187
                                        </Storyboard>
188
                                    </Storyboard>
189
                                </VisualState>
190
                                <VisualState x:Name="ResizerTop">
191
                                    <Storyboard>
192
                                        <ObjectAnimationUsingKeyFrames
193
                                            Storyboard.TargetName="DockResizer"
194
                                            Storyboard.TargetProperty="Visibility"
195
                                            Duration="0">
196
                                            <DiscreteObjectKeyFrame KeyTime="0">
197
                                                <DiscreteObjectKeyFrame.Value>
198
                                                    <Visibility>Visible</Visibility>
199
                                                </DiscreteObjectKeyFrame.Value>
200
                                            </DiscreteObjectKeyFrame>
201
                                        </ObjectAnimationUsingKeyFrames>
202
                                        <ObjectAnimationUsingKeyFrames
203
                                            Storyboard.TargetName="DockResizer"
204
                                            Storyboard.TargetProperty="VerticalAlignment"
205
                                            Duration="0">
206
                                            <DiscreteObjectKeyFrame KeyTime="0">
207
                                                <DiscreteObjectKeyFrame.Value>
208
                                                    <VerticalAlignment>Top</VerticalAlignment>
209
                                                </DiscreteObjectKeyFrame.Value>
210
                                            </DiscreteObjectKeyFrame>
211
                                        </ObjectAnimationUsingKeyFrames>
212
                                        <ObjectAnimationUsingKeyFrames
213
                                            Storyboard.TargetName="DockResizer"
214
                                            Storyboard.TargetProperty="HorizontalAlignment"
215
                                            Duration="0">
216
                                            <DiscreteObjectKeyFrame KeyTime="0">
217
                                                <DiscreteObjectKeyFrame.Value>
218
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
219
                                                </DiscreteObjectKeyFrame.Value>
220
                                            </DiscreteObjectKeyFrame>
221
                                        </ObjectAnimationUsingKeyFrames>
222
                                        <ObjectAnimationUsingKeyFrames
223
                                            Storyboard.TargetName="DockResizer"
224
                                            Storyboard.TargetProperty="Placement"
225
                                            Duration="0">
226
                                            <DiscreteObjectKeyFrame KeyTime="0">
227
                                                <DiscreteObjectKeyFrame.Value>
228
                                                    <Dock>Top</Dock>
229
                                                </DiscreteObjectKeyFrame.Value>
230
                                            </DiscreteObjectKeyFrame>
231
                                        </ObjectAnimationUsingKeyFrames>
232
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height">
233
                                            <DiscreteObjectKeyFrame KeyTime="0">
234
                                                <DiscreteObjectKeyFrame.Value>
235
                                                    <System:Double>4</System:Double>
236
                                                </DiscreteObjectKeyFrame.Value>
237
                                            </DiscreteObjectKeyFrame>
238
                                        </ObjectAnimationUsingKeyFrames>
239
                                        <ObjectAnimationUsingKeyFrames
240
                                            Storyboard.TargetName="DockResizer"
241
                                            Storyboard.TargetProperty="(Grid.RowSpan)"
242
                                            Duration="0">
243
                                            <DiscreteObjectKeyFrame KeyTime="0">
244
                                                <DiscreteObjectKeyFrame.Value>
245
                                                    <System:Int32>1</System:Int32>
246
                                                </DiscreteObjectKeyFrame.Value>
247
                                            </DiscreteObjectKeyFrame>
248
                                        </ObjectAnimationUsingKeyFrames>
249
                                        <ObjectAnimationUsingKeyFrames
250
                                            Storyboard.TargetName="DockResizer"
251
                                            Storyboard.TargetProperty="(Grid.Row)"
252
                                            Duration="0">
253
                                            <DiscreteObjectKeyFrame KeyTime="0">
254
                                                <DiscreteObjectKeyFrame.Value>
255
                                                    <System:Int32>0</System:Int32>
256
                                                </DiscreteObjectKeyFrame.Value>
257
                                            </DiscreteObjectKeyFrame>
258
                                        </ObjectAnimationUsingKeyFrames>
259
                                        <ObjectAnimationUsingKeyFrames
260
                                            Storyboard.TargetName="ContentBackground"
261
                                            Storyboard.TargetProperty="Margin"
262
                                            Duration="0">
263
                                            <DiscreteObjectKeyFrame KeyTime="0">
264
                                                <DiscreteObjectKeyFrame.Value>
265
                                                    <Thickness>0,4,0,0</Thickness>
266
                                                </DiscreteObjectKeyFrame.Value>
267
                                            </DiscreteObjectKeyFrame>
268
                                        </ObjectAnimationUsingKeyFrames>
269
                                    </Storyboard>
270
                                </VisualState>
271
                                <VisualState x:Name="HideResizer" />
272
                            </VisualStateGroup>
273
                        </VisualStateManager.VisualStateGroups>
274
                    </Grid>
275
                </ControlTemplate>
276
            </Setter.Value>
277
        </Setter>
278
        <Setter Property="BottomTemplate">
279
            <Setter.Value>
280
                <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
281
                    <Grid>
282
                        <Grid.RowDefinitions>
283
                            <RowDefinition Height="*" MinHeight="20" />
284
                            <RowDefinition Height="Auto" />
285
                        </Grid.RowDefinitions>
286
                        <ContentControl
287
                            x:Name="ContentBackground"
288
                            Background="{TemplateBinding Background}"
289
                            BorderBrush="{TemplateBinding BorderBrush}"
290
                            BorderThickness="{TemplateBinding BorderThickness}">
291
                            <ContentControl.Style>
292
                                <Style TargetType="{x:Type ContentControl}">
293
                                    <Setter Property="Template">
294
                                        <Setter.Value>
295
                                            <ControlTemplate TargetType="{x:Type ContentControl}">
296
                                                <Border
297
                                                    x:Name="Root"
298
                                                    Background="{TemplateBinding Background}"
299
                                                    BorderBrush="{TemplateBinding BorderBrush}"
300
                                                    BorderThickness="{TemplateBinding BorderThickness}"
301
                                                    CornerRadius="2,2,2,0">
302
                                                    <ContentPresenter
303
                                                        Content="{TemplateBinding Content}"
304
                                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
305
                                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
306
                                                </Border>
307
                                            </ControlTemplate>
308
                                        </Setter.Value>
309
                                    </Setter>
310
                                </Style>
311
                            </ContentControl.Style>
312
                            <Grid>
313
                                <Grid.RowDefinitions>
314
                                    <RowDefinition Height="Auto" />
315
                                    <RowDefinition Height="*" />
316
                                </Grid.RowDefinitions>
317
                                <Border Grid.Row="0" Visibility="{Binding SelectedItem.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}">
318
                                    <telerik:PaneHeader
319
                                        x:Name="HeaderElement"
320
                                        Grid.Row="0"
321
                                        MinHeight="16"
322
                                        SelectedPane="{TemplateBinding SelectedPane}">
323
                                        <telerik:StyleManager.Theme>
324
                                            <telerik:Office_BlackTheme />
325
                                        </telerik:StyleManager.Theme>
326
                                    </telerik:PaneHeader>
327
                                </Border>
328
                                <Grid Grid.Row="1">
329
                                    <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}">
330
                                        <ContentPresenter.Visibility>
331
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
332
                                                <Binding.Converter>
333
                                                    <telerik:InvertedBooleanToVisibilityConverter />
334
                                                </Binding.Converter>
335
                                            </Binding>
336
                                        </ContentPresenter.Visibility>
337
                                    </ContentPresenter>
338
                                    <Grid x:Name="ContentElementsPanel">
339
                                        <Grid.Visibility>
340
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
341
                                                <Binding.Converter>
342
                                                    <telerik:BooleanToVisibilityConverter />
343
                                                </Binding.Converter>
344
                                            </Binding>
345
                                        </Grid.Visibility>
346
                                    </Grid>
347
                                </Grid>
348
                            </Grid>
349
                        </ContentControl>
350
                        <Border
351
                            x:Name="ItemsContainer"
352
                            Grid.Row="1"
353
                            Margin="0,-5,0,0"
354
                            Padding="0,0,1,0">
355
                            <ItemsPresenter x:Name="ItemsPresenterElement" />
356
                        </Border>
357
                        <telerik:RadGridResizer
358
                            x:Name="DockResizer"
359
                            Grid.RowSpan="2"
360
                            HorizontalAlignment="Left"
361
                            VerticalAlignment="Stretch"
362
                            Cursor="SizeWE"
363
                            Placement="Left"
364
                            ShowsPreview="True"
365
                            Visibility="Collapsed" />
366
                        <VisualStateManager.VisualStateGroups>
367
                            <VisualStateGroup x:Name="CommonStates">
368
                                <VisualState x:Name="Disabled" />
369
                                <VisualState x:Name="Normal" />
370
                            </VisualStateGroup>
371
                            <VisualStateGroup x:Name="FocusStates">
372
                                <VisualState x:Name="Focused" />
373
                                <VisualState x:Name="Unfocused" />
374
                            </VisualStateGroup>
375
                            <VisualStateGroup x:Name="AutoCollapseStates">
376
                                <VisualState x:Name="SingleItem">
377
                                    <Storyboard>
378
                                        <ObjectAnimationUsingKeyFrames
379
                                            Storyboard.TargetName="ItemsContainer"
380
                                            Storyboard.TargetProperty="Visibility"
381
                                            Duration="0">
382
                                            <DiscreteObjectKeyFrame KeyTime="0">
383
                                                <DiscreteObjectKeyFrame.Value>
384
                                                    <Visibility>Collapsed</Visibility>
385
                                                </DiscreteObjectKeyFrame.Value>
386
                                            </DiscreteObjectKeyFrame>
387
                                        </ObjectAnimationUsingKeyFrames>
388
                                    </Storyboard>
389
                                </VisualState>
390
                                <VisualState x:Name="TwoOrMoreItems" />
391
                            </VisualStateGroup>
392
                            <VisualStateGroup x:Name="PaneHeaderVisibilityStates">
393
                                <VisualState x:Name="PaneHeaderHidden">
394
                                    <Storyboard>
395
                                        <ObjectAnimationUsingKeyFrames
396
                                            Storyboard.TargetName="HeaderElement"
397
                                            Storyboard.TargetProperty="Visibility"
398
                                            Duration="0">
399
                                            <DiscreteObjectKeyFrame KeyTime="0">
400
                                                <DiscreteObjectKeyFrame.Value>
401
                                                    <Visibility>Collapsed</Visibility>
402
                                                </DiscreteObjectKeyFrame.Value>
403
                                            </DiscreteObjectKeyFrame>
404
                                        </ObjectAnimationUsingKeyFrames>
405
                                    </Storyboard>
406
                                </VisualState>
407
                                <VisualState x:Name="PaneHeaderVisible" />
408
                            </VisualStateGroup>
409
                            <VisualStateGroup x:Name="ResizerStates">
410
                                <VisualState x:Name="ResizerLeft">
411
                                    <Storyboard>
412
                                        <Storyboard>
413
                                            <ObjectAnimationUsingKeyFrames
414
                                                Storyboard.TargetName="DockResizer"
415
                                                Storyboard.TargetProperty="Visibility"
416
                                                Duration="0">
417
                                                <DiscreteObjectKeyFrame KeyTime="0">
418
                                                    <DiscreteObjectKeyFrame.Value>
419
                                                        <Visibility>Visible</Visibility>
420
                                                    </DiscreteObjectKeyFrame.Value>
421
                                                </DiscreteObjectKeyFrame>
422
                                            </ObjectAnimationUsingKeyFrames>
423
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Width">
424
                                                <DiscreteObjectKeyFrame KeyTime="0">
425
                                                    <DiscreteObjectKeyFrame.Value>
426
                                                        <System:Double>4</System:Double>
427
                                                    </DiscreteObjectKeyFrame.Value>
428
                                                </DiscreteObjectKeyFrame>
429
                                            </ObjectAnimationUsingKeyFrames>
430
                                            <ObjectAnimationUsingKeyFrames
431
                                                Storyboard.TargetName="ItemsContainer"
432
                                                Storyboard.TargetProperty="Margin"
433
                                                Duration="0">
434
                                                <DiscreteObjectKeyFrame KeyTime="0">
435
                                                    <DiscreteObjectKeyFrame.Value>
436
                                                        <Thickness>4,-5,0,0</Thickness>
437
                                                    </DiscreteObjectKeyFrame.Value>
438
                                                </DiscreteObjectKeyFrame>
439
                                            </ObjectAnimationUsingKeyFrames>
440
                                            <ObjectAnimationUsingKeyFrames
441
                                                Storyboard.TargetName="ContentBackground"
442
                                                Storyboard.TargetProperty="Margin"
443
                                                Duration="0">
444
                                                <DiscreteObjectKeyFrame KeyTime="0">
445
                                                    <DiscreteObjectKeyFrame.Value>
446
                                                        <Thickness>4,0,0,0</Thickness>
447
                                                    </DiscreteObjectKeyFrame.Value>
448
                                                </DiscreteObjectKeyFrame>
449
                                            </ObjectAnimationUsingKeyFrames>
450
                                        </Storyboard>
451
                                    </Storyboard>
452
                                </VisualState>
453
                                <VisualState x:Name="ResizerTop">
454
                                    <Storyboard>
455
                                        <ObjectAnimationUsingKeyFrames
456
                                            Storyboard.TargetName="DockResizer"
457
                                            Storyboard.TargetProperty="Visibility"
458
                                            Duration="0">
459
                                            <DiscreteObjectKeyFrame KeyTime="0">
460
                                                <DiscreteObjectKeyFrame.Value>
461
                                                    <Visibility>Visible</Visibility>
462
                                                </DiscreteObjectKeyFrame.Value>
463
                                            </DiscreteObjectKeyFrame>
464
                                        </ObjectAnimationUsingKeyFrames>
465
                                        <ObjectAnimationUsingKeyFrames
466
                                            Storyboard.TargetName="DockResizer"
467
                                            Storyboard.TargetProperty="VerticalAlignment"
468
                                            Duration="0">
469
                                            <DiscreteObjectKeyFrame KeyTime="0">
470
                                                <DiscreteObjectKeyFrame.Value>
471
                                                    <VerticalAlignment>Top</VerticalAlignment>
472
                                                </DiscreteObjectKeyFrame.Value>
473
                                            </DiscreteObjectKeyFrame>
474
                                        </ObjectAnimationUsingKeyFrames>
475
                                        <ObjectAnimationUsingKeyFrames
476
                                            Storyboard.TargetName="DockResizer"
477
                                            Storyboard.TargetProperty="HorizontalAlignment"
478
                                            Duration="0">
479
                                            <DiscreteObjectKeyFrame KeyTime="0">
480
                                                <DiscreteObjectKeyFrame.Value>
481
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
482
                                                </DiscreteObjectKeyFrame.Value>
483
                                            </DiscreteObjectKeyFrame>
484
                                        </ObjectAnimationUsingKeyFrames>
485
                                        <ObjectAnimationUsingKeyFrames
486
                                            Storyboard.TargetName="DockResizer"
487
                                            Storyboard.TargetProperty="Placement"
488
                                            Duration="0">
489
                                            <DiscreteObjectKeyFrame KeyTime="0">
490
                                                <DiscreteObjectKeyFrame.Value>
491
                                                    <Dock>Top</Dock>
492
                                                </DiscreteObjectKeyFrame.Value>
493
                                            </DiscreteObjectKeyFrame>
494
                                        </ObjectAnimationUsingKeyFrames>
495
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height">
496
                                            <DiscreteObjectKeyFrame KeyTime="0">
497
                                                <DiscreteObjectKeyFrame.Value>
498
                                                    <System:Double>4</System:Double>
499
                                                </DiscreteObjectKeyFrame.Value>
500
                                            </DiscreteObjectKeyFrame>
501
                                        </ObjectAnimationUsingKeyFrames>
502
                                        <ObjectAnimationUsingKeyFrames
503
                                            Storyboard.TargetName="DockResizer"
504
                                            Storyboard.TargetProperty="(Grid.RowSpan)"
505
                                            Duration="0">
506
                                            <DiscreteObjectKeyFrame KeyTime="0">
507
                                                <DiscreteObjectKeyFrame.Value>
508
                                                    <System:Int32>1</System:Int32>
509
                                                </DiscreteObjectKeyFrame.Value>
510
                                            </DiscreteObjectKeyFrame>
511
                                        </ObjectAnimationUsingKeyFrames>
512
                                        <ObjectAnimationUsingKeyFrames
513
                                            Storyboard.TargetName="DockResizer"
514
                                            Storyboard.TargetProperty="(Grid.Row)"
515
                                            Duration="0">
516
                                            <DiscreteObjectKeyFrame KeyTime="0">
517
                                                <DiscreteObjectKeyFrame.Value>
518
                                                    <System:Int32>0</System:Int32>
519
                                                </DiscreteObjectKeyFrame.Value>
520
                                            </DiscreteObjectKeyFrame>
521
                                        </ObjectAnimationUsingKeyFrames>
522
                                        <ObjectAnimationUsingKeyFrames
523
                                            Storyboard.TargetName="ContentBackground"
524
                                            Storyboard.TargetProperty="Margin"
525
                                            Duration="0">
526
                                            <DiscreteObjectKeyFrame KeyTime="0">
527
                                                <DiscreteObjectKeyFrame.Value>
528
                                                    <Thickness>0,4,0,0</Thickness>
529
                                                </DiscreteObjectKeyFrame.Value>
530
                                            </DiscreteObjectKeyFrame>
531
                                        </ObjectAnimationUsingKeyFrames>
532
                                    </Storyboard>
533
                                </VisualState>
534
                                <VisualState x:Name="HideResizer" />
535
                            </VisualStateGroup>
536
                        </VisualStateManager.VisualStateGroups>
537
                    </Grid>
538
                </ControlTemplate>
539
            </Setter.Value>
540
        </Setter>
541
        <Setter Property="TopTemplate">
542
            <Setter.Value>
543
                <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
544
                    <Grid>
545
                        <Grid.RowDefinitions>
546
                            <RowDefinition Height="Auto" />
547
                            <RowDefinition Height="*" />
548
                        </Grid.RowDefinitions>
549
                        <ContentControl
550
                            x:Name="ContentBackground"
551
                            Grid.Row="1"
552
                            Background="{TemplateBinding Background}"
553
                            BorderBrush="{TemplateBinding BorderBrush}"
554
                            BorderThickness="{TemplateBinding BorderThickness}">
555
                            <ContentControl.Style>
556
                                <Style TargetType="{x:Type ContentControl}">
557
                                    <Setter Property="Template">
558
                                        <Setter.Value>
559
                                            <ControlTemplate TargetType="{x:Type ContentControl}">
560
                                                <Border
561
                                                    x:Name="Root"
562
                                                    Background="{TemplateBinding Background}"
563
                                                    BorderBrush="{TemplateBinding BorderBrush}"
564
                                                    BorderThickness="{TemplateBinding BorderThickness}"
565
                                                    CornerRadius="0,2,2,2">
566
                                                    <!--        <Border x:Name="BorderLayer3" BorderBrush="White" BorderThickness="2" CornerRadius="0,1,1,1">
567
                                                                                                                        <Border x:Name="BorderLayer2" BorderBrush="#FFF0F0F0" BorderThickness="2" CornerRadius="0">
568
                                                                                                                                <Border x:Name="BorderLayer1" BorderBrush="#FF848484" BorderThickness="1" CornerRadius="0">
569
                                                                                                                                        <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
570
                                                                                                                                </Border>
571
                                                                                                                        </Border>
572
                                                                                                                </Border>
573
                                                                                                                -->
574
                                                    <Border
575
                                                        x:Name="BorderLayer3"
576
                                                        BorderBrush="White"
577
                                                        BorderThickness="2"
578
                                                        CornerRadius="0,1,1,1">
579
                                                        <Border
580
                                                            x:Name="BorderLayer2"
581
                                                            BorderBrush="#FFF0F0F0"
582
                                                            BorderThickness="2"
583
                                                            CornerRadius="0">
584
                                                            <ContentPresenter
585
                                                                Content="{TemplateBinding Content}"
586
                                                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
587
                                                                ContentTemplate="{TemplateBinding ContentTemplate}" />
588
                                                        </Border>
589
                                                    </Border>
590
                                                </Border>
591
                                            </ControlTemplate>
592
                                        </Setter.Value>
593
                                    </Setter>
594
                                </Style>
595
                            </ContentControl.Style>
596
                            <Grid>
597
                                <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}">
598
                                    <ContentPresenter.Visibility>
599
                                        <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
600
                                            <Binding.Converter>
601
                                                <telerik:InvertedBooleanToVisibilityConverter />
602
                                            </Binding.Converter>
603
                                        </Binding>
604
                                    </ContentPresenter.Visibility>
605
                                </ContentPresenter>
606
                                <Grid x:Name="ContentElementsPanel">
607
                                    <Grid.Visibility>
608
                                        <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
609
                                            <Binding.Converter>
610
                                                <telerik:BooleanToVisibilityConverter />
611
                                            </Binding.Converter>
612
                                        </Binding>
613
                                    </Grid.Visibility>
614
                                </Grid>
615
                            </Grid>
616
                        </ContentControl>
617
                        <Grid x:Name="Header" Grid.Row="0">
618
                            <Grid.ColumnDefinitions>
619
                                <ColumnDefinition Width="Auto" />
620
                                <ColumnDefinition Width="*" />
621
                                <ColumnDefinition Width="Auto" />
622
                                <ColumnDefinition Width="Auto" />
623
                                <ColumnDefinition Width="Auto" />
624
                            </Grid.ColumnDefinitions>
625
                            <RepeatButton
626
                                x:Name="LeftScrollButtonElement"
627
                                Grid.Column="0"
628
                                Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}">
629
                                <RepeatButton.Style>
630
                                    <Style TargetType="{x:Type RepeatButton}">
631
                                        <Setter Property="Width" Value="17" />
632
                                        <Setter Property="Height" Value="17" />
633
                                        <Setter Property="Margin" Value="1" />
634
                                        <Setter Property="IsTabStop" Value="False" />
635
                                        <Setter Property="SnapsToDevicePixels" Value="True" />
636
                                        <Setter Property="Template">
637
                                            <Setter.Value>
638
                                                <ControlTemplate TargetType="{x:Type RepeatButton}">
639
                                                    <Grid x:Name="LayoutRoot">
640
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome
641
                                                            RenderMouseOver="{TemplateBinding IsMouseOver}"
642
                                                            RenderNormal="False"
643
                                                            RenderPressed="{TemplateBinding IsPressed}">
644
                                                            <telerik:StyleManager.Theme>
645
                                                                <telerik:Office_BlackTheme />
646
                                                            </telerik:StyleManager.Theme>
647
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
648
                                                        <Path
649
                                                            x:Name="BackgroundIcon"
650
                                                            Width="7"
651
                                                            Height="7"
652
                                                            Margin="0,2,0,0"
653
                                                            Data="M6,0L6,7 5,7 5,6 4,6 4,5 3,5 3,4 2,4 2,3 3,3 3,2 4,2 4,1 5,1 5,0z"
654
                                                            Fill="White" />
655
                                                        <Path
656
                                                            x:Name="ForegroundIcon"
657
                                                            Width="7"
658
                                                            Height="7"
659
                                                            Margin="0,1"
660
                                                            Data="M6,0L6,7 5,7 5,6 4,6 4,5 3,5 3,4 2,4 2,3 3,3 3,2 4,2 4,1 5,1 5,0z"
661
                                                            Fill="Black" />
662
                                                        <VisualStateManager.VisualStateGroups>
663
                                                            <VisualStateGroup x:Name="CommonStates">
664
                                                                <VisualState x:Name="Disabled">
665
                                                                    <Storyboard>
666
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
667
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
668
                                                                                <DiscreteObjectKeyFrame.Value>
669
                                                                                    <SolidColorBrush Color="#FF8D8D8D" />
670
                                                                                </DiscreteObjectKeyFrame.Value>
671
                                                                            </DiscreteObjectKeyFrame>
672
                                                                        </ObjectAnimationUsingKeyFrames>
673
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
674
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
675
                                                                                <DiscreteObjectKeyFrame.Value>
676
                                                                                    <SolidColorBrush Color="White" />
677
                                                                                </DiscreteObjectKeyFrame.Value>
678
                                                                            </DiscreteObjectKeyFrame>
679
                                                                        </ObjectAnimationUsingKeyFrames>
680
                                                                    </Storyboard>
681
                                                                </VisualState>
682
                                                                <VisualState x:Name="Normal" />
683
                                                                <VisualState x:Name="MouseOver">
684
                                                                    <Storyboard>
685
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
686
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
687
                                                                                <DiscreteObjectKeyFrame.Value>
688
                                                                                    <SolidColorBrush Color="Black" />
689
                                                                                </DiscreteObjectKeyFrame.Value>
690
                                                                            </DiscreteObjectKeyFrame>
691
                                                                        </ObjectAnimationUsingKeyFrames>
692
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
693
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
694
                                                                                <DiscreteObjectKeyFrame.Value>
695
                                                                                    <SolidColorBrush Color="White" />
696
                                                                                </DiscreteObjectKeyFrame.Value>
697
                                                                            </DiscreteObjectKeyFrame>
698
                                                                        </ObjectAnimationUsingKeyFrames>
699
                                                                    </Storyboard>
700
                                                                </VisualState>
701
                                                                <VisualState x:Name="Pressed">
702
                                                                    <Storyboard>
703
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
704
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
705
                                                                                <DiscreteObjectKeyFrame.Value>
706
                                                                                    <SolidColorBrush Color="Black" />
707
                                                                                </DiscreteObjectKeyFrame.Value>
708
                                                                            </DiscreteObjectKeyFrame>
709
                                                                        </ObjectAnimationUsingKeyFrames>
710
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
711
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
712
                                                                                <DiscreteObjectKeyFrame.Value>
713
                                                                                    <SolidColorBrush Color="White" />
714
                                                                                </DiscreteObjectKeyFrame.Value>
715
                                                                            </DiscreteObjectKeyFrame>
716
                                                                        </ObjectAnimationUsingKeyFrames>
717
                                                                    </Storyboard>
718
                                                                </VisualState>
719
                                                            </VisualStateGroup>
720
                                                        </VisualStateManager.VisualStateGroups>
721
                                                    </Grid>
722
                                                </ControlTemplate>
723
                                            </Setter.Value>
724
                                        </Setter>
725
                                    </Style>
726
                                </RepeatButton.Style>
727
                            </RepeatButton>
728
                            <ScrollViewer
729
                                x:Name="ScrollViewerElement"
730
                                Grid.Column="1"
731
                                Margin="0,-2"
732
                                HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
733
                                <ScrollViewer.Template>
734
                                    <ControlTemplate TargetType="{x:Type ScrollViewer}">
735
                                        <ScrollContentPresenter
736
                                            x:Name="ScrollContentPresenter"
737
                                            Margin="0,0,1,0"
738
                                            CanHorizontallyScroll="False"
739
                                            CanVerticallyScroll="False"
740
                                            Content="{TemplateBinding Content}"
741
                                            ContentTemplate="{TemplateBinding ContentTemplate}" />
742
                                    </ControlTemplate>
743
                                </ScrollViewer.Template>
744
                                <ItemsPresenter x:Name="ItemsPresenterElement" Margin="0,2" />
745
                            </ScrollViewer>
746
                            <RepeatButton
747
                                x:Name="RightScrollButtonElement"
748
                                Grid.Column="2"
749
                                Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}">
750
                                <RepeatButton.Style>
751
                                    <Style TargetType="{x:Type RepeatButton}">
752
                                        <Setter Property="Width" Value="17" />
753
                                        <Setter Property="Height" Value="17" />
754
                                        <Setter Property="Margin" Value="1" />
755
                                        <Setter Property="IsTabStop" Value="False" />
756
                                        <Setter Property="SnapsToDevicePixels" Value="True" />
757
                                        <Setter Property="Template">
758
                                            <Setter.Value>
759
                                                <ControlTemplate TargetType="{x:Type RepeatButton}">
760
                                                    <Grid x:Name="LayoutRoot">
761
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome
762
                                                            RenderMouseOver="{TemplateBinding IsMouseOver}"
763
                                                            RenderNormal="False"
764
                                                            RenderPressed="{TemplateBinding IsPressed}">
765
                                                            <telerik:StyleManager.Theme>
766
                                                                <telerik:Office_BlackTheme />
767
                                                            </telerik:StyleManager.Theme>
768
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
769
                                                        <Path
770
                                                            x:Name="BackgroundIcon"
771
                                                            Width="7"
772
                                                            Height="7"
773
                                                            Margin="0,2,0,0"
774
                                                            Data="M1,0L1,7 2,7 2,6 3,6 3,5 4,5 4,4 5,4 5,3 4,3 4,2 3,2 3,1 2,1 2,0z"
775
                                                            Fill="White" />
776
                                                        <Path
777
                                                            x:Name="ForegroundIcon"
778
                                                            Width="7"
779
                                                            Height="7"
780
                                                            Margin="0,1"
781
                                                            Data="M1,0L1,7 2,7 2,6 3,6 3,5 4,5 4,4 5,4 5,3 4,3 4,2 3,2 3,1 2,1 2,0z"
782
                                                            Fill="Black" />
783
                                                        <VisualStateManager.VisualStateGroups>
784
                                                            <VisualStateGroup x:Name="CommonStates">
785
                                                                <VisualState x:Name="Disabled">
786
                                                                    <Storyboard>
787
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
788
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
789
                                                                                <DiscreteObjectKeyFrame.Value>
790
                                                                                    <SolidColorBrush Color="#FF8D8D8D" />
791
                                                                                </DiscreteObjectKeyFrame.Value>
792
                                                                            </DiscreteObjectKeyFrame>
793
                                                                        </ObjectAnimationUsingKeyFrames>
794
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
795
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
796
                                                                                <DiscreteObjectKeyFrame.Value>
797
                                                                                    <SolidColorBrush Color="White" />
798
                                                                                </DiscreteObjectKeyFrame.Value>
799
                                                                            </DiscreteObjectKeyFrame>
800
                                                                        </ObjectAnimationUsingKeyFrames>
801
                                                                    </Storyboard>
802
                                                                </VisualState>
803
                                                                <VisualState x:Name="Normal" />
804
                                                                <VisualState x:Name="MouseOver">
805
                                                                    <Storyboard>
806
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
807
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
808
                                                                                <DiscreteObjectKeyFrame.Value>
809
                                                                                    <SolidColorBrush Color="Black" />
810
                                                                                </DiscreteObjectKeyFrame.Value>
811
                                                                            </DiscreteObjectKeyFrame>
812
                                                                        </ObjectAnimationUsingKeyFrames>
813
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
814
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
815
                                                                                <DiscreteObjectKeyFrame.Value>
816
                                                                                    <SolidColorBrush Color="White" />
817
                                                                                </DiscreteObjectKeyFrame.Value>
818
                                                                            </DiscreteObjectKeyFrame>
819
                                                                        </ObjectAnimationUsingKeyFrames>
820
                                                                    </Storyboard>
821
                                                                </VisualState>
822
                                                                <VisualState x:Name="Pressed">
823
                                                                    <Storyboard>
824
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
825
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
826
                                                                                <DiscreteObjectKeyFrame.Value>
827
                                                                                    <SolidColorBrush Color="Black" />
828
                                                                                </DiscreteObjectKeyFrame.Value>
829
                                                                            </DiscreteObjectKeyFrame>
830
                                                                        </ObjectAnimationUsingKeyFrames>
831
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
832
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
833
                                                                                <DiscreteObjectKeyFrame.Value>
834
                                                                                    <SolidColorBrush Color="White" />
835
                                                                                </DiscreteObjectKeyFrame.Value>
836
                                                                            </DiscreteObjectKeyFrame>
837
                                                                        </ObjectAnimationUsingKeyFrames>
838
                                                                    </Storyboard>
839
                                                                </VisualState>
840
                                                            </VisualStateGroup>
841
                                                        </VisualStateManager.VisualStateGroups>
842
                                                    </Grid>
843
                                                </ControlTemplate>
844
                                            </Setter.Value>
845
                                        </Setter>
846
                                    </Style>
847
                                </RepeatButton.Style>
848
                            </RepeatButton>
849
                            <ToggleButton
850
                                x:Name="DropDownButtonElement"
851
                                Grid.Column="3"
852
                                IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
853
                                Visibility="Collapsed">
854
                                <telerik:RadContextMenu.ContextMenu>
855
                                    <Telerik_Windows_Controls_TabControl:DropDownMenu
856
                                        x:Name="DropDownMenuElement"
857
                                        ClickToOpen="True"
858
                                        DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}"
859
                                        ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}"
860
                                        Placement="Bottom"
861
                                        StaysOpen="False"
862
                                        Style="{TemplateBinding DropDownStyle}" />
863
                                </telerik:RadContextMenu.ContextMenu>
864
                                <ToggleButton.Style>
865
                                    <Style TargetType="{x:Type ToggleButton}">
866
                                        <Setter Property="Width" Value="17" />
867
                                        <Setter Property="Height" Value="17" />
868
                                        <Setter Property="Margin" Value="1" />
869
                                        <Setter Property="Template">
870
                                            <Setter.Value>
871
                                                <ControlTemplate TargetType="{x:Type ToggleButton}">
872
                                                    <Grid>
873
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome
874
                                                            RenderChecked="{TemplateBinding IsChecked}"
875
                                                            RenderMouseOver="{TemplateBinding IsMouseOver}"
876
                                                            RenderNormal="False"
877
                                                            RenderPressed="{TemplateBinding IsPressed}">
878
                                                            <telerik:StyleManager.Theme>
879
                                                                <telerik:Office_BlackTheme />
880
                                                            </telerik:StyleManager.Theme>
881
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
882
                                                        <Path
883
                                                            x:Name="BackgroundIcon"
884
                                                            Width="7"
885
                                                            Height="7"
886
                                                            Margin="0,2,0,0"
887
                                                            Data="M0,2L7,2 7,3 6,3 6,4 5,4 5,5 4,5 4,6 3,6 3,5 2,5 2,4 1,4 1,3 0,3z M0,0L7,0 7,1 0,1z"
888
                                                            Fill="White" />
889
                                                        <Path
890
                                                            x:Name="ForegroundIcon"
891
                                                            Width="7"
892
                                                            Height="7"
893
                                                            Margin="0,1"
894
                                                            Data="M0,2L7,2 7,3 6,3 6,4 5,4 5,5 4,5 4,6 3,6 3,5 2,5 2,4 1,4 1,3 0,3z M0,0L7,0 7,1 0,1z"
895
                                                            Fill="Black" />
896
                                                        <VisualStateManager.VisualStateGroups>
897
                                                            <VisualStateGroup x:Name="CommonStates">
898
                                                                <VisualState x:Name="Disabled">
899
                                                                    <Storyboard>
900
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
901
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
902
                                                                                <DiscreteObjectKeyFrame.Value>
903
                                                                                    <SolidColorBrush Color="#FF8D8D8D" />
904
                                                                                </DiscreteObjectKeyFrame.Value>
905
                                                                            </DiscreteObjectKeyFrame>
906
                                                                        </ObjectAnimationUsingKeyFrames>
907
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
908
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
909
                                                                                <DiscreteObjectKeyFrame.Value>
910
                                                                                    <SolidColorBrush Color="White" />
911
                                                                                </DiscreteObjectKeyFrame.Value>
912
                                                                            </DiscreteObjectKeyFrame>
913
                                                                        </ObjectAnimationUsingKeyFrames>
914
                                                                    </Storyboard>
915
                                                                </VisualState>
916
                                                                <VisualState x:Name="Normal" />
917
                                                                <VisualState x:Name="MouseOver">
918
                                                                    <Storyboard>
919
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
920
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
921
                                                                                <DiscreteObjectKeyFrame.Value>
922
                                                                                    <SolidColorBrush Color="Black" />
923
                                                                                </DiscreteObjectKeyFrame.Value>
924
                                                                            </DiscreteObjectKeyFrame>
925
                                                                        </ObjectAnimationUsingKeyFrames>
926
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
927
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
928
                                                                                <DiscreteObjectKeyFrame.Value>
929
                                                                                    <SolidColorBrush Color="White" />
930
                                                                                </DiscreteObjectKeyFrame.Value>
931
                                                                            </DiscreteObjectKeyFrame>
932
                                                                        </ObjectAnimationUsingKeyFrames>
933
                                                                    </Storyboard>
934
                                                                </VisualState>
935
                                                                <VisualState x:Name="Pressed">
936
                                                                    <Storyboard>
937
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
938
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
939
                                                                                <DiscreteObjectKeyFrame.Value>
940
                                                                                    <SolidColorBrush Color="Black" />
941
                                                                                </DiscreteObjectKeyFrame.Value>
942
                                                                            </DiscreteObjectKeyFrame>
943
                                                                        </ObjectAnimationUsingKeyFrames>
944
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
945
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
946
                                                                                <DiscreteObjectKeyFrame.Value>
947
                                                                                    <SolidColorBrush Color="White" />
948
                                                                                </DiscreteObjectKeyFrame.Value>
949
                                                                            </DiscreteObjectKeyFrame>
950
                                                                        </ObjectAnimationUsingKeyFrames>
951
                                                                    </Storyboard>
952
                                                                </VisualState>
953
                                                            </VisualStateGroup>
954
                                                        </VisualStateManager.VisualStateGroups>
955
                                                    </Grid>
956
                                                </ControlTemplate>
957
                                            </Setter.Value>
958
                                        </Setter>
959
                                    </Style>
960
                                </ToggleButton.Style>
961
                            </ToggleButton>
962
                            <telerik:RadButton
963
                                x:Name="CloseButton"
964
                                Grid.Column="4"
965
                                Command="telerik:RadDockingCommands.Close"
966
                                InnerCornerRadius="0">
967
                                <telerik:RadButton.Style>
968
                                    <Style TargetType="{x:Type telerik:RadButton}">
969
                                        <Setter Property="Width" Value="17" />
970
                                        <Setter Property="Height" Value="17" />
971
                                        <Setter Property="Margin" Value="1" />
972
                                        <Setter Property="IsTabStop" Value="False" />
973
                                        <Setter Property="SnapsToDevicePixels" Value="True" />
974
                                        <Setter Property="Template">
975
                                            <Setter.Value>
976
                                                <ControlTemplate TargetType="{x:Type telerik:RadButton}">
977
                                                    <Grid x:Name="LayoutRoot">
978
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome
979
                                                            RenderMouseOver="{TemplateBinding IsMouseOver}"
980
                                                            RenderNormal="False"
981
                                                            RenderPressed="{TemplateBinding IsPressed}">
982
                                                            <telerik:StyleManager.Theme>
983
                                                                <telerik:Office_BlackTheme />
984
                                                            </telerik:StyleManager.Theme>
985
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
986
                                                        <Path
987
                                                            x:Name="BackgroundIcon"
988
                                                            Width="8"
989
                                                            Height="7"
990
                                                            Margin="0,2,0,0"
991
                                                            Data="M0,0L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1z"
992
                                                            Fill="White" />
993
                                                        <Path
994
                                                            x:Name="ForegroundIcon"
995
                                                            Width="8"
996
                                                            Height="7"
997
                                                            Margin="0,1"
998
                                                            Data="M0,0L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1z"
999
                                                            Fill="Black" />
1000
                                                        <VisualStateManager.VisualStateGroups>
1001
                                                            <VisualStateGroup x:Name="CommonStates">
1002
                                                                <VisualState x:Name="Disabled">
1003
                                                                    <Storyboard>
1004
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
1005
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1006
                                                                                <DiscreteObjectKeyFrame.Value>
1007
                                                                                    <SolidColorBrush Color="#FF8D8D8D" />
1008
                                                                                </DiscreteObjectKeyFrame.Value>
1009
                                                                            </DiscreteObjectKeyFrame>
1010
                                                                        </ObjectAnimationUsingKeyFrames>
1011
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
1012
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1013
                                                                                <DiscreteObjectKeyFrame.Value>
1014
                                                                                    <SolidColorBrush Color="White" />
1015
                                                                                </DiscreteObjectKeyFrame.Value>
1016
                                                                            </DiscreteObjectKeyFrame>
1017
                                                                        </ObjectAnimationUsingKeyFrames>
1018
                                                                    </Storyboard>
1019
                                                                </VisualState>
1020
                                                                <VisualState x:Name="Normal" />
1021
                                                                <VisualState x:Name="MouseOver">
1022
                                                                    <Storyboard>
1023
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
1024
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1025
                                                                                <DiscreteObjectKeyFrame.Value>
1026
                                                                                    <SolidColorBrush Color="Black" />
1027
                                                                                </DiscreteObjectKeyFrame.Value>
1028
                                                                            </DiscreteObjectKeyFrame>
1029
                                                                        </ObjectAnimationUsingKeyFrames>
1030
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
1031
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1032
                                                                                <DiscreteObjectKeyFrame.Value>
1033
                                                                                    <SolidColorBrush Color="White" />
1034
                                                                                </DiscreteObjectKeyFrame.Value>
1035
                                                                            </DiscreteObjectKeyFrame>
1036
                                                                        </ObjectAnimationUsingKeyFrames>
1037
                                                                    </Storyboard>
1038
                                                                </VisualState>
1039
                                                                <VisualState x:Name="Pressed">
1040
                                                                    <Storyboard>
1041
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
1042
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1043
                                                                                <DiscreteObjectKeyFrame.Value>
1044
                                                                                    <SolidColorBrush Color="Black" />
1045
                                                                                </DiscreteObjectKeyFrame.Value>
1046
                                                                            </DiscreteObjectKeyFrame>
1047
                                                                        </ObjectAnimationUsingKeyFrames>
1048
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
1049
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1050
                                                                                <DiscreteObjectKeyFrame.Value>
1051
                                                                                    <SolidColorBrush Color="White" />
1052
                                                                                </DiscreteObjectKeyFrame.Value>
1053
                                                                            </DiscreteObjectKeyFrame>
1054
                                                                        </ObjectAnimationUsingKeyFrames>
1055
                                                                    </Storyboard>
1056
                                                                </VisualState>
1057
                                                            </VisualStateGroup>
1058
                                                        </VisualStateManager.VisualStateGroups>
1059
                                                    </Grid>
1060
                                                </ControlTemplate>
1061
                                            </Setter.Value>
1062
                                        </Setter>
1063
                                    </Style>
1064
                                </telerik:RadButton.Style>
1065
                                <telerik:RadButton.Visibility>
1066
                                    <Binding Path="IsEnabled" RelativeSource="{RelativeSource Self}">
1067
                                        <Binding.Converter>
1068
                                            <telerik:BooleanToVisibilityConverter />
1069
                                        </Binding.Converter>
1070
                                    </Binding>
1071
                                </telerik:RadButton.Visibility>
1072
                            </telerik:RadButton>
1073
                        </Grid>
1074
                        <telerik:RadGridResizer
1075
                            x:Name="DockResizer"
1076
                            Grid.RowSpan="2"
1077
                            HorizontalAlignment="Left"
1078
                            VerticalAlignment="Stretch"
1079
                            Cursor="SizeWE"
1080
                            Placement="Left"
1081
                            ShowsPreview="True"
1082
                            Visibility="Collapsed" />
1083
                        <VisualStateManager.VisualStateGroups>
1084
                            <VisualStateGroup x:Name="CommonStates">
1085
                                <VisualState x:Name="Disabled" />
1086
                                <VisualState x:Name="Normal" />
1087
                            </VisualStateGroup>
1088
                            <VisualStateGroup x:Name="DropDownDisplayStates">
1089
                                <VisualState x:Name="DropDownButtonCollapsed">
1090
                                    <Storyboard>
1091
                                        <ObjectAnimationUsingKeyFrames
1092
                                            Storyboard.TargetName="DropDownButtonElement"
1093
                                            Storyboard.TargetProperty="Visibility"
1094
                                            Duration="0">
1095
                                            <DiscreteObjectKeyFrame KeyTime="0">
1096
                                                <DiscreteObjectKeyFrame.Value>
1097
                                                    <Visibility>Collapsed</Visibility>
1098
                                                </DiscreteObjectKeyFrame.Value>
1099
                                            </DiscreteObjectKeyFrame>
1100
                                        </ObjectAnimationUsingKeyFrames>
1101
                                    </Storyboard>
1102
                                </VisualState>
1103
                                <VisualState x:Name="DropDownButtonVisible">
1104
                                    <Storyboard>
1105
                                        <ObjectAnimationUsingKeyFrames
1106
                                            Storyboard.TargetName="DropDownButtonElement"
1107
                                            Storyboard.TargetProperty="Visibility"
1108
                                            Duration="0">
1109
                                            <DiscreteObjectKeyFrame KeyTime="0">
1110
                                                <DiscreteObjectKeyFrame.Value>
1111
                                                    <Visibility>Visible</Visibility>
1112
                                                </DiscreteObjectKeyFrame.Value>
1113
                                            </DiscreteObjectKeyFrame>
1114
                                        </ObjectAnimationUsingKeyFrames>
1115
                                    </Storyboard>
1116
                                </VisualState>
1117
                            </VisualStateGroup>
1118
                            <VisualStateGroup x:Name="ResizerStates">
1119
                                <VisualState x:Name="ResizerLeft">
1120
                                    <Storyboard>
1121
                                        <ObjectAnimationUsingKeyFrames
1122
                                            Storyboard.TargetName="DockResizer"
1123
                                            Storyboard.TargetProperty="Visibility"
1124
                                            Duration="0">
1125
                                            <DiscreteObjectKeyFrame KeyTime="0">
1126
                                                <DiscreteObjectKeyFrame.Value>
1127
                                                    <Visibility>Visible</Visibility>
1128
                                                </DiscreteObjectKeyFrame.Value>
1129
                                            </DiscreteObjectKeyFrame>
1130
                                        </ObjectAnimationUsingKeyFrames>
1131
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Width">
1132
                                            <DiscreteObjectKeyFrame KeyTime="0">
1133
                                                <DiscreteObjectKeyFrame.Value>
1134
                                                    <System:Double>4</System:Double>
1135
                                                </DiscreteObjectKeyFrame.Value>
1136
                                            </DiscreteObjectKeyFrame>
1137
                                        </ObjectAnimationUsingKeyFrames>
1138
                                        <ObjectAnimationUsingKeyFrames
1139
                                            Storyboard.TargetName="ItemsPresenterElement"
1140
                                            Storyboard.TargetProperty="Margin"
1141
                                            Duration="0">
1142
                                            <DiscreteObjectKeyFrame KeyTime="0">
1143
                                                <DiscreteObjectKeyFrame.Value>
1144
                                                    <Thickness>4,2,0,2</Thickness>
1145
                                                </DiscreteObjectKeyFrame.Value>
1146
                                            </DiscreteObjectKeyFrame>
1147
                                        </ObjectAnimationUsingKeyFrames>
1148
                                        <ObjectAnimationUsingKeyFrames
1149
                                            Storyboard.TargetName="ContentBackground"
1150
                                            Storyboard.TargetProperty="Margin"
1151
                                            Duration="0">
1152
                                            <DiscreteObjectKeyFrame KeyTime="0">
1153
                                                <DiscreteObjectKeyFrame.Value>
1154
                                                    <Thickness>4,0,0,0</Thickness>
1155
                                                </DiscreteObjectKeyFrame.Value>
1156
                                            </DiscreteObjectKeyFrame>
1157
                                        </ObjectAnimationUsingKeyFrames>
1158
                                    </Storyboard>
1159
                                </VisualState>
1160
                                <VisualState x:Name="ResizerTop">
1161
                                    <Storyboard>
1162
                                        <ObjectAnimationUsingKeyFrames
1163
                                            Storyboard.TargetName="DockResizer"
1164
                                            Storyboard.TargetProperty="Visibility"
1165
                                            Duration="0">
1166
                                            <DiscreteObjectKeyFrame KeyTime="0">
1167
                                                <DiscreteObjectKeyFrame.Value>
1168
                                                    <Visibility>Visible</Visibility>
1169
                                                </DiscreteObjectKeyFrame.Value>
1170
                                            </DiscreteObjectKeyFrame>
1171
                                        </ObjectAnimationUsingKeyFrames>
1172
                                        <ObjectAnimationUsingKeyFrames
1173
                                            Storyboard.TargetName="DockResizer"
1174
                                            Storyboard.TargetProperty="VerticalAlignment"
1175
                                            Duration="0">
1176
                                            <DiscreteObjectKeyFrame KeyTime="0">
1177
                                                <DiscreteObjectKeyFrame.Value>
1178
                                                    <VerticalAlignment>Top</VerticalAlignment>
1179
                                                </DiscreteObjectKeyFrame.Value>
1180
                                            </DiscreteObjectKeyFrame>
1181
                                        </ObjectAnimationUsingKeyFrames>
1182
                                        <ObjectAnimationUsingKeyFrames
1183
                                            Storyboard.TargetName="DockResizer"
1184
                                            Storyboard.TargetProperty="HorizontalAlignment"
1185
                                            Duration="0">
1186
                                            <DiscreteObjectKeyFrame KeyTime="0">
1187
                                                <DiscreteObjectKeyFrame.Value>
1188
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
1189
                                                </DiscreteObjectKeyFrame.Value>
1190
                                            </DiscreteObjectKeyFrame>
1191
                                        </ObjectAnimationUsingKeyFrames>
1192
                                        <ObjectAnimationUsingKeyFrames
1193
                                            Storyboard.TargetName="DockResizer"
1194
                                            Storyboard.TargetProperty="Placement"
1195
                                            Duration="0">
1196
                                            <DiscreteObjectKeyFrame KeyTime="0">
1197
                                                <DiscreteObjectKeyFrame.Value>
1198
                                                    <Dock>Top</Dock>
1199
                                                </DiscreteObjectKeyFrame.Value>
1200
                                            </DiscreteObjectKeyFrame>
1201
                                        </ObjectAnimationUsingKeyFrames>
1202
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height">
1203
                                            <DiscreteObjectKeyFrame KeyTime="0">
1204
                                                <DiscreteObjectKeyFrame.Value>
1205
                                                    <System:Double>4</System:Double>
1206
                                                </DiscreteObjectKeyFrame.Value>
1207
                                            </DiscreteObjectKeyFrame>
1208
                                        </ObjectAnimationUsingKeyFrames>
1209
                                        <ObjectAnimationUsingKeyFrames
1210
                                            Storyboard.TargetName="DockResizer"
1211
                                            Storyboard.TargetProperty="(Grid.RowSpan)"
1212
                                            Duration="0">
1213
                                            <DiscreteObjectKeyFrame KeyTime="0">
1214
                                                <DiscreteObjectKeyFrame.Value>
1215
                                                    <System:Int32>1</System:Int32>
1216
                                                </DiscreteObjectKeyFrame.Value>
1217
                                            </DiscreteObjectKeyFrame>
1218
                                        </ObjectAnimationUsingKeyFrames>
1219
                                        <ObjectAnimationUsingKeyFrames
1220
                                            Storyboard.TargetName="DockResizer"
1221
                                            Storyboard.TargetProperty="(Grid.Row)"
1222
                                            Duration="0">
1223
                                            <DiscreteObjectKeyFrame KeyTime="0">
1224
                                                <DiscreteObjectKeyFrame.Value>
1225
                                                    <System:Int32>0</System:Int32>
1226
                                                </DiscreteObjectKeyFrame.Value>
1227
                                            </DiscreteObjectKeyFrame>
1228
                                        </ObjectAnimationUsingKeyFrames>
1229
                                        <ObjectAnimationUsingKeyFrames
1230
                                            Storyboard.TargetName="Header"
1231
                                            Storyboard.TargetProperty="Margin"
1232
                                            Duration="0">
1233
                                            <DiscreteObjectKeyFrame KeyTime="0">
1234
                                                <DiscreteObjectKeyFrame.Value>
1235
                                                    <Thickness>0,4,0,0</Thickness>
1236
                                                </DiscreteObjectKeyFrame.Value>
1237
                                            </DiscreteObjectKeyFrame>
1238
                                        </ObjectAnimationUsingKeyFrames>
1239
                                    </Storyboard>
1240
                                </VisualState>
1241
                                <VisualState x:Name="HideResizer" />
1242
                            </VisualStateGroup>
1243
                        </VisualStateManager.VisualStateGroups>
1244
                    </Grid>
1245
                </ControlTemplate>
1246
            </Setter.Value>
1247
        </Setter>
1248
        <!--<Setter Property="DocumentHostTemplate">
1249
            <Setter.Value>
1250
                <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
1251
                    <Grid Margin="0,0,0,0">
1252
                        <Grid.RowDefinitions>
1253
                            <RowDefinition Height="Auto"/>
1254
                            <RowDefinition Height="*"/>
1255
                        </Grid.RowDefinitions>
1256
                        <VisualStateManager.VisualStateGroups>
1257
                            <VisualStateGroup x:Name="CommonStates">
1258
                                <VisualState x:Name="Disabled"/>
1259
                                <VisualState x:Name="Normal"/>
1260
                            </VisualStateGroup>
1261
                            <VisualStateGroup x:Name="DropDownDisplayStates">
1262
                                <VisualState x:Name="DropDownButtonCollapsed">
1263
                                    <Storyboard>
1264
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DropDownButtonElement">
1265
                                            <DiscreteObjectKeyFrame KeyTime="0">
1266
                                                <DiscreteObjectKeyFrame.Value>
1267
                                                    <Visibility>Collapsed</Visibility>
1268
                                                </DiscreteObjectKeyFrame.Value>
1269
                                            </DiscreteObjectKeyFrame>
1270
                                        </ObjectAnimationUsingKeyFrames>
1271
                                    </Storyboard>
1272
                                </VisualState>
1273
                                <VisualState x:Name="DropDownButtonVisible">
1274
                                    <Storyboard>
1275
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DropDownButtonElement">
1276
                                            <DiscreteObjectKeyFrame KeyTime="0">
1277
                                                <DiscreteObjectKeyFrame.Value>
1278
                                                    <Visibility>Visible</Visibility>
1279
                                                </DiscreteObjectKeyFrame.Value>
1280
                                            </DiscreteObjectKeyFrame>
1281
                                        </ObjectAnimationUsingKeyFrames>
1282
                                    </Storyboard>
1283
                                </VisualState>
1284
                            </VisualStateGroup>
1285
                            <VisualStateGroup x:Name="ResizerStates">
1286
                                <VisualState x:Name="ResizerLeft">
1287
                                    <Storyboard>
1288
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DockResizer">
1289
                                            <DiscreteObjectKeyFrame KeyTime="0">
1290
                                                <DiscreteObjectKeyFrame.Value>
1291
                                                    <Visibility>Visible</Visibility>
1292
                                                </DiscreteObjectKeyFrame.Value>
1293
                                            </DiscreteObjectKeyFrame>
1294
                                        </ObjectAnimationUsingKeyFrames>
1295
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Width" Storyboard.TargetName="DockResizer">
1296
                                            <DiscreteObjectKeyFrame KeyTime="0">
1297
                                                <DiscreteObjectKeyFrame.Value>
1298
                                                    <System:Double>4</System:Double>
1299
                                                </DiscreteObjectKeyFrame.Value>
1300
                                            </DiscreteObjectKeyFrame>
1301
                                        </ObjectAnimationUsingKeyFrames>
1302
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="ItemsPresenterElement">
1303
                                            <DiscreteObjectKeyFrame KeyTime="0">
1304
                                                <DiscreteObjectKeyFrame.Value>
1305
                                                    <Thickness>4,2,0,2</Thickness>
1306
                                                </DiscreteObjectKeyFrame.Value>
1307
                                            </DiscreteObjectKeyFrame>
1308
                                        </ObjectAnimationUsingKeyFrames>
1309
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="ContentBackground">
1310
                                            <DiscreteObjectKeyFrame KeyTime="0">
1311
                                                <DiscreteObjectKeyFrame.Value>
1312
                                                    <Thickness>4,0,0,0</Thickness>
1313
                                                </DiscreteObjectKeyFrame.Value>
1314
                                            </DiscreteObjectKeyFrame>
1315
                                        </ObjectAnimationUsingKeyFrames>
1316
                                    </Storyboard>
1317
                                </VisualState>
1318
                                <VisualState x:Name="ResizerTop">
1319
                                    <Storyboard>
1320
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DockResizer">
1321
                                            <DiscreteObjectKeyFrame KeyTime="0">
1322
                                                <DiscreteObjectKeyFrame.Value>
1323
                                                    <Visibility>Visible</Visibility>
1324
                                                </DiscreteObjectKeyFrame.Value>
1325
                                            </DiscreteObjectKeyFrame>
1326
                                        </ObjectAnimationUsingKeyFrames>
1327
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="VerticalAlignment" Storyboard.TargetName="DockResizer">
1328
                                            <DiscreteObjectKeyFrame KeyTime="0">
1329
                                                <DiscreteObjectKeyFrame.Value>
1330
                                                    <VerticalAlignment>Top</VerticalAlignment>
1331
                                                </DiscreteObjectKeyFrame.Value>
1332
                                            </DiscreteObjectKeyFrame>
1333
                                        </ObjectAnimationUsingKeyFrames>
1334
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="HorizontalAlignment" Storyboard.TargetName="DockResizer">
1335
                                            <DiscreteObjectKeyFrame KeyTime="0">
1336
                                                <DiscreteObjectKeyFrame.Value>
1337
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
1338
                                                </DiscreteObjectKeyFrame.Value>
1339
                                            </DiscreteObjectKeyFrame>
1340
                                        </ObjectAnimationUsingKeyFrames>
1341
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Placement" Storyboard.TargetName="DockResizer">
1342
                                            <DiscreteObjectKeyFrame KeyTime="0">
1343
                                                <DiscreteObjectKeyFrame.Value>
1344
                                                    <Dock>Top</Dock>
1345
                                                </DiscreteObjectKeyFrame.Value>
1346
                                            </DiscreteObjectKeyFrame>
1347
                                        </ObjectAnimationUsingKeyFrames>
1348
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Height" Storyboard.TargetName="DockResizer">
1349
                                            <DiscreteObjectKeyFrame KeyTime="0">
1350
                                                <DiscreteObjectKeyFrame.Value>
1351
                                                    <System:Double>4</System:Double>
1352
                                                </DiscreteObjectKeyFrame.Value>
1353
                                            </DiscreteObjectKeyFrame>
1354
                                        </ObjectAnimationUsingKeyFrames>
1355
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="(Grid.RowSpan)" Storyboard.TargetName="DockResizer">
1356
                                            <DiscreteObjectKeyFrame KeyTime="0">
1357
                                                <DiscreteObjectKeyFrame.Value>
1358
                                                    <System:Int32>1</System:Int32>
1359
                                                </DiscreteObjectKeyFrame.Value>
1360
                                            </DiscreteObjectKeyFrame>
1361
                                        </ObjectAnimationUsingKeyFrames>
1362
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="(Grid.Row)" Storyboard.TargetName="DockResizer">
1363
                                            <DiscreteObjectKeyFrame KeyTime="0">
1364
                                                <DiscreteObjectKeyFrame.Value>
1365
                                                    <System:Int32>0</System:Int32>
1366
                                                </DiscreteObjectKeyFrame.Value>
1367
                                            </DiscreteObjectKeyFrame>
1368
                                        </ObjectAnimationUsingKeyFrames>
1369
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Header">
1370
                                            <DiscreteObjectKeyFrame KeyTime="0">
1371
                                                <DiscreteObjectKeyFrame.Value>
1372
                                                    <Thickness>0,4,0,0</Thickness>
1373
                                                </DiscreteObjectKeyFrame.Value>
1374
                                            </DiscreteObjectKeyFrame>
1375
                                        </ObjectAnimationUsingKeyFrames>
1376
                                    </Storyboard>
1377
                                </VisualState>
1378
                                <VisualState x:Name="HideResizer"/>
1379
                            </VisualStateGroup>
1380
                        </VisualStateManager.VisualStateGroups>
1381
        -->
1382
        <!--<ContentControl x:Name="ContentBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="1">-->
1383
        <!--
1384
                            <ContentControl x:Name="ContentBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="1">
1385
                            <ContentControl.Style>
1386
                                <Style TargetType="{x:Type ContentControl}">
1387
                                    <Setter Property="Template">
1388
                                        <Setter.Value>
1389
                                            <ControlTemplate TargetType="{x:Type ContentControl}">
1390
        -->
1391
        <!--<Border x:Name="Root" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0,2,2,2">-->
1392
        <!--
1393
                                                    <Border x:Name="Root" BorderThickness="0">
1394
        -->
1395
        <!--<Border x:Name="BorderLayer3" BorderBrush="White" BorderThickness="2" CornerRadius="0,1,1,1">
1396
                                                                                                                        <Border x:Name="BorderLayer2" BorderBrush="#FFF0F0F0" BorderThickness="2" CornerRadius="0">
1397
                                                                                                                                <Border x:Name="BorderLayer1" BorderBrush="#FF848484" BorderThickness="1" CornerRadius="0">
1398
                                                                                                                                        <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
1399
                                                                                                                                </Border>
1400
                                                                                                                        </Border>
1401
                                                                                                                </Border>-->
1402
        <!--
1403
                                                    <Border x:Name="BorderLayer3" BorderBrush="White" BorderThickness="0" CornerRadius="0,1,1,1">
1404
                                                        <Border x:Name="BorderLayer2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" CornerRadius="0">
1405
                                                            <Border x:Name="BorderLayer1" BorderBrush="#ffcccedb" BorderThickness="1.5" CornerRadius="0" Margin="0,1,0,0">
1406
                                                                <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
1407
                                                            </Border>
1408
                                                        </Border>
1409
                                                    </Border>
1410
        -->
1411
        <!--<Border x:Name="BorderLayer3" BorderBrush="White" BorderThickness="2" CornerRadius="0,1,1,1">
1412
                                                        <Border x:Name="BorderLayer2" BorderBrush="#FFF0F0F0" BorderThickness="2" CornerRadius="0">
1413
                                                            <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
1414
                                                        </Border>
1415
                                                    </Border>-->
1416
        <!--<Border x:Name="BorderLayer3" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" CornerRadius="0,1,1,1"> -->
1417
        <!--  조장원  -->
1418
        <!--
1419
                                                        <Border x:Name="BorderLayer2" BorderBrush="#ffcccedb"  BorderThickness="1.5,1.5,1.5,1" CornerRadius="0">
1420
                                                            <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
1421
                                                        </Border>
1422
                                                    </Border>-->
1423
        <!--
1424
                                                </Border>
1425
                                            </ControlTemplate>
1426
                                        </Setter.Value>
1427
                                    </Setter>
1428
                                </Style>
1429
                            </ContentControl.Style>
1430
                            <Grid>
1431
                                <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}">
1432
                                    <ContentPresenter.Visibility>
1433
                                        <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
1434
                                            <Binding.Converter>
1435
                                                <telerik:InvertedBooleanToVisibilityConverter/>
1436
                                            </Binding.Converter>
1437
                                        </Binding>
1438
                                    </ContentPresenter.Visibility>
1439
                                </ContentPresenter>
1440
                                <Grid x:Name="ContentElementsPanel">
1441
                                    <Grid.Visibility>
1442
                                        <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
1443
                                            <Binding.Converter>
1444
                                                <telerik:BooleanToVisibilityConverter/>
1445
                                            </Binding.Converter>
1446
                                        </Binding>
1447
                                    </Grid.Visibility>
1448
                                </Grid>
1449
                            </Grid>
1450
                        </ContentControl>
1451
                        <Grid x:Name="Header" Grid.Row="0">
1452
                            <Grid.ColumnDefinitions>
1453
                                <ColumnDefinition Width="Auto"/>
1454
                                <ColumnDefinition Width="*"/>
1455
                                <ColumnDefinition Width="Auto"/>
1456
                                <ColumnDefinition Width="Auto"/>
1457
                                <ColumnDefinition Width="Auto"/>
1458
                            </Grid.ColumnDefinitions>
1459
                            <RepeatButton x:Name="LeftScrollButtonElement" Grid.Column="0" Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}">
1460
                                <RepeatButton.Style>
1461
                                    <Style TargetType="{x:Type RepeatButton}">
1462
                                        <Setter Property="Width" Value="17"/>
1463
                                        <Setter Property="Height" Value="17"/>
1464
                                        <Setter Property="Margin" Value="1"/>
1465
                                        <Setter Property="IsTabStop" Value="False"/>
1466
                                        <Setter Property="SnapsToDevicePixels" Value="True"/>
1467
                                        <Setter Property="Template">
1468
                                            <Setter.Value>
1469
                                                <ControlTemplate TargetType="{x:Type RepeatButton}">
1470
                                                    <Grid x:Name="LayoutRoot">
1471
                                                        <VisualStateManager.VisualStateGroups>
1472
                                                            <VisualStateGroup x:Name="CommonStates">
1473
                                                                <VisualState x:Name="Disabled">
1474
                                                                    <Storyboard>
1475
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1476
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1477
                                                                                <DiscreteObjectKeyFrame.Value>
1478
                                                                                    <SolidColorBrush Color="#FF8D8D8D"/>
1479
                                                                                </DiscreteObjectKeyFrame.Value>
1480
                                                                            </DiscreteObjectKeyFrame>
1481
                                                                        </ObjectAnimationUsingKeyFrames>
1482
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1483
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1484
                                                                                <DiscreteObjectKeyFrame.Value>
1485
                                                                                    <SolidColorBrush Color="White"/>
1486
                                                                                </DiscreteObjectKeyFrame.Value>
1487
                                                                            </DiscreteObjectKeyFrame>
1488
                                                                        </ObjectAnimationUsingKeyFrames>
1489
                                                                    </Storyboard>
1490
                                                                </VisualState>
1491
                                                                <VisualState x:Name="Normal"/>
1492
                                                                <VisualState x:Name="MouseOver">
1493
                                                                    <Storyboard>
1494
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1495
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1496
                                                                                <DiscreteObjectKeyFrame.Value>
1497
                                                                                    <SolidColorBrush Color="Black"/>
1498
                                                                                </DiscreteObjectKeyFrame.Value>
1499
                                                                            </DiscreteObjectKeyFrame>
1500
                                                                        </ObjectAnimationUsingKeyFrames>
1501
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1502
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1503
                                                                                <DiscreteObjectKeyFrame.Value>
1504
                                                                                    <SolidColorBrush Color="White"/>
1505
                                                                                </DiscreteObjectKeyFrame.Value>
1506
                                                                            </DiscreteObjectKeyFrame>
1507
                                                                        </ObjectAnimationUsingKeyFrames>
1508
                                                                    </Storyboard>
1509
                                                                </VisualState>
1510
                                                                <VisualState x:Name="Pressed">
1511
                                                                    <Storyboard>
1512
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1513
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1514
                                                                                <DiscreteObjectKeyFrame.Value>
1515
                                                                                    <SolidColorBrush Color="Black"/>
1516
                                                                                </DiscreteObjectKeyFrame.Value>
1517
                                                                            </DiscreteObjectKeyFrame>
1518
                                                                        </ObjectAnimationUsingKeyFrames>
1519
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1520
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1521
                                                                                <DiscreteObjectKeyFrame.Value>
1522
                                                                                    <SolidColorBrush Color="White"/>
1523
                                                                                </DiscreteObjectKeyFrame.Value>
1524
                                                                            </DiscreteObjectKeyFrame>
1525
                                                                        </ObjectAnimationUsingKeyFrames>
1526
                                                                    </Storyboard>
1527
                                                                </VisualState>
1528
                                                            </VisualStateGroup>
1529
                                                        </VisualStateManager.VisualStateGroups>
1530
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}">
1531
                                                            <telerik:StyleManager.Theme>
1532
                                                                <telerik:Office_BlackTheme/>
1533
                                                            </telerik:StyleManager.Theme>
1534
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
1535
                                                        <Path x:Name="BackgroundIcon" Data="M6,0L6,7 5,7 5,6 4,6 4,5 3,5 3,4 2,4 2,3 3,3 3,2 4,2 4,1 5,1 5,0z" Fill="White" Height="7" Margin="0,2,0,0" Width="7"/>
1536
                                                        <Path x:Name="ForegroundIcon" Data="M6,0L6,7 5,7 5,6 4,6 4,5 3,5 3,4 2,4 2,3 3,3 3,2 4,2 4,1 5,1 5,0z" Fill="Black" Height="7" Margin="0,1" Width="7"/>
1537
                                                    </Grid>
1538
                                                </ControlTemplate>
1539
                                            </Setter.Value>
1540
                                        </Setter>
1541
                                    </Style>
1542
                                </RepeatButton.Style>
1543
                            </RepeatButton>
1544
                            <ScrollViewer x:Name="ScrollViewerElement" Grid.Column="1" HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}" Margin="0,-2">
1545
                                <ScrollViewer.Template>
1546
                                    <ControlTemplate TargetType="{x:Type ScrollViewer}">
1547
                                        <ScrollContentPresenter x:Name="ScrollContentPresenter" CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Margin="0,0,1,0"/>
1548
                                    </ControlTemplate>
1549
                                </ScrollViewer.Template>
1550
                                <ItemsPresenter x:Name="ItemsPresenterElement" Margin="0,2"/>
1551
                            </ScrollViewer>
1552
                            <RepeatButton x:Name="RightScrollButtonElement" Grid.Column="2" Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}">
1553
                                <RepeatButton.Style>
1554
                                    <Style TargetType="{x:Type RepeatButton}">
1555
                                        <Setter Property="Width" Value="17"/>
1556
                                        <Setter Property="Height" Value="17"/>
1557
                                        <Setter Property="Margin" Value="1"/>
1558
                                        <Setter Property="IsTabStop" Value="False"/>
1559
                                        <Setter Property="SnapsToDevicePixels" Value="True"/>
1560
                                        <Setter Property="Template">
1561
                                            <Setter.Value>
1562
                                                <ControlTemplate TargetType="{x:Type RepeatButton}">
1563
                                                    <Grid x:Name="LayoutRoot">
1564
                                                        <VisualStateManager.VisualStateGroups>
1565
                                                            <VisualStateGroup x:Name="CommonStates">
1566
                                                                <VisualState x:Name="Disabled">
1567
                                                                    <Storyboard>
1568
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1569
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1570
                                                                                <DiscreteObjectKeyFrame.Value>
1571
                                                                                    <SolidColorBrush Color="#FF8D8D8D"/>
1572
                                                                                </DiscreteObjectKeyFrame.Value>
1573
                                                                            </DiscreteObjectKeyFrame>
1574
                                                                        </ObjectAnimationUsingKeyFrames>
1575
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1576
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1577
                                                                                <DiscreteObjectKeyFrame.Value>
1578
                                                                                    <SolidColorBrush Color="White"/>
1579
                                                                                </DiscreteObjectKeyFrame.Value>
1580
                                                                            </DiscreteObjectKeyFrame>
1581
                                                                        </ObjectAnimationUsingKeyFrames>
1582
                                                                    </Storyboard>
1583
                                                                </VisualState>
1584
                                                                <VisualState x:Name="Normal"/>
1585
                                                                <VisualState x:Name="MouseOver">
1586
                                                                    <Storyboard>
1587
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1588
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1589
                                                                                <DiscreteObjectKeyFrame.Value>
1590
                                                                                    <SolidColorBrush Color="Black"/>
1591
                                                                                </DiscreteObjectKeyFrame.Value>
1592
                                                                            </DiscreteObjectKeyFrame>
1593
                                                                        </ObjectAnimationUsingKeyFrames>
1594
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1595
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1596
                                                                                <DiscreteObjectKeyFrame.Value>
1597
                                                                                    <SolidColorBrush Color="White"/>
1598
                                                                                </DiscreteObjectKeyFrame.Value>
1599
                                                                            </DiscreteObjectKeyFrame>
1600
                                                                        </ObjectAnimationUsingKeyFrames>
1601
                                                                    </Storyboard>
1602
                                                                </VisualState>
1603
                                                                <VisualState x:Name="Pressed">
1604
                                                                    <Storyboard>
1605
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1606
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1607
                                                                                <DiscreteObjectKeyFrame.Value>
1608
                                                                                    <SolidColorBrush Color="Black"/>
1609
                                                                                </DiscreteObjectKeyFrame.Value>
1610
                                                                            </DiscreteObjectKeyFrame>
1611
                                                                        </ObjectAnimationUsingKeyFrames>
1612
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1613
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1614
                                                                                <DiscreteObjectKeyFrame.Value>
1615
                                                                                    <SolidColorBrush Color="White"/>
1616
                                                                                </DiscreteObjectKeyFrame.Value>
1617
                                                                            </DiscreteObjectKeyFrame>
1618
                                                                        </ObjectAnimationUsingKeyFrames>
1619
                                                                    </Storyboard>
1620
                                                                </VisualState>
1621
                                                            </VisualStateGroup>
1622
                                                        </VisualStateManager.VisualStateGroups>
1623
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}">
1624
                                                            <telerik:StyleManager.Theme>
1625
                                                                <telerik:Office_BlackTheme/>
1626
                                                            </telerik:StyleManager.Theme>
1627
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
1628
                                                        <Path x:Name="BackgroundIcon" Data="M1,0L1,7 2,7 2,6 3,6 3,5 4,5 4,4 5,4 5,3 4,3 4,2 3,2 3,1 2,1 2,0z" Fill="White" Height="7" Margin="0,2,0,0" Width="7"/>
1629
                                                        <Path x:Name="ForegroundIcon" Data="M1,0L1,7 2,7 2,6 3,6 3,5 4,5 4,4 5,4 5,3 4,3 4,2 3,2 3,1 2,1 2,0z" Fill="Black" Height="7" Margin="0,1" Width="7"/>
1630
                                                    </Grid>
1631
                                                </ControlTemplate>
1632
                                            </Setter.Value>
1633
                                        </Setter>
1634
                                    </Style>
1635
                                </RepeatButton.Style>
1636
                            </RepeatButton>
1637
                            <ToggleButton x:Name="DropDownButtonElement" Grid.Column="3" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed">
1638
                                <telerik:RadContextMenu.ContextMenu>
1639
                                    <Telerik_Windows_Controls_TabControl:DropDownMenu x:Name="DropDownMenuElement" ClickToOpen="True" DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}" ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}" Placement="Bottom" Style="{TemplateBinding DropDownStyle}" StaysOpen="False"/>
1640
                                </telerik:RadContextMenu.ContextMenu>
1641
                                <ToggleButton.Style>
1642
                                    <Style TargetType="{x:Type ToggleButton}">
1643
                                        <Setter Property="Width" Value="17"/>
1644
                                        <Setter Property="Height" Value="17"/>
1645
                                        <Setter Property="Margin" Value="1"/>
1646
                                        <Setter Property="Template">
1647
                                            <Setter.Value>
1648
                                                <ControlTemplate TargetType="{x:Type ToggleButton}">
1649
                                                    <Grid>
1650
                                                        <VisualStateManager.VisualStateGroups>
1651
                                                            <VisualStateGroup x:Name="CommonStates">
1652
                                                                <VisualState x:Name="Disabled">
1653
                                                                    <Storyboard>
1654
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1655
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1656
                                                                                <DiscreteObjectKeyFrame.Value>
1657
                                                                                    <SolidColorBrush Color="#FF8D8D8D"/>
1658
                                                                                </DiscreteObjectKeyFrame.Value>
1659
                                                                            </DiscreteObjectKeyFrame>
1660
                                                                        </ObjectAnimationUsingKeyFrames>
1661
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1662
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1663
                                                                                <DiscreteObjectKeyFrame.Value>
1664
                                                                                    <SolidColorBrush Color="White"/>
1665
                                                                                </DiscreteObjectKeyFrame.Value>
1666
                                                                            </DiscreteObjectKeyFrame>
1667
                                                                        </ObjectAnimationUsingKeyFrames>
1668
                                                                    </Storyboard>
1669
                                                                </VisualState>
1670
                                                                <VisualState x:Name="Normal"/>
1671
                                                                <VisualState x:Name="MouseOver">
1672
                                                                    <Storyboard>
1673
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1674
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1675
                                                                                <DiscreteObjectKeyFrame.Value>
1676
                                                                                    <SolidColorBrush Color="Black"/>
1677
                                                                                </DiscreteObjectKeyFrame.Value>
1678
                                                                            </DiscreteObjectKeyFrame>
1679
                                                                        </ObjectAnimationUsingKeyFrames>
1680
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1681
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1682
                                                                                <DiscreteObjectKeyFrame.Value>
1683
                                                                                    <SolidColorBrush Color="White"/>
1684
                                                                                </DiscreteObjectKeyFrame.Value>
1685
                                                                            </DiscreteObjectKeyFrame>
1686
                                                                        </ObjectAnimationUsingKeyFrames>
1687
                                                                    </Storyboard>
1688
                                                                </VisualState>
1689
                                                                <VisualState x:Name="Pressed">
1690
                                                                    <Storyboard>
1691
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1692
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1693
                                                                                <DiscreteObjectKeyFrame.Value>
1694
                                                                                    <SolidColorBrush Color="Black"/>
1695
                                                                                </DiscreteObjectKeyFrame.Value>
1696
                                                                            </DiscreteObjectKeyFrame>
1697
                                                                        </ObjectAnimationUsingKeyFrames>
1698
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1699
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1700
                                                                                <DiscreteObjectKeyFrame.Value>
1701
                                                                                    <SolidColorBrush Color="White"/>
1702
                                                                                </DiscreteObjectKeyFrame.Value>
1703
                                                                            </DiscreteObjectKeyFrame>
1704
                                                                        </ObjectAnimationUsingKeyFrames>
1705
                                                                    </Storyboard>
1706
                                                                </VisualState>
1707
                                                            </VisualStateGroup>
1708
                                                        </VisualStateManager.VisualStateGroups>
1709
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderChecked="{TemplateBinding IsChecked}">
1710
                                                            <telerik:StyleManager.Theme>
1711
                                                                <telerik:Office_BlackTheme/>
1712
                                                            </telerik:StyleManager.Theme>
1713
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
1714
                                                        <Path x:Name="BackgroundIcon" Data="M0,2L7,2 7,3 6,3 6,4 5,4 5,5 4,5 4,6 3,6 3,5 2,5 2,4 1,4 1,3 0,3z M0,0L7,0 7,1 0,1z" Fill="White" Height="7" Margin="0,2,0,0" Width="7"/>
1715
                                                        <Path x:Name="ForegroundIcon" Data="M0,2L7,2 7,3 6,3 6,4 5,4 5,5 4,5 4,6 3,6 3,5 2,5 2,4 1,4 1,3 0,3z M0,0L7,0 7,1 0,1z" Fill="Black" Height="7" Margin="0,1" Width="7"/>
1716
                                                    </Grid>
1717
                                                </ControlTemplate>
1718
                                            </Setter.Value>
1719
                                        </Setter>
1720
                                    </Style>
1721
                                </ToggleButton.Style>
1722
                            </ToggleButton>
1723
                            <telerik:RadButton x:Name="CloseButton" Grid.Column="4" Command="telerik:RadDockingCommands.Close" InnerCornerRadius="0">
1724
                                <telerik:RadButton.Style>
1725
                                    <Style TargetType="{x:Type telerik:RadButton}">
1726
                                        <Setter Property="Width" Value="17"/>
1727
                                        <Setter Property="Height" Value="17"/>
1728
                                        <Setter Property="Margin" Value="1"/>
1729
                                        <Setter Property="IsTabStop" Value="False"/>
1730
                                        <Setter Property="SnapsToDevicePixels" Value="True"/>
1731
                                        <Setter Property="Template">
1732
                                            <Setter.Value>
1733
                                                <ControlTemplate TargetType="{x:Type telerik:RadButton}">
1734
                                                    <Grid x:Name="LayoutRoot">
1735
                                                        <VisualStateManager.VisualStateGroups>
1736
                                                            <VisualStateGroup x:Name="CommonStates">
1737
                                                                <VisualState x:Name="Disabled">
1738
                                                                    <Storyboard>
1739
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1740
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1741
                                                                                <DiscreteObjectKeyFrame.Value>
1742
                                                                                    <SolidColorBrush Color="#FF8D8D8D"/>
1743
                                                                                </DiscreteObjectKeyFrame.Value>
1744
                                                                            </DiscreteObjectKeyFrame>
1745
                                                                        </ObjectAnimationUsingKeyFrames>
1746
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1747
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1748
                                                                                <DiscreteObjectKeyFrame.Value>
1749
                                                                                    <SolidColorBrush Color="White"/>
1750
                                                                                </DiscreteObjectKeyFrame.Value>
1751
                                                                            </DiscreteObjectKeyFrame>
1752
                                                                        </ObjectAnimationUsingKeyFrames>
1753
                                                                    </Storyboard>
1754
                                                                </VisualState>
1755
                                                                <VisualState x:Name="Normal"/>
1756
                                                                <VisualState x:Name="MouseOver">
1757
                                                                    <Storyboard>
1758
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1759
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1760
                                                                                <DiscreteObjectKeyFrame.Value>
1761
                                                                                    <SolidColorBrush Color="Black"/>
1762
                                                                                </DiscreteObjectKeyFrame.Value>
1763
                                                                            </DiscreteObjectKeyFrame>
1764
                                                                        </ObjectAnimationUsingKeyFrames>
1765
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1766
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1767
                                                                                <DiscreteObjectKeyFrame.Value>
1768
                                                                                    <SolidColorBrush Color="White"/>
1769
                                                                                </DiscreteObjectKeyFrame.Value>
1770
                                                                            </DiscreteObjectKeyFrame>
1771
                                                                        </ObjectAnimationUsingKeyFrames>
1772
                                                                    </Storyboard>
1773
                                                                </VisualState>
1774
                                                                <VisualState x:Name="Pressed">
1775
                                                                    <Storyboard>
1776
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="ForegroundIcon">
1777
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1778
                                                                                <DiscreteObjectKeyFrame.Value>
1779
                                                                                    <SolidColorBrush Color="Black"/>
1780
                                                                                </DiscreteObjectKeyFrame.Value>
1781
                                                                            </DiscreteObjectKeyFrame>
1782
                                                                        </ObjectAnimationUsingKeyFrames>
1783
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundIcon">
1784
                                                                            <DiscreteObjectKeyFrame KeyTime="0">
1785
                                                                                <DiscreteObjectKeyFrame.Value>
1786
                                                                                    <SolidColorBrush Color="White"/>
1787
                                                                                </DiscreteObjectKeyFrame.Value>
1788
                                                                            </DiscreteObjectKeyFrame>
1789
                                                                        </ObjectAnimationUsingKeyFrames>
1790
                                                                    </Storyboard>
1791
                                                                </VisualState>
1792
                                                            </VisualStateGroup>
1793
                                                        </VisualStateManager.VisualStateGroups>
1794
                                                        <Telerik_Windows_Controls_Chromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}">
1795
                                                            <telerik:StyleManager.Theme>
1796
                                                                <telerik:Office_BlackTheme/>
1797
                                                            </telerik:StyleManager.Theme>
1798
                                                        </Telerik_Windows_Controls_Chromes:ButtonChrome>
1799
                                                        <Path x:Name="BackgroundIcon" Data="M0,0L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1z" Fill="White" Height="7" Margin="0,2,0,0" Width="8"/>
1800
                                                        <Path x:Name="ForegroundIcon" Data="M0,0L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1z" Fill="Black" Height="7" Margin="0,1" Width="8"/>
1801
                                                    </Grid>
1802
                                                </ControlTemplate>
1803
                                            </Setter.Value>
1804
                                        </Setter>
1805
                                    </Style>
1806
                                </telerik:RadButton.Style>
1807
                                <telerik:RadButton.Visibility>
1808
                                    <Binding Path="IsEnabled" RelativeSource="{RelativeSource Self}">
1809
                                        <Binding.Converter>
1810
                                            <telerik:BooleanToVisibilityConverter/>
1811
                                        </Binding.Converter>
1812
                                    </Binding>
1813
                                </telerik:RadButton.Visibility>
1814
                            </telerik:RadButton>
1815
                        </Grid>
1816
                        <telerik:RadGridResizer x:Name="DockResizer" Cursor="SizeWE" HorizontalAlignment="Left" Placement="Left" Grid.RowSpan="2" ShowsPreview="True" Visibility="Collapsed" VerticalAlignment="Stretch"/>
1817
                    </Grid>
1818
                </ControlTemplate>
1819
            </Setter.Value>
1820
        </Setter>-->
1821
        <Setter Property="LeftTemplate">
1822
            <Setter.Value>
1823
                <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
1824
                    <Grid>
1825
                        <Grid.RowDefinitions>
1826
                            <RowDefinition Height="*" MinHeight="20" />
1827
                            <RowDefinition Height="Auto" />
1828
                        </Grid.RowDefinitions>
1829
                        <ContentControl
1830
                            x:Name="ContentBackground"
1831
                            Background="{TemplateBinding Background}"
1832
                            BorderBrush="{TemplateBinding BorderBrush}"
1833
                            BorderThickness="{TemplateBinding BorderThickness}">
1834
                            <ContentControl.Style>
1835
                                <Style TargetType="{x:Type ContentControl}">
1836
                                    <Setter Property="Template">
1837
                                        <Setter.Value>
1838
                                            <ControlTemplate TargetType="{x:Type ContentControl}">
1839
                                                <Border
1840
                                                    x:Name="Root"
1841
                                                    Background="{TemplateBinding Background}"
1842
                                                    BorderBrush="{TemplateBinding BorderBrush}"
1843
                                                    BorderThickness="{TemplateBinding BorderThickness}"
1844
                                                    CornerRadius="2,2,2,0">
1845
                                                    <ContentPresenter
1846
                                                        Content="{TemplateBinding Content}"
1847
                                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
1848
                                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
1849
                                                </Border>
1850
                                            </ControlTemplate>
1851
                                        </Setter.Value>
1852
                                    </Setter>
1853
                                </Style>
1854
                            </ContentControl.Style>
1855
                            <Grid>
1856
                                <Grid.RowDefinitions>
1857
                                    <RowDefinition Height="Auto" />
1858
                                    <RowDefinition Height="*" />
1859
                                </Grid.RowDefinitions>
1860
                                <Border Grid.Row="0" Visibility="{Binding SelectedItem.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}">
1861
                                    <telerik:PaneHeader
1862
                                        x:Name="HeaderElement"
1863
                                        Grid.Row="0"
1864
                                        MinHeight="16"
1865
                                        SelectedPane="{TemplateBinding SelectedPane}">
1866
                                        <telerik:StyleManager.Theme>
1867
                                            <telerik:Office_BlackTheme />
1868
                                        </telerik:StyleManager.Theme>
1869
                                    </telerik:PaneHeader>
1870
                                </Border>
1871
                                <Grid Grid.Row="1">
1872
                                    <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}">
1873
                                        <ContentPresenter.Visibility>
1874
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
1875
                                                <Binding.Converter>
1876
                                                    <telerik:InvertedBooleanToVisibilityConverter />
1877
                                                </Binding.Converter>
1878
                                            </Binding>
1879
                                        </ContentPresenter.Visibility>
1880
                                    </ContentPresenter>
1881
                                    <Grid x:Name="ContentElementsPanel">
1882
                                        <Grid.Visibility>
1883
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
1884
                                                <Binding.Converter>
1885
                                                    <telerik:BooleanToVisibilityConverter />
1886
                                                </Binding.Converter>
1887
                                            </Binding>
1888
                                        </Grid.Visibility>
1889
                                    </Grid>
1890
                                </Grid>
1891
                            </Grid>
1892
                        </ContentControl>
1893
                        <Border
1894
                            x:Name="ItemsContainer"
1895
                            Grid.Row="1"
1896
                            Margin="0,-5,0,0"
1897
                            Padding="0,0,1,0">
1898
                            <ItemsPresenter x:Name="ItemsPresenterElement" />
1899
                        </Border>
1900
                        <telerik:RadGridResizer
1901
                            x:Name="DockResizer"
1902
                            Grid.RowSpan="2"
1903
                            HorizontalAlignment="Left"
1904
                            VerticalAlignment="Stretch"
1905
                            Cursor="SizeWE"
1906
                            Placement="Left"
1907
                            ShowsPreview="True"
1908
                            Visibility="Collapsed" />
1909
                        <VisualStateManager.VisualStateGroups>
1910
                            <VisualStateGroup x:Name="CommonStates">
1911
                                <VisualState x:Name="Disabled" />
1912
                                <VisualState x:Name="Normal" />
1913
                            </VisualStateGroup>
1914
                            <VisualStateGroup x:Name="FocusStates">
1915
                                <VisualState x:Name="Focused" />
1916
                                <VisualState x:Name="Unfocused" />
1917
                            </VisualStateGroup>
1918
                            <VisualStateGroup x:Name="AutoCollapseStates">
1919
                                <VisualState x:Name="SingleItem">
1920
                                    <Storyboard>
1921
                                        <ObjectAnimationUsingKeyFrames
1922
                                            Storyboard.TargetName="ItemsContainer"
1923
                                            Storyboard.TargetProperty="Visibility"
1924
                                            Duration="0">
1925
                                            <DiscreteObjectKeyFrame KeyTime="0">
1926
                                                <DiscreteObjectKeyFrame.Value>
1927
                                                    <Visibility>Collapsed</Visibility>
1928
                                                </DiscreteObjectKeyFrame.Value>
1929
                                            </DiscreteObjectKeyFrame>
1930
                                        </ObjectAnimationUsingKeyFrames>
1931
                                    </Storyboard>
1932
                                </VisualState>
1933
                                <VisualState x:Name="TwoOrMoreItems" />
1934
                            </VisualStateGroup>
1935
                            <VisualStateGroup x:Name="PaneHeaderVisibilityStates">
1936
                                <VisualState x:Name="PaneHeaderHidden">
1937
                                    <Storyboard>
1938
                                        <ObjectAnimationUsingKeyFrames
1939
                                            Storyboard.TargetName="HeaderElement"
1940
                                            Storyboard.TargetProperty="Visibility"
1941
                                            Duration="0">
1942
                                            <DiscreteObjectKeyFrame KeyTime="0">
1943
                                                <DiscreteObjectKeyFrame.Value>
1944
                                                    <Visibility>Collapsed</Visibility>
1945
                                                </DiscreteObjectKeyFrame.Value>
1946
                                            </DiscreteObjectKeyFrame>
1947
                                        </ObjectAnimationUsingKeyFrames>
1948
                                    </Storyboard>
1949
                                </VisualState>
1950
                                <VisualState x:Name="PaneHeaderVisible" />
1951
                            </VisualStateGroup>
1952
                            <VisualStateGroup x:Name="ResizerStates">
1953
                                <VisualState x:Name="ResizerLeft">
1954
                                    <Storyboard>
1955
                                        <Storyboard>
1956
                                            <ObjectAnimationUsingKeyFrames
1957
                                                Storyboard.TargetName="DockResizer"
1958
                                                Storyboard.TargetProperty="Visibility"
1959
                                                Duration="0">
1960
                                                <DiscreteObjectKeyFrame KeyTime="0">
1961
                                                    <DiscreteObjectKeyFrame.Value>
1962
                                                        <Visibility>Visible</Visibility>
1963
                                                    </DiscreteObjectKeyFrame.Value>
1964
                                                </DiscreteObjectKeyFrame>
1965
                                            </ObjectAnimationUsingKeyFrames>
1966
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Width">
1967
                                                <DiscreteObjectKeyFrame KeyTime="0">
1968
                                                    <DiscreteObjectKeyFrame.Value>
1969
                                                        <System:Double>4</System:Double>
1970
                                                    </DiscreteObjectKeyFrame.Value>
1971
                                                </DiscreteObjectKeyFrame>
1972
                                            </ObjectAnimationUsingKeyFrames>
1973
                                            <ObjectAnimationUsingKeyFrames
1974
                                                Storyboard.TargetName="ItemsContainer"
1975
                                                Storyboard.TargetProperty="Margin"
1976
                                                Duration="0">
1977
                                                <DiscreteObjectKeyFrame KeyTime="0">
1978
                                                    <DiscreteObjectKeyFrame.Value>
1979
                                                        <Thickness>4,-5,0,0</Thickness>
1980
                                                    </DiscreteObjectKeyFrame.Value>
1981
                                                </DiscreteObjectKeyFrame>
1982
                                            </ObjectAnimationUsingKeyFrames>
1983
                                            <ObjectAnimationUsingKeyFrames
1984
                                                Storyboard.TargetName="ContentBackground"
1985
                                                Storyboard.TargetProperty="Margin"
1986
                                                Duration="0">
1987
                                                <DiscreteObjectKeyFrame KeyTime="0">
1988
                                                    <DiscreteObjectKeyFrame.Value>
1989
                                                        <Thickness>4,0,0,0</Thickness>
1990
                                                    </DiscreteObjectKeyFrame.Value>
1991
                                                </DiscreteObjectKeyFrame>
1992
                                            </ObjectAnimationUsingKeyFrames>
1993
                                        </Storyboard>
1994
                                    </Storyboard>
1995
                                </VisualState>
1996
                                <VisualState x:Name="ResizerTop">
1997
                                    <Storyboard>
1998
                                        <ObjectAnimationUsingKeyFrames
1999
                                            Storyboard.TargetName="DockResizer"
2000
                                            Storyboard.TargetProperty="Visibility"
2001
                                            Duration="0">
2002
                                            <DiscreteObjectKeyFrame KeyTime="0">
2003
                                                <DiscreteObjectKeyFrame.Value>
2004
                                                    <Visibility>Visible</Visibility>
2005
                                                </DiscreteObjectKeyFrame.Value>
2006
                                            </DiscreteObjectKeyFrame>
2007
                                        </ObjectAnimationUsingKeyFrames>
2008
                                        <ObjectAnimationUsingKeyFrames
2009
                                            Storyboard.TargetName="DockResizer"
2010
                                            Storyboard.TargetProperty="VerticalAlignment"
2011
                                            Duration="0">
2012
                                            <DiscreteObjectKeyFrame KeyTime="0">
2013
                                                <DiscreteObjectKeyFrame.Value>
2014
                                                    <VerticalAlignment>Top</VerticalAlignment>
2015
                                                </DiscreteObjectKeyFrame.Value>
2016
                                            </DiscreteObjectKeyFrame>
2017
                                        </ObjectAnimationUsingKeyFrames>
2018
                                        <ObjectAnimationUsingKeyFrames
2019
                                            Storyboard.TargetName="DockResizer"
2020
                                            Storyboard.TargetProperty="HorizontalAlignment"
2021
                                            Duration="0">
2022
                                            <DiscreteObjectKeyFrame KeyTime="0">
2023
                                                <DiscreteObjectKeyFrame.Value>
2024
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
2025
                                                </DiscreteObjectKeyFrame.Value>
2026
                                            </DiscreteObjectKeyFrame>
2027
                                        </ObjectAnimationUsingKeyFrames>
2028
                                        <ObjectAnimationUsingKeyFrames
2029
                                            Storyboard.TargetName="DockResizer"
2030
                                            Storyboard.TargetProperty="Placement"
2031
                                            Duration="0">
2032
                                            <DiscreteObjectKeyFrame KeyTime="0">
2033
                                                <DiscreteObjectKeyFrame.Value>
2034
                                                    <Dock>Top</Dock>
2035
                                                </DiscreteObjectKeyFrame.Value>
2036
                                            </DiscreteObjectKeyFrame>
2037
                                        </ObjectAnimationUsingKeyFrames>
2038
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height">
2039
                                            <DiscreteObjectKeyFrame KeyTime="0">
2040
                                                <DiscreteObjectKeyFrame.Value>
2041
                                                    <System:Double>4</System:Double>
2042
                                                </DiscreteObjectKeyFrame.Value>
2043
                                            </DiscreteObjectKeyFrame>
2044
                                        </ObjectAnimationUsingKeyFrames>
2045
                                        <ObjectAnimationUsingKeyFrames
2046
                                            Storyboard.TargetName="DockResizer"
2047
                                            Storyboard.TargetProperty="(Grid.RowSpan)"
2048
                                            Duration="0">
2049
                                            <DiscreteObjectKeyFrame KeyTime="0">
2050
                                                <DiscreteObjectKeyFrame.Value>
2051
                                                    <System:Int32>1</System:Int32>
2052
                                                </DiscreteObjectKeyFrame.Value>
2053
                                            </DiscreteObjectKeyFrame>
2054
                                        </ObjectAnimationUsingKeyFrames>
2055
                                        <ObjectAnimationUsingKeyFrames
2056
                                            Storyboard.TargetName="DockResizer"
2057
                                            Storyboard.TargetProperty="(Grid.Row)"
2058
                                            Duration="0">
2059
                                            <DiscreteObjectKeyFrame KeyTime="0">
2060
                                                <DiscreteObjectKeyFrame.Value>
2061
                                                    <System:Int32>0</System:Int32>
2062
                                                </DiscreteObjectKeyFrame.Value>
2063
                                            </DiscreteObjectKeyFrame>
2064
                                        </ObjectAnimationUsingKeyFrames>
2065
                                        <ObjectAnimationUsingKeyFrames
2066
                                            Storyboard.TargetName="ContentBackground"
2067
                                            Storyboard.TargetProperty="Margin"
2068
                                            Duration="0">
2069
                                            <DiscreteObjectKeyFrame KeyTime="0">
2070
                                                <DiscreteObjectKeyFrame.Value>
2071
                                                    <Thickness>0,4,0,0</Thickness>
2072
                                                </DiscreteObjectKeyFrame.Value>
2073
                                            </DiscreteObjectKeyFrame>
2074
                                        </ObjectAnimationUsingKeyFrames>
2075
                                    </Storyboard>
2076
                                </VisualState>
2077
                                <VisualState x:Name="HideResizer" />
2078
                            </VisualStateGroup>
2079
                        </VisualStateManager.VisualStateGroups>
2080
                    </Grid>
2081
                </ControlTemplate>
2082
            </Setter.Value>
2083
        </Setter>
2084
        <Setter Property="RightTemplate">
2085
            <Setter.Value>
2086
                <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
2087
                    <Grid>
2088
                        <Grid.RowDefinitions>
2089
                            <RowDefinition Height="*" MinHeight="20" />
2090
                            <RowDefinition Height="Auto" />
2091
                        </Grid.RowDefinitions>
2092
                        <ContentControl
2093
                            x:Name="ContentBackground"
2094
                            Background="{TemplateBinding Background}"
2095
                            BorderBrush="{TemplateBinding BorderBrush}"
2096
                            BorderThickness="{TemplateBinding BorderThickness}">
2097
                            <ContentControl.Style>
2098
                                <Style TargetType="{x:Type ContentControl}">
2099
                                    <Setter Property="Template">
2100
                                        <Setter.Value>
2101
                                            <ControlTemplate TargetType="{x:Type ContentControl}">
2102
                                                <Border
2103
                                                    x:Name="Root"
2104
                                                    Background="{TemplateBinding Background}"
2105
                                                    BorderBrush="{TemplateBinding BorderBrush}"
2106
                                                    BorderThickness="{TemplateBinding BorderThickness}"
2107
                                                    CornerRadius="2,2,2,0">
2108
                                                    <ContentPresenter
2109
                                                        Content="{TemplateBinding Content}"
2110
                                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
2111
                                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
2112
                                                </Border>
2113
                                            </ControlTemplate>
2114
                                        </Setter.Value>
2115
                                    </Setter>
2116
                                </Style>
2117
                            </ContentControl.Style>
2118
                            <Grid>
2119
                                <Grid.RowDefinitions>
2120
                                    <RowDefinition Height="Auto" />
2121
                                    <RowDefinition Height="*" />
2122
                                </Grid.RowDefinitions>
2123
                                <Border Grid.Row="0" Visibility="{Binding SelectedItem.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}">
2124
                                    <telerik:PaneHeader
2125
                                        x:Name="HeaderElement"
2126
                                        Grid.Row="0"
2127
                                        MinHeight="16"
2128
                                        SelectedPane="{TemplateBinding SelectedPane}">
2129
                                        <telerik:StyleManager.Theme>
2130
                                            <telerik:Office_BlackTheme />
2131
                                        </telerik:StyleManager.Theme>
2132
                                    </telerik:PaneHeader>
2133
                                </Border>
2134
                                <Grid Grid.Row="1">
2135
                                    <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}">
2136
                                        <ContentPresenter.Visibility>
2137
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
2138
                                                <Binding.Converter>
2139
                                                    <telerik:InvertedBooleanToVisibilityConverter />
2140
                                                </Binding.Converter>
2141
                                            </Binding>
2142
                                        </ContentPresenter.Visibility>
2143
                                    </ContentPresenter>
2144
                                    <Grid x:Name="ContentElementsPanel">
2145
                                        <Grid.Visibility>
2146
                                            <Binding Path="IsContentPreserved" RelativeSource="{RelativeSource TemplatedParent}">
2147
                                                <Binding.Converter>
2148
                                                    <telerik:BooleanToVisibilityConverter />
2149
                                                </Binding.Converter>
2150
                                            </Binding>
2151
                                        </Grid.Visibility>
2152
                                    </Grid>
2153
                                </Grid>
2154
                            </Grid>
2155
                        </ContentControl>
2156
                        <Border
2157
                            x:Name="ItemsContainer"
2158
                            Grid.Row="1"
2159
                            Margin="0,-5,0,0"
2160
                            Padding="0,0,1,0">
2161
                            <ItemsPresenter x:Name="ItemsPresenterElement" />
2162
                        </Border>
2163
                        <telerik:RadGridResizer
2164
                            x:Name="DockResizer"
2165
                            Grid.RowSpan="2"
2166
                            HorizontalAlignment="Left"
2167
                            VerticalAlignment="Stretch"
2168
                            Cursor="SizeWE"
2169
                            Placement="Left"
2170
                            ShowsPreview="True"
2171
                            Visibility="Collapsed" />
2172
                        <VisualStateManager.VisualStateGroups>
2173
                            <VisualStateGroup x:Name="CommonStates">
2174
                                <VisualState x:Name="Disabled" />
2175
                                <VisualState x:Name="Normal" />
2176
                            </VisualStateGroup>
2177
                            <VisualStateGroup x:Name="FocusStates">
2178
                                <VisualState x:Name="Focused" />
2179
                                <VisualState x:Name="Unfocused" />
2180
                            </VisualStateGroup>
2181
                            <VisualStateGroup x:Name="AutoCollapseStates">
2182
                                <VisualState x:Name="SingleItem">
2183
                                    <Storyboard>
2184
                                        <ObjectAnimationUsingKeyFrames
2185
                                            Storyboard.TargetName="ItemsContainer"
2186
                                            Storyboard.TargetProperty="Visibility"
2187
                                            Duration="0">
2188
                                            <DiscreteObjectKeyFrame KeyTime="0">
2189
                                                <DiscreteObjectKeyFrame.Value>
2190
                                                    <Visibility>Collapsed</Visibility>
2191
                                                </DiscreteObjectKeyFrame.Value>
2192
                                            </DiscreteObjectKeyFrame>
2193
                                        </ObjectAnimationUsingKeyFrames>
2194
                                    </Storyboard>
2195
                                </VisualState>
2196
                                <VisualState x:Name="TwoOrMoreItems" />
2197
                            </VisualStateGroup>
2198
                            <VisualStateGroup x:Name="PaneHeaderVisibilityStates">
2199
                                <VisualState x:Name="PaneHeaderHidden">
2200
                                    <Storyboard>
2201
                                        <ObjectAnimationUsingKeyFrames
2202
                                            Storyboard.TargetName="HeaderElement"
2203
                                            Storyboard.TargetProperty="Visibility"
2204
                                            Duration="0">
2205
                                            <DiscreteObjectKeyFrame KeyTime="0">
2206
                                                <DiscreteObjectKeyFrame.Value>
2207
                                                    <Visibility>Collapsed</Visibility>
2208
                                                </DiscreteObjectKeyFrame.Value>
2209
                                            </DiscreteObjectKeyFrame>
2210
                                        </ObjectAnimationUsingKeyFrames>
2211
                                    </Storyboard>
2212
                                </VisualState>
2213
                                <VisualState x:Name="PaneHeaderVisible" />
2214
                            </VisualStateGroup>
2215
                            <VisualStateGroup x:Name="ResizerStates">
2216
                                <VisualState x:Name="ResizerLeft">
2217
                                    <Storyboard>
2218
                                        <Storyboard>
2219
                                            <ObjectAnimationUsingKeyFrames
2220
                                                Storyboard.TargetName="DockResizer"
2221
                                                Storyboard.TargetProperty="Visibility"
2222
                                                Duration="0">
2223
                                                <DiscreteObjectKeyFrame KeyTime="0">
2224
                                                    <DiscreteObjectKeyFrame.Value>
2225
                                                        <Visibility>Visible</Visibility>
2226
                                                    </DiscreteObjectKeyFrame.Value>
2227
                                                </DiscreteObjectKeyFrame>
2228
                                            </ObjectAnimationUsingKeyFrames>
2229
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Width">
2230
                                                <DiscreteObjectKeyFrame KeyTime="0">
2231
                                                    <DiscreteObjectKeyFrame.Value>
2232
                                                        <System:Double>4</System:Double>
2233
                                                    </DiscreteObjectKeyFrame.Value>
2234
                                                </DiscreteObjectKeyFrame>
2235
                                            </ObjectAnimationUsingKeyFrames>
2236
                                            <ObjectAnimationUsingKeyFrames
2237
                                                Storyboard.TargetName="ItemsContainer"
2238
                                                Storyboard.TargetProperty="Margin"
2239
                                                Duration="0">
2240
                                                <DiscreteObjectKeyFrame KeyTime="0">
2241
                                                    <DiscreteObjectKeyFrame.Value>
2242
                                                        <Thickness>4,-5,0,0</Thickness>
2243
                                                    </DiscreteObjectKeyFrame.Value>
2244
                                                </DiscreteObjectKeyFrame>
2245
                                            </ObjectAnimationUsingKeyFrames>
2246
                                            <ObjectAnimationUsingKeyFrames
2247
                                                Storyboard.TargetName="ContentBackground"
2248
                                                Storyboard.TargetProperty="Margin"
2249
                                                Duration="0">
2250
                                                <DiscreteObjectKeyFrame KeyTime="0">
2251
                                                    <DiscreteObjectKeyFrame.Value>
2252
                                                        <Thickness>4,0,0,0</Thickness>
2253
                                                    </DiscreteObjectKeyFrame.Value>
2254
                                                </DiscreteObjectKeyFrame>
2255
                                            </ObjectAnimationUsingKeyFrames>
2256
                                        </Storyboard>
2257
                                    </Storyboard>
2258
                                </VisualState>
2259
                                <VisualState x:Name="ResizerTop">
2260
                                    <Storyboard>
2261
                                        <ObjectAnimationUsingKeyFrames
2262
                                            Storyboard.TargetName="DockResizer"
2263
                                            Storyboard.TargetProperty="Visibility"
2264
                                            Duration="0">
2265
                                            <DiscreteObjectKeyFrame KeyTime="0">
2266
                                                <DiscreteObjectKeyFrame.Value>
2267
                                                    <Visibility>Visible</Visibility>
2268
                                                </DiscreteObjectKeyFrame.Value>
2269
                                            </DiscreteObjectKeyFrame>
2270
                                        </ObjectAnimationUsingKeyFrames>
2271
                                        <ObjectAnimationUsingKeyFrames
2272
                                            Storyboard.TargetName="DockResizer"
2273
                                            Storyboard.TargetProperty="VerticalAlignment"
2274
                                            Duration="0">
2275
                                            <DiscreteObjectKeyFrame KeyTime="0">
2276
                                                <DiscreteObjectKeyFrame.Value>
2277
                                                    <VerticalAlignment>Top</VerticalAlignment>
2278
                                                </DiscreteObjectKeyFrame.Value>
2279
                                            </DiscreteObjectKeyFrame>
2280
                                        </ObjectAnimationUsingKeyFrames>
2281
                                        <ObjectAnimationUsingKeyFrames
2282
                                            Storyboard.TargetName="DockResizer"
2283
                                            Storyboard.TargetProperty="HorizontalAlignment"
2284
                                            Duration="0">
2285
                                            <DiscreteObjectKeyFrame KeyTime="0">
2286
                                                <DiscreteObjectKeyFrame.Value>
2287
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
2288
                                                </DiscreteObjectKeyFrame.Value>
2289
                                            </DiscreteObjectKeyFrame>
2290
                                        </ObjectAnimationUsingKeyFrames>
2291
                                        <ObjectAnimationUsingKeyFrames
2292
                                            Storyboard.TargetName="DockResizer"
2293
                                            Storyboard.TargetProperty="Placement"
2294
                                            Duration="0">
2295
                                            <DiscreteObjectKeyFrame KeyTime="0">
2296
                                                <DiscreteObjectKeyFrame.Value>
2297
                                                    <Dock>Top</Dock>
2298
                                                </DiscreteObjectKeyFrame.Value>
2299
                                            </DiscreteObjectKeyFrame>
2300
                                        </ObjectAnimationUsingKeyFrames>
2301
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height">
2302
                                            <DiscreteObjectKeyFrame KeyTime="0">
2303
                                                <DiscreteObjectKeyFrame.Value>
2304
                                                    <System:Double>4</System:Double>
2305
                                                </DiscreteObjectKeyFrame.Value>
2306
                                            </DiscreteObjectKeyFrame>
2307
                                        </ObjectAnimationUsingKeyFrames>
2308
                                        <ObjectAnimationUsingKeyFrames
2309
                                            Storyboard.TargetName="DockResizer"
2310
                                            Storyboard.TargetProperty="(Grid.RowSpan)"
2311
                                            Duration="0">
2312
                                            <DiscreteObjectKeyFrame KeyTime="0">
2313
                                                <DiscreteObjectKeyFrame.Value>
2314
                                                    <System:Int32>1</System:Int32>
2315
                                                </DiscreteObjectKeyFrame.Value>
2316
                                            </DiscreteObjectKeyFrame>
2317
                                        </ObjectAnimationUsingKeyFrames>
2318
                                        <ObjectAnimationUsingKeyFrames
2319
                                            Storyboard.TargetName="DockResizer"
2320
                                            Storyboard.TargetProperty="(Grid.Row)"
2321
                                            Duration="0">
2322
                                            <DiscreteObjectKeyFrame KeyTime="0">
2323
                                                <DiscreteObjectKeyFrame.Value>
2324
                                                    <System:Int32>0</System:Int32>
2325
                                                </DiscreteObjectKeyFrame.Value>
2326
                                            </DiscreteObjectKeyFrame>
2327
                                        </ObjectAnimationUsingKeyFrames>
2328
                                        <ObjectAnimationUsingKeyFrames
2329
                                            Storyboard.TargetName="ContentBackground"
2330
                                            Storyboard.TargetProperty="Margin"
2331
                                            Duration="0">
2332
                                            <DiscreteObjectKeyFrame KeyTime="0">
2333
                                                <DiscreteObjectKeyFrame.Value>
2334
                                                    <Thickness>0,4,0,0</Thickness>
2335
                                                </DiscreteObjectKeyFrame.Value>
2336
                                            </DiscreteObjectKeyFrame>
2337
                                        </ObjectAnimationUsingKeyFrames>
2338
                                    </Storyboard>
2339
                                </VisualState>
2340
                                <VisualState x:Name="HideResizer" />
2341
                            </VisualStateGroup>
2342
                        </VisualStateManager.VisualStateGroups>
2343
                    </Grid>
2344
                </ControlTemplate>
2345
            </Setter.Value>
2346
        </Setter>
2347
        <Setter Property="ItemsPanel">
2348
            <Setter.Value>
2349
                <ItemsPanelTemplate>
2350
                    <Telerik_Windows_Controls_Primitives:TabStripPanel IsItemsHost="True" />
2351
                </ItemsPanelTemplate>
2352
            </Setter.Value>
2353
        </Setter>
2354
        <Setter Property="BorderThickness" Value="1" />
2355
        <Setter Property="BorderBrush" Value="DarkGray" />
2356
        <Setter Property="Background" Value="Transparent" />
2357
        <Setter Property="HorizontalAlignment" Value="Stretch" />
2358
        <Setter Property="VerticalAlignment" Value="Stretch" />
2359
        <Setter Property="Align" Value="Left" />
2360
        <Setter Property="TabStripPlacement" Value="Bottom" />
2361
        <Setter Property="AllTabsEqualHeight" Value="True" />
2362
        <Setter Property="BackgroundVisibility" Value="Visible" />
2363
        <Setter Property="MinWidth" Value="15" />
2364
        <Setter Property="MinHeight" Value="15" />
2365
    </Style>
2366

    
2367
    <!--<SolidColorBrush x:Key="BackgroundNormal2" Color="White" />-->
2368
    <SolidColorBrush x:Key="BackgroundNormal2" Color="#c64138" />
2369

    
2370
    <LinearGradientBrush x:Key="ThumbBackground2" StartPoint="0.5,0" EndPoint="0.5,1">
2371
        <GradientStop Offset="0" Color="#FFFFFFFF" />
2372
        <GradientStop Offset="1" Color="#FFDEDEDE" />
2373
    </LinearGradientBrush>
2374

    
2375
    <SolidColorBrush x:Key="BorderBrushNormal2" Color="#FF989898" />
2376

    
2377

    
2378
    <!--<SolidColorBrush x:Key="ThumbBackgroundChecked2" Color="#FFFFC92B"/>-->
2379
    <SolidColorBrush x:Key="ThumbBackgroundChecked2" Color="#FF4CDA64" />
2380
    <LinearGradientBrush x:Key="ThumbBackgroundMouseOver1" StartPoint="0.5,0" EndPoint="0.5,1">
2381
        <GradientStop Offset="0" Color="#FFFFFBDA" />
2382
        <GradientStop Offset="0.50" Color="#FFFEEBAE" />
2383
        <GradientStop Offset="0.50" Color="#FFFFD25A" />
2384
        <GradientStop Offset="1" Color="#FFFFFBA3" />
2385
    </LinearGradientBrush>
2386

    
2387

    
2388
    <Style x:Key="RadToggleSwtichButtonStyle" TargetType="telerik:RadToggleButton">
2389
        <Setter Property="BorderThickness" Value="1" />
2390
        <!--<Setter Property="Padding" Value="10 1"/>-->
2391
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
2392
        <Setter Property="FontSize" Value="10" />
2393
        <Setter Property="FontFamily" Value="Segoe UI" />
2394
        <Setter Property="FontWeight" Value="SemiBold" />
2395
        <Setter Property="VerticalContentAlignment" Value="Center" />
2396
        <Setter Property="HorizontalContentAlignment" Value="Right" />
2397
        <Setter Property="Background" Value="{StaticResource BackgroundNormal2}" />
2398
        <Setter Property="BorderBrush" Value="{StaticResource BorderBrushNormal2}" />
2399
        <Setter Property="BorderThickness" Value="1" />
2400
        <Setter Property="Foreground" Value="#FF989898" />
2401
        <Setter Property="Cursor" Value="Hand" />
2402
        <Setter Property="MinHeight" Value="20" />
2403
        <Setter Property="MinWidth" Value="53" />
2404
        <Setter Property="Template">
2405
            <Setter.Value>
2406
                <ControlTemplate TargetType="telerik:RadToggleButton">
2407
                    <Grid>
2408
                        <Grid SnapsToDevicePixels="True">
2409
                            <Border
2410
                                x:Name="Track"
2411
                                Background="{TemplateBinding Background}"
2412
                                BorderBrush="{TemplateBinding BorderBrush}"
2413
                                BorderThickness="{TemplateBinding BorderThickness}"
2414
                                CornerRadius="10" />
2415

    
2416
                            <Border
2417
                                x:Name="Thumb"
2418
                                Width="25"
2419
                                Height="25"
2420
                                HorizontalAlignment="Left"
2421
                                Background="{StaticResource ThumbBackground2}"
2422
                                BorderBrush="{TemplateBinding BorderBrush}"
2423
                                BorderThickness="{TemplateBinding BorderThickness}"
2424
                                CornerRadius="10"
2425
                                RenderTransformOrigin="0.5,0.5">
2426
                                <Border.RenderTransform>
2427
                                    <TransformGroup>
2428
                                        <ScaleTransform />
2429
                                        <SkewTransform />
2430
                                        <RotateTransform />
2431
                                        <TranslateTransform />
2432
                                    </TransformGroup>
2433
                                </Border.RenderTransform>
2434
                                <Path
2435
                                    x:Name="path"
2436
                                    Width="7"
2437
                                    Height="7"
2438
                                    Margin="0,1,0,0"
2439
                                    HorizontalAlignment="Center"
2440
                                    VerticalAlignment="Center"
2441
                                    Data="M0.5,0.5 L0.5,15.1 M2.5,0.5 L2.5,15.1 M4.5,0.5 L4.5,15.1 M6.5,0.5 L6.5,15.1"
2442
                                    SnapsToDevicePixels="True"
2443
                                    Stretch="Fill"
2444
                                    Stroke="{TemplateBinding BorderBrush}"
2445
                                    StrokeThickness="1" />
2446
                            </Border>
2447
                        </Grid>
2448

    
2449
                        <ContentPresenter
2450
                            x:Name="Content"
2451
                            Margin="{TemplateBinding Padding}"
2452
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
2453
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
2454
                            Content="{TemplateBinding Content}"
2455
                            ContentStringFormat="{TemplateBinding ContentStringFormat}"
2456
                            ContentTemplate="{TemplateBinding ContentTemplate}"
2457
                            ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
2458
                            RecognizesAccessKey="True">
2459
                            <ContentPresenter.RenderTransform>
2460
                                <TransformGroup>
2461
                                    <ScaleTransform />
2462
                                    <SkewTransform />
2463
                                    <RotateTransform />
2464
                                    <TranslateTransform />
2465
                                </TransformGroup>
2466
                            </ContentPresenter.RenderTransform>
2467
                        </ContentPresenter>
2468
                        <VisualStateManager.VisualStateGroups>
2469
                            <VisualStateGroup x:Name="CheckStates">
2470
                                <VisualStateGroup.Transitions>
2471
                                    <VisualTransition From="Unchecked" To="Checked">
2472
                                        <Storyboard>
2473
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
2474
                                                <EasingDoubleKeyFrame KeyTime="0" Value="0" />
2475
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="45">
2476
                                                    <EasingDoubleKeyFrame.EasingFunction>
2477
                                                        <QuinticEase EasingMode="EaseOut" />
2478
                                                    </EasingDoubleKeyFrame.EasingFunction>
2479
                                                </EasingDoubleKeyFrame>
2480
                                            </DoubleAnimationUsingKeyFrames>
2481

    
2482
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
2483
                                                <EasingDoubleKeyFrame KeyTime="0" Value="0" />
2484
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
2485
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-1">
2486
                                                    <EasingDoubleKeyFrame.EasingFunction>
2487
                                                        <CircleEase EasingMode="EaseOut" />
2488
                                                    </EasingDoubleKeyFrame.EasingFunction>
2489
                                                </EasingDoubleKeyFrame>
2490
                                            </DoubleAnimationUsingKeyFrames>
2491

    
2492
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(UIElement.Opacity)">
2493
                                                <EasingDoubleKeyFrame KeyTime="0" Value="0" />
2494
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
2495
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.05" />
2496
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1">
2497
                                                    <EasingDoubleKeyFrame.EasingFunction>
2498
                                                        <CircleEase EasingMode="EaseOut" />
2499
                                                    </EasingDoubleKeyFrame.EasingFunction>
2500
                                                </EasingDoubleKeyFrame>
2501
                                            </DoubleAnimationUsingKeyFrames>
2502
                                        </Storyboard>
2503
                                    </VisualTransition>
2504
                                    <VisualTransition From="Checked" To="UnChecked">
2505
                                        <Storyboard>
2506
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
2507
                                                <EasingDoubleKeyFrame KeyTime="0" Value="45" />
2508
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0">
2509
                                                    <EasingDoubleKeyFrame.EasingFunction>
2510
                                                        <QuinticEase EasingMode="EaseOut" />
2511
                                                    </EasingDoubleKeyFrame.EasingFunction>
2512
                                                </EasingDoubleKeyFrame>
2513
                                            </DoubleAnimationUsingKeyFrames>
2514
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
2515
                                                <EasingDoubleKeyFrame KeyTime="0" Value="-1" />
2516
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0">
2517
                                                    <EasingDoubleKeyFrame.EasingFunction>
2518
                                                        <CircleEase EasingMode="EaseOut" />
2519
                                                    </EasingDoubleKeyFrame.EasingFunction>
2520
                                                </EasingDoubleKeyFrame>
2521
                                            </DoubleAnimationUsingKeyFrames>
2522

    
2523
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(UIElement.Opacity)">
2524
                                                <EasingDoubleKeyFrame KeyTime="0" Value="0" />
2525
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
2526
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.05" />
2527
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1">
2528
                                                    <EasingDoubleKeyFrame.EasingFunction>
2529
                                                        <CircleEase EasingMode="EaseOut" />
2530
                                                    </EasingDoubleKeyFrame.EasingFunction>
2531
                                                </EasingDoubleKeyFrame>
2532
                                            </DoubleAnimationUsingKeyFrames>
2533
                                        </Storyboard>
2534
                                    </VisualTransition>
2535
                                </VisualStateGroup.Transitions>
2536
                                <VisualState x:Name="Checked">
2537
                                    <Storyboard>
2538
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
2539
                                            <EasingDoubleKeyFrame KeyTime="0" Value="45" />
2540
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="45">
2541
                                                <EasingDoubleKeyFrame.EasingFunction>
2542
                                                    <QuinticEase EasingMode="EaseOut" />
2543
                                                </EasingDoubleKeyFrame.EasingFunction>
2544
                                            </EasingDoubleKeyFrame>
2545
                                        </DoubleAnimationUsingKeyFrames>
2546

    
2547
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
2548
                                            <EasingDoubleKeyFrame KeyTime="0" Value="-1" />
2549
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-1" />
2550
                                        </DoubleAnimationUsingKeyFrames>
2551

    
2552
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(UIElement.Opacity)">
2553
                                            <EasingDoubleKeyFrame KeyTime="0" Value="1" />
2554
                                        </DoubleAnimationUsingKeyFrames>
2555
                                    </Storyboard>
2556
                                </VisualState>
2557
                                <VisualState x:Name="Unchecked">
2558
                                    <Storyboard />
2559
                                </VisualState>
2560
                            </VisualStateGroup>
2561
                        </VisualStateManager.VisualStateGroups>
2562
                    </Grid>
2563
                    <ControlTemplate.Triggers>
2564
                        <Trigger Property="IsMouseOver" Value="True">
2565
                            <Setter TargetName="Thumb" Property="Background" Value="{StaticResource ThumbBackgroundMouseOver1}" />
2566
                        </Trigger>
2567

    
2568
                        <Trigger Property="IsChecked" Value="True">
2569
                            <Setter TargetName="Content" Property="HorizontalAlignment" Value="Left" />
2570
                            <Setter TargetName="Track" Property="Background" Value="{StaticResource ThumbBackgroundChecked2}" />
2571
                            <Setter TargetName="Content" Property="TextBlock.Foreground" Value="#333333" />
2572
                        </Trigger>
2573

    
2574
                    </ControlTemplate.Triggers>
2575
                </ControlTemplate>
2576
            </Setter.Value>
2577
        </Setter>
2578
    </Style>
2579

    
2580
    <ControlTemplate x:Key="TabControlTemplate" TargetType="telerik:LayoutControlTabGroup">
2581
        <Grid>
2582
            <Grid>
2583
                <Grid.ColumnDefinitions>
2584
                    <ColumnDefinition Width="Auto" />
2585
                    <ColumnDefinition Width="*" />
2586
                </Grid.ColumnDefinitions>
2587
                <!--<Border x:Name="ContentBorder"
2588
                        Grid.Column="1"
2589
                        BorderBrush="{TemplateBinding BorderBrush}"
2590
                        BorderThickness="{TemplateBinding BorderThickness}"
2591
                        Background="{TemplateBinding Background}"
2592
                        Padding="{TemplateBinding Padding}">
2593
                    <ContentControl        x:Name="PART_ContentElement" Content="{TemplateBinding SelectedItem}" />
2594
                </Border-->
2595

    
2596
                <Border
2597
                    x:Name="ContentBorder"
2598
                    Grid.Column="1"
2599
                    Padding="0"
2600
                    Background="{TemplateBinding Background}"
2601
                    BorderBrush="{TemplateBinding BorderBrush}"
2602
                    BorderThickness="0">
2603
                    <ContentControl x:Name="PART_ContentElement" Content="{TemplateBinding SelectedItem}" />
2604
                </Border>
2605

    
2606
                <telerik:LayoutTransformControl x:Name="HeaderDockedElement" Margin="0,0,-2,0">
2607
                    <telerik:LayoutTransformControl.LayoutTransform>
2608
                        <RotateTransform Angle="-90" />
2609
                    </telerik:LayoutTransformControl.LayoutTransform>
2610
                    <Grid>
2611
                        <Border x:Name="HeaderBackground" />
2612
                        <ItemsPresenter HorizontalAlignment="Right" FlowDirection="RightToLeft" />
2613
                    </Grid>
2614
                </telerik:LayoutTransformControl>
2615
            </Grid>
2616
        </Grid>
2617
    </ControlTemplate>
2618

    
2619
    <ControlTemplate x:Key="RadExpanderControlTemplate" TargetType="telerik:RadExpander">
2620
        <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
2621
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
2622
                <Grid>
2623
                    <Grid.RowDefinitions>
2624
                        <RowDefinition x:Name="row0" Height="Auto" />
2625
                        <RowDefinition x:Name="row1" Height="Auto" />
2626
                    </Grid.RowDefinitions>
2627
                    <Grid.ColumnDefinitions>
2628
                        <ColumnDefinition x:Name="col0" Width="Auto" />
2629
                        <ColumnDefinition x:Name="col1" Width="Auto" />
2630
                    </Grid.ColumnDefinitions>
2631

    
2632
                    <telerik:RadToggleButton
2633
                        x:Name="HeaderButton"
2634
                        Padding="{TemplateBinding Padding}"
2635
                        HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
2636
                        VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
2637
                        HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}"
2638
                        VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}"
2639
                        Background="Transparent"
2640
                        ClickMode="{TemplateBinding ClickMode}"
2641
                        FontFamily="{TemplateBinding FontFamily}"
2642
                        FontSize="{TemplateBinding FontSize}"
2643
                        FontStretch="{TemplateBinding FontStretch}"
2644
                        FontStyle="{TemplateBinding FontStyle}"
2645
                        FontWeight="{TemplateBinding FontWeight}"
2646
                        Foreground="{TemplateBinding Foreground}"
2647
                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
2648
                        IsTabStop="{TemplateBinding IsTabStop}"
2649
                        TabIndex="{TemplateBinding TabIndex}"
2650
                        Template="{StaticResource ToggleTemplate}">
2651

    
2652
                        <Grid x:Name="HeaderPanel" Background="Transparent">
2653
                            <Grid.RowDefinitions>
2654
                                <RowDefinition Height="Auto" />
2655
                                <RowDefinition Height="*" />
2656
                            </Grid.RowDefinitions>
2657
                            <Grid.ColumnDefinitions>
2658
                                <ColumnDefinition Width="Auto" />
2659
                                <ColumnDefinition Width="*" />
2660
                            </Grid.ColumnDefinitions>
2661

    
2662
                            <Grid
2663
                                Grid.Row="0"
2664
                                Grid.Column="0"
2665
                                HorizontalAlignment="Left">
2666
                                <Ellipse
2667
                                    x:Name="OuterCircle"
2668
                                    Width="13"
2669
                                    Height="13"
2670
                                    HorizontalAlignment="Center"
2671
                                    VerticalAlignment="Center"
2672
                                    Fill="#eeeef2"
2673
                                    Stroke="#cccedb" />
2674
                                <Ellipse
2675
                                    x:Name="InnerCircle"
2676
                                    Width="11"
2677
                                    Height="11"
2678
                                    Fill="#eeeef2"
2679
                                    Stroke="{StaticResource ControlInnerBorder_Normal}" />
2680

    
2681
                                <Grid
2682
                                    x:Name="arrowPanel"
2683
                                    Width="7"
2684
                                    Height="4"
2685
                                    RenderTransformOrigin=".5 .5">
2686
                                    <Grid.RenderTransform>
2687
                                        <RotateTransform />
2688
                                    </Grid.RenderTransform>
2689
                                    <Path
2690
                                        x:Name="arrow"
2691
                                        Data="M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z"
2692
                                        Fill="#FF3B4950"
2693
                                        RenderTransformOrigin="0.5,0.5"
2694
                                        Stretch="Fill">
2695
                                        <Path.RenderTransform>
2696
                                            <RotateTransform Angle="0" />
2697
                                        </Path.RenderTransform>
2698
                                    </Path>
2699
                                </Grid>
2700
                            </Grid>
2701
                            <telerik:LayoutTransformControl
2702
                                x:Name="HeaderContentTransform"
2703
                                Grid.Row="0"
2704
                                Grid.Column="0"
2705
                                RenderTransformOrigin=".5 .5">
2706
                                <ContentPresenter
2707
                                    x:Name="HeaderContent"
2708
                                    Grid.Column="1"
2709
                                    Margin="3,0,0,0"
2710
                                    HorizontalAlignment="Stretch"
2711
                                    VerticalAlignment="Stretch"
2712
                                    Content="{TemplateBinding Header}"
2713
                                    ContentTemplate="{TemplateBinding HeaderTemplate}" />
2714
                            </telerik:LayoutTransformControl>
2715

    
2716
                        </Grid>
2717
                    </telerik:RadToggleButton>
2718

    
2719
                    <ContentPresenter
2720
                        x:Name="Content"
2721
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
2722
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
2723
                        Content="{TemplateBinding Content}"
2724
                        ContentTemplate="{TemplateBinding ContentTemplate}"
2725
                        Visibility="Collapsed" />
2726
                </Grid>
2727
            </Border>
2728

    
2729
            <VisualStateManager.VisualStateGroups>
2730
                <VisualStateGroup x:Name="CommonStateGroup">
2731
                    <VisualState x:Name="Normal" />
2732
                    <VisualState x:Name="Disabled">
2733
                        <Storyboard>
2734
                            <ObjectAnimationUsingKeyFrames
2735
                                Storyboard.TargetName="InnerCircle"
2736
                                Storyboard.TargetProperty="Stroke"
2737
                                Duration="0:0:0">
2738
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
2739
                            </ObjectAnimationUsingKeyFrames>
2740
                            <DoubleAnimation
2741
                                Storyboard.TargetName="Content"
2742
                                Storyboard.TargetProperty="Opacity"
2743
                                To=".5" />
2744
                            <DoubleAnimation
2745
                                Storyboard.TargetName="HeaderContent"
2746
                                Storyboard.TargetProperty="Opacity"
2747
                                To=".5" />
2748
                        </Storyboard>
2749
                    </VisualState>
2750
                </VisualStateGroup>
2751
                <VisualStateGroup x:Name="HeaderStateGroup">
2752
                    <VisualState x:Name="NormalHeader" />
2753
                    <VisualState x:Name="MouseOverHeader">
2754
                        <Storyboard>
2755
                            <ObjectAnimationUsingKeyFrames
2756
                                Storyboard.TargetName="InnerCircle"
2757
                                Storyboard.TargetProperty="Stroke"
2758
                                Duration="0:0:0">
2759
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
2760
                            </ObjectAnimationUsingKeyFrames>
2761
                        </Storyboard>
2762
                    </VisualState>
2763
                    <VisualState x:Name="PressedHeader">
2764
                        <Storyboard>
2765
                            <ObjectAnimationUsingKeyFrames
2766
                                Storyboard.TargetName="InnerCircle"
2767
                                Storyboard.TargetProperty="Stroke"
2768
                                Duration="0:0:0">
2769
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
2770
                            </ObjectAnimationUsingKeyFrames>
2771
                        </Storyboard>
2772
                    </VisualState>
2773
                </VisualStateGroup>
2774
                <VisualStateGroup x:Name="HeaderOrientationGroup">
2775
                    <VisualState x:Name="HorizontalOrientation">
2776
                        <Storyboard>
2777
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
2778
                                <DiscreteObjectKeyFrame KeyTime="0">
2779
                                    <DiscreteObjectKeyFrame.Value>
2780
                                        <RotateTransform Angle="0" />
2781
                                    </DiscreteObjectKeyFrame.Value>
2782
                                </DiscreteObjectKeyFrame>
2783
                            </ObjectAnimationUsingKeyFrames>
2784
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Column)">
2785
                                <DiscreteObjectKeyFrame KeyTime="0">
2786
                                    <DiscreteObjectKeyFrame.Value>
2787
                                        <System:Int32>1</System:Int32>
2788
                                    </DiscreteObjectKeyFrame.Value>
2789
                                </DiscreteObjectKeyFrame>
2790
                            </ObjectAnimationUsingKeyFrames>
2791
                        </Storyboard>
2792
                    </VisualState>
2793
                    <VisualState x:Name="VerticalOrientation">
2794
                        <Storyboard>
2795
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
2796
                                <DiscreteObjectKeyFrame KeyTime="0">
2797
                                    <DiscreteObjectKeyFrame.Value>
2798
                                        <RotateTransform Angle="90" />
2799
                                    </DiscreteObjectKeyFrame.Value>
2800
                                </DiscreteObjectKeyFrame>
2801
                            </ObjectAnimationUsingKeyFrames>
2802
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Row)">
2803
                                <DiscreteObjectKeyFrame KeyTime="0">
2804
                                    <DiscreteObjectKeyFrame.Value>
2805
                                        <System:Int32>1</System:Int32>
2806
                                    </DiscreteObjectKeyFrame.Value>
2807
                                </DiscreteObjectKeyFrame>
2808
                            </ObjectAnimationUsingKeyFrames>
2809
                        </Storyboard>
2810
                    </VisualState>
2811
                </VisualStateGroup>
2812
                <VisualStateGroup x:Name="ExpandStateGroup">
2813
                    <VisualState x:Name="Expanded">
2814
                        <Storyboard>
2815
                            <DoubleAnimation
2816
                                Storyboard.TargetName="arrow"
2817
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
2818
                                To="180"
2819
                                Duration="0:0:0.2" />
2820
                            <ColorAnimation
2821
                                d:IsOptimized="True"
2822
                                Storyboard.TargetName="OuterCircle"
2823
                                Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)"
2824
                                To="#FF1FA3EB"
2825
                                Duration="0" />
2826
                        </Storyboard>
2827
                    </VisualState>
2828
                    <VisualState x:Name="Collapsed">
2829
                        <Storyboard>
2830
                            <DoubleAnimation
2831
                                Storyboard.TargetName="arrow"
2832
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
2833
                                To="0"
2834
                                Duration="0:0:0.2" />
2835
                        </Storyboard>
2836
                    </VisualState>
2837
                </VisualStateGroup>
2838
                <VisualStateGroup x:Name="ExpandDirectionStates">
2839
                    <VisualStateGroup.Transitions>
2840
                        <VisualTransition>
2841
                            <Storyboard>
2842
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
2843
                                    <DiscreteObjectKeyFrame KeyTime="0">
2844
                                        <DiscreteObjectKeyFrame.Value>
2845
                                            <System:Int32>0</System:Int32>
2846
                                        </DiscreteObjectKeyFrame.Value>
2847
                                    </DiscreteObjectKeyFrame>
2848
                                </ObjectAnimationUsingKeyFrames>
2849
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
2850
                                    <DiscreteObjectKeyFrame KeyTime="0">
2851
                                        <DiscreteObjectKeyFrame.Value>
2852
                                            <System:Int32>0</System:Int32>
2853
                                        </DiscreteObjectKeyFrame.Value>
2854
                                    </DiscreteObjectKeyFrame>
2855
                                </ObjectAnimationUsingKeyFrames>
2856
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
2857
                                    <DiscreteObjectKeyFrame KeyTime="0">
2858
                                        <DiscreteObjectKeyFrame.Value>
2859
                                            <System:Int32>0</System:Int32>
2860
                                        </DiscreteObjectKeyFrame.Value>
2861
                                    </DiscreteObjectKeyFrame>
2862
                                </ObjectAnimationUsingKeyFrames>
2863
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
2864
                                    <DiscreteObjectKeyFrame KeyTime="0">
2865
                                        <DiscreteObjectKeyFrame.Value>
2866
                                            <System:Int32>0</System:Int32>
2867
                                        </DiscreteObjectKeyFrame.Value>
2868
                                    </DiscreteObjectKeyFrame>
2869
                                </ObjectAnimationUsingKeyFrames>
2870
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
2871
                                    <DiscreteObjectKeyFrame KeyTime="0">
2872
                                        <DiscreteObjectKeyFrame.Value>
2873
                                            <GridLength>Auto</GridLength>
2874
                                        </DiscreteObjectKeyFrame.Value>
2875
                                    </DiscreteObjectKeyFrame>
2876
                                </ObjectAnimationUsingKeyFrames>
2877
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
2878
                                    <DiscreteObjectKeyFrame KeyTime="0">
2879
                                        <DiscreteObjectKeyFrame.Value>
2880
                                            <GridLength>Auto</GridLength>
2881
                                        </DiscreteObjectKeyFrame.Value>
2882
                                    </DiscreteObjectKeyFrame>
2883
                                </ObjectAnimationUsingKeyFrames>
2884
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
2885
                                    <DiscreteObjectKeyFrame KeyTime="0">
2886
                                        <DiscreteObjectKeyFrame.Value>
2887
                                            <GridLength>Auto</GridLength>
2888
                                        </DiscreteObjectKeyFrame.Value>
2889
                                    </DiscreteObjectKeyFrame>
2890
                                </ObjectAnimationUsingKeyFrames>
2891
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
2892
                                    <DiscreteObjectKeyFrame KeyTime="0">
2893
                                        <DiscreteObjectKeyFrame.Value>
2894
                                            <GridLength>Auto</GridLength>
2895
                                        </DiscreteObjectKeyFrame.Value>
2896
                                    </DiscreteObjectKeyFrame>
2897
                                </ObjectAnimationUsingKeyFrames>
2898
                            </Storyboard>
2899
                        </VisualTransition>
2900
                    </VisualStateGroup.Transitions>
2901
                    <VisualState x:Name="DirectionLeft">
2902
                        <Storyboard>
2903
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
2904
                                <DiscreteObjectKeyFrame KeyTime="0">
2905
                                    <DiscreteObjectKeyFrame.Value>
2906
                                        <GridLength>*</GridLength>
2907
                                    </DiscreteObjectKeyFrame.Value>
2908
                                </DiscreteObjectKeyFrame>
2909
                            </ObjectAnimationUsingKeyFrames>
2910
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
2911
                                <DiscreteObjectKeyFrame KeyTime="0">
2912
                                    <DiscreteObjectKeyFrame.Value>
2913
                                        <GridLength>*</GridLength>
2914
                                    </DiscreteObjectKeyFrame.Value>
2915
                                </DiscreteObjectKeyFrame>
2916
                            </ObjectAnimationUsingKeyFrames>
2917
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
2918
                                <DiscreteObjectKeyFrame KeyTime="0">
2919
                                    <DiscreteObjectKeyFrame.Value>
2920
                                        <System:Int32>1</System:Int32>
2921
                                    </DiscreteObjectKeyFrame.Value>
2922
                                </DiscreteObjectKeyFrame>
2923
                            </ObjectAnimationUsingKeyFrames>
2924
                            <DoubleAnimation
2925
                                Storyboard.TargetName="arrowPanel"
2926
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
2927
                                To="90"
2928
                                Duration="0:0:0" />
2929
                        </Storyboard>
2930
                    </VisualState>
2931
                    <VisualState x:Name="DirectionRight">
2932
                        <Storyboard>
2933
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
2934
                                <DiscreteObjectKeyFrame KeyTime="0">
2935
                                    <DiscreteObjectKeyFrame.Value>
2936
                                        <GridLength>*</GridLength>
2937
                                    </DiscreteObjectKeyFrame.Value>
2938
                                </DiscreteObjectKeyFrame>
2939
                            </ObjectAnimationUsingKeyFrames>
2940
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
2941
                                <DiscreteObjectKeyFrame KeyTime="0">
2942
                                    <DiscreteObjectKeyFrame.Value>
2943
                                        <GridLength>*</GridLength>
2944
                                    </DiscreteObjectKeyFrame.Value>
2945
                                </DiscreteObjectKeyFrame>
2946
                            </ObjectAnimationUsingKeyFrames>
2947
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
2948
                                <DiscreteObjectKeyFrame KeyTime="0">
2949
                                    <DiscreteObjectKeyFrame.Value>
2950
                                        <System:Int32>1</System:Int32>
2951
                                    </DiscreteObjectKeyFrame.Value>
2952
                                </DiscreteObjectKeyFrame>
2953
                            </ObjectAnimationUsingKeyFrames>
2954
                            <DoubleAnimation
2955
                                Storyboard.TargetName="arrowPanel"
2956
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
2957
                                To="-90"
2958
                                Duration="0:0:0" />
2959
                        </Storyboard>
2960
                    </VisualState>
2961
                    <VisualState x:Name="DirectionUp">
2962
                        <Storyboard>
2963
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
2964
                                <DiscreteObjectKeyFrame KeyTime="0">
2965
                                    <DiscreteObjectKeyFrame.Value>
2966
                                        <GridLength>*</GridLength>
2967
                                    </DiscreteObjectKeyFrame.Value>
2968
                                </DiscreteObjectKeyFrame>
2969
                            </ObjectAnimationUsingKeyFrames>
2970
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
2971
                                <DiscreteObjectKeyFrame KeyTime="0">
2972
                                    <DiscreteObjectKeyFrame.Value>
2973
                                        <GridLength>*</GridLength>
2974
                                    </DiscreteObjectKeyFrame.Value>
2975
                                </DiscreteObjectKeyFrame>
2976
                            </ObjectAnimationUsingKeyFrames>
2977
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
2978
                                <DiscreteObjectKeyFrame KeyTime="0">
2979
                                    <DiscreteObjectKeyFrame.Value>
2980
                                        <System:Int32>1</System:Int32>
2981
                                    </DiscreteObjectKeyFrame.Value>
2982
                                </DiscreteObjectKeyFrame>
2983
                            </ObjectAnimationUsingKeyFrames>
2984
                            <DoubleAnimation
2985
                                Storyboard.TargetName="arrowPanel"
2986
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
2987
                                To="180"
2988
                                Duration="0:0:0" />
2989
                        </Storyboard>
2990
                    </VisualState>
2991
                    <VisualState x:Name="DirectionDown">
2992
                        <Storyboard>
2993
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
2994
                                <DiscreteObjectKeyFrame KeyTime="0">
2995
                                    <DiscreteObjectKeyFrame.Value>
2996
                                        <GridLength>*</GridLength>
2997
                                    </DiscreteObjectKeyFrame.Value>
2998
                                </DiscreteObjectKeyFrame>
2999
                            </ObjectAnimationUsingKeyFrames>
3000
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
3001
                                <DiscreteObjectKeyFrame KeyTime="0">
3002
                                    <DiscreteObjectKeyFrame.Value>
3003
                                        <GridLength>*</GridLength>
3004
                                    </DiscreteObjectKeyFrame.Value>
3005
                                </DiscreteObjectKeyFrame>
3006
                            </ObjectAnimationUsingKeyFrames>
3007
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
3008
                                <DiscreteObjectKeyFrame KeyTime="0">
3009
                                    <DiscreteObjectKeyFrame.Value>
3010
                                        <System:Int32>1</System:Int32>
3011
                                    </DiscreteObjectKeyFrame.Value>
3012
                                </DiscreteObjectKeyFrame>
3013
                            </ObjectAnimationUsingKeyFrames>
3014
                        </Storyboard>
3015
                    </VisualState>
3016
                </VisualStateGroup>
3017
            </VisualStateManager.VisualStateGroups>
3018
        </Grid>
3019

    
3020
    </ControlTemplate>
3021
    <SolidColorBrush x:Key="ControlBackground" Color="#FFFFFFFF" />
3022
    <SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF000000" />
3023
    <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF848484" />
3024
    <SolidColorBrush x:Key="ControlInnerBorder_Normal" Color="#FFFFFFFF" />
3025
    <SolidColorBrush x:Key="ControlElement_Normal" Color="#FF000000" />
3026
    <SolidColorBrush x:Key="ControlElement_MouseOver" Color="#FF000000" />
3027
    <SolidColorBrush x:Key="ControlInnerBorder_MouseOver" Color="#FFFFFFFF" />
3028
    <SolidColorBrush x:Key="ControlInnerBorder_Disabled" Color="Transparent" />
3029
    <LinearGradientBrush x:Key="ControlOuterBorder_Pressed" StartPoint="0.5,0" EndPoint="0.5,1">
3030
        <GradientStop Color="#FF282828" />
3031
        <GradientStop Offset="1" Color="#FF5F5F5F" />
3032
    </LinearGradientBrush>
3033
    <LinearGradientBrush x:Key="ControlInnerBorder_Pressed" StartPoint="0.5,0" EndPoint="0.5,1">
3034
        <GradientStop Color="#FFB69A78" />
3035
        <GradientStop Offset="0.126" Color="#FFFFE17A" />
3036
    </LinearGradientBrush>
3037
    <LinearGradientBrush x:Key="ControlBackground_Pressed" StartPoint="0.5,0" EndPoint="0.5,1">
3038
        <GradientStop Offset="0" Color="#FFFFDCAB" />
3039
        <GradientStop Offset="0.5" Color="#FFFFD18F" />
3040
        <GradientStop Offset="0.5" Color="#FFFE9227" />
3041
        <GradientStop Offset="0" Color="#FFFFBA74" />
3042
    </LinearGradientBrush>
3043
    <ControlTemplate x:Key="ToggleTemplate" TargetType="telerik:RadToggleButton">
3044
        <ContentPresenter
3045
            x:Name="Content"
3046
            Margin="{TemplateBinding Padding}"
3047
            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
3048
            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
3049
            Content="{TemplateBinding Content}"
3050
            ContentTemplate="{TemplateBinding ContentTemplate}" />
3051
    </ControlTemplate>
3052
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)