프로젝트

일반

사용자정보

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

markus / KCOM / Controls / PageNavigator.xaml @ 5c5e04cc

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

1
<UserControl x:Class="KCOM.Controls.PageNavigator" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
2
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
5
             xmlns:System="clr-namespace:System;assembly=mscorlib"
6
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
7
             BorderBrush="#FF484848"
8
             xmlns:Controls="clr-namespace:KCOM.Controls"
9
             xmlns:local="clr-namespace:KCOM.Controls"
10
             mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="300">
11
    <UserControl.Resources>
12
        <DataTemplate x:Key="ThumbnailDataTemplate">
13
            <Grid  RenderTransformOrigin="0.5,0.5">
14
                <Grid.RenderTransform>
15
                    <RotateTransform Angle="{Binding Angle}"/>
16
                </Grid.RenderTransform>
17
                <Image Stretch="Uniform" Source="{Binding ImageUri}" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10">
18
                    <!--<Image.RenderTransform>
19
                    <RotateTransform Angle="{Binding Angle}"/>
20
                </Image.RenderTransform>-->
21
                </Image>
22
            </Grid>
23
            <!--<local:thumbnailControl HorizontalAlignment="Stretch" />-->
24
        </DataTemplate>
25
        
26
        <SolidColorBrush x:Key="ControlBackground" Color="#FFFFFFFF" />
27
        <SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF000000" />
28
        <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF848484" />
29
        <SolidColorBrush x:Key="ControlInnerBorder_Normal" Color="#FFFFFFFF" />
30
        <SolidColorBrush x:Key="ControlElement_Normal" Color="#FF000000" />
31
        <SolidColorBrush x:Key="ControlElement_MouseOver" Color="#FF000000" />
32
        <SolidColorBrush x:Key="ControlInnerBorder_MouseOver" Color="#FFFFFFFF" />
33
        <SolidColorBrush x:Key="ControlInnerBorder_Disabled" Color="Transparent" />
34
        <LinearGradientBrush x:Key="ControlOuterBorder_Pressed" StartPoint="0.5,0" EndPoint="0.5,1">
35
            <GradientStop Color="#FF282828" />
36
            <GradientStop Offset="1" Color="#FF5F5F5F" />
37
        </LinearGradientBrush>
38
        <LinearGradientBrush x:Key="ControlInnerBorder_Pressed" StartPoint="0.5,0" EndPoint="0.5,1">
39
            <GradientStop Color="#FFB69A78" />
40
            <GradientStop Offset="0.126" Color="#FFFFE17A" />
41
        </LinearGradientBrush>
42
        <LinearGradientBrush x:Key="ControlBackground_Pressed" StartPoint="0.5,0" EndPoint="0.5,1">
43
            <GradientStop Offset="0" Color="#FFFFDCAB" />
44
            <GradientStop Offset="0.5" Color="#FFFFD18F" />
45
            <GradientStop Offset="0.5" Color="#FFFE9227" />
46
            <GradientStop Offset="0" Color="#FFFFBA74" />
47
        </LinearGradientBrush>
48
        <ControlTemplate x:Key="ToggleTemplate" TargetType="telerik:RadToggleButton">
49
            <ContentPresenter x:Name="Content"
50
                              Margin="{TemplateBinding Padding}"
51
                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
52
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
53
                              Content="{TemplateBinding Content}"
54
                              ContentTemplate="{TemplateBinding ContentTemplate}" />
55
        </ControlTemplate>
56

    
57
        <ControlTemplate x:Key="RadExpanderControlTemplate" TargetType="telerik:RadExpander">
58
            <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
59

    
60
                <VisualStateManager.VisualStateGroups>
61
                    <VisualStateGroup x:Name="CommonStateGroup">
62
                        <VisualState x:Name="Normal" />
63
                        <VisualState x:Name="Disabled">
64
                            <Storyboard>
65
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
66
                                                               Storyboard.TargetName="InnerCircle"
67
                                                               Storyboard.TargetProperty="Stroke">
68
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
69
                                </ObjectAnimationUsingKeyFrames>
70
                                <DoubleAnimation Storyboard.TargetName="Content"
71
                                                 Storyboard.TargetProperty="Opacity"
72
                                                 To=".5" />
73
                                <DoubleAnimation Storyboard.TargetName="HeaderContent"
74
                                                 Storyboard.TargetProperty="Opacity"
75
                                                 To=".5" />
76
                            </Storyboard>
77
                        </VisualState>
78
                    </VisualStateGroup>
79
                    <VisualStateGroup x:Name="HeaderStateGroup">
80
                        <VisualState x:Name="NormalHeader" />
81
                        <VisualState x:Name="MouseOverHeader">
82
                            <Storyboard>
83
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
84
                                                               Storyboard.TargetName="InnerCircle"
85
                                                               Storyboard.TargetProperty="Stroke">
86
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
87
                                </ObjectAnimationUsingKeyFrames>
88
                            </Storyboard>
89
                        </VisualState>
90
                        <VisualState x:Name="PressedHeader">
91
                            <Storyboard>
92
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
93
                                                               Storyboard.TargetName="InnerCircle"
94
                                                               Storyboard.TargetProperty="Stroke">
95
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
96
                                </ObjectAnimationUsingKeyFrames>
97
                            </Storyboard>
98
                        </VisualState>
99
                    </VisualStateGroup>
100
                    <VisualStateGroup x:Name="HeaderOrientationGroup">
101
                        <VisualState x:Name="HorizontalOrientation">
102
                            <Storyboard>
103
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
104
                                    <DiscreteObjectKeyFrame KeyTime="0">
105
                                        <DiscreteObjectKeyFrame.Value>
106
                                            <RotateTransform Angle="0" />
107
                                        </DiscreteObjectKeyFrame.Value>
108
                                    </DiscreteObjectKeyFrame>
109
                                </ObjectAnimationUsingKeyFrames>
110
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Column)">
111
                                    <DiscreteObjectKeyFrame KeyTime="0">
112
                                        <DiscreteObjectKeyFrame.Value>
113
                                            <System:Int32>1</System:Int32>
114
                                        </DiscreteObjectKeyFrame.Value>
115
                                    </DiscreteObjectKeyFrame>
116
                                </ObjectAnimationUsingKeyFrames>
117
                            </Storyboard>
118
                        </VisualState>
119
                        <VisualState x:Name="VerticalOrientation">
120
                            <Storyboard>
121
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
122
                                    <DiscreteObjectKeyFrame KeyTime="0">
123
                                        <DiscreteObjectKeyFrame.Value>
124
                                            <RotateTransform Angle="90" />
125
                                        </DiscreteObjectKeyFrame.Value>
126
                                    </DiscreteObjectKeyFrame>
127
                                </ObjectAnimationUsingKeyFrames>
128
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Row)">
129
                                    <DiscreteObjectKeyFrame KeyTime="0">
130
                                        <DiscreteObjectKeyFrame.Value>
131
                                            <System:Int32>1</System:Int32>
132
                                        </DiscreteObjectKeyFrame.Value>
133
                                    </DiscreteObjectKeyFrame>
134
                                </ObjectAnimationUsingKeyFrames>
135
                            </Storyboard>
136
                        </VisualState>
137
                    </VisualStateGroup>
138
                    <VisualStateGroup x:Name="ExpandStateGroup">
139
                        <VisualState x:Name="Expanded">
140
                            <Storyboard>
141
                                <DoubleAnimation Duration="0:0:0.2"
142
                                                 Storyboard.TargetName="arrow"
143
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
144
                                                 To="180" />
145
                                <ColorAnimation d:IsOptimized="True"
146
                                                Duration="0"
147
                                                Storyboard.TargetName="OuterCi rcle"
148
                                                Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)"
149
                                                To="#FF1FA3EB" />
150
                            </Storyboard>
151
                        </VisualState>
152
                        <VisualState x:Name="Collapsed">
153
                            <Storyboard>
154
                                <DoubleAnimation Duration="0:0:0.2"
155
                                                 Storyboard.TargetName="arrow"
156
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
157
                                                 To="0" />
158
                            </Storyboard>
159
                        </VisualState>
160
                    </VisualStateGroup>
161
                    <VisualStateGroup x:Name="ExpandDirectionStates">
162
                        <VisualStateGroup.Transitions>
163
                            <VisualTransition>
164
                                <Storyboard>
165
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
166
                                        <DiscreteObjectKeyFrame KeyTime="0">
167
                                            <DiscreteObjectKeyFrame.Value>
168
                                                <System:Int32>0</System:Int32>
169
                                            </DiscreteObjectKeyFrame.Value>
170
                                        </DiscreteObjectKeyFrame>
171
                                    </ObjectAnimationUsingKeyFrames>
172
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
173
                                        <DiscreteObjectKeyFrame KeyTime="0">
174
                                            <DiscreteObjectKeyFrame.Value>
175
                                                <System:Int32>0</System:Int32>
176
                                            </DiscreteObjectKeyFrame.Value>
177
                                        </DiscreteObjectKeyFrame>
178
                                    </ObjectAnimationUsingKeyFrames>
179
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
180
                                        <DiscreteObjectKeyFrame KeyTime="0">
181
                                            <DiscreteObjectKeyFrame.Value>
182
                                                <System:Int32>0</System:Int32>
183
                                            </DiscreteObjectKeyFrame.Value>
184
                                        </DiscreteObjectKeyFrame>
185
                                    </ObjectAnimationUsingKeyFrames>
186
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
187
                                        <DiscreteObjectKeyFrame KeyTime="0">
188
                                            <DiscreteObjectKeyFrame.Value>
189
                                                <System:Int32>0</System:Int32>
190
                                            </DiscreteObjectKeyFrame.Value>
191
                                        </DiscreteObjectKeyFrame>
192
                                    </ObjectAnimationUsingKeyFrames>
193
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
194
                                        <DiscreteObjectKeyFrame KeyTime="0">
195
                                            <DiscreteObjectKeyFrame.Value>
196
                                                <GridLength>Auto</GridLength>
197
                                            </DiscreteObjectKeyFrame.Value>
198
                                        </DiscreteObjectKeyFrame>
199
                                    </ObjectAnimationUsingKeyFrames>
200
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
201
                                        <DiscreteObjectKeyFrame KeyTime="0">
202
                                            <DiscreteObjectKeyFrame.Value>
203
                                                <GridLength>Auto</GridLength>
204
                                            </DiscreteObjectKeyFrame.Value>
205
                                        </DiscreteObjectKeyFrame>
206
                                    </ObjectAnimationUsingKeyFrames>
207
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
208
                                        <DiscreteObjectKeyFrame KeyTime="0">
209
                                            <DiscreteObjectKeyFrame.Value>
210
                                                <GridLength>Auto</GridLength>
211
                                            </DiscreteObjectKeyFrame.Value>
212
                                        </DiscreteObjectKeyFrame>
213
                                    </ObjectAnimationUsingKeyFrames>
214
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
215
                                        <DiscreteObjectKeyFrame KeyTime="0">
216
                                            <DiscreteObjectKeyFrame.Value>
217
                                                <GridLength>Auto</GridLength>
218
                                            </DiscreteObjectKeyFrame.Value>
219
                                        </DiscreteObjectKeyFrame>
220
                                    </ObjectAnimationUsingKeyFrames>
221
                                </Storyboard>
222
                            </VisualTransition>
223
                        </VisualStateGroup.Transitions>
224
                        <VisualState x:Name="DirectionLeft">
225
                            <Storyboard>
226
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
227
                                    <DiscreteObjectKeyFrame KeyTime="0">
228
                                        <DiscreteObjectKeyFrame.Value>
229
                                            <GridLength>*</GridLength>
230
                                        </DiscreteObjectKeyFrame.Value>
231
                                    </DiscreteObjectKeyFrame>
232
                                </ObjectAnimationUsingKeyFrames>
233
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
234
                                    <DiscreteObjectKeyFrame KeyTime="0">
235
                                        <DiscreteObjectKeyFrame.Value>
236
                                            <GridLength>*</GridLength>
237
                                        </DiscreteObjectKeyFrame.Value>
238
                                    </DiscreteObjectKeyFrame>
239
                                </ObjectAnimationUsingKeyFrames>
240
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
241
                                    <DiscreteObjectKeyFrame KeyTime="0">
242
                                        <DiscreteObjectKeyFrame.Value>
243
                                            <System:Int32>1</System:Int32>
244
                                        </DiscreteObjectKeyFrame.Value>
245
                                    </DiscreteObjectKeyFrame>
246
                                </ObjectAnimationUsingKeyFrames>
247
                                <DoubleAnimation Duration="0:0:0"
248
                                                 Storyboard.TargetName="arrowPanel"
249
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
250
                                                 To="90" />
251
                            </Storyboard>
252
                        </VisualState>
253
                        <VisualState x:Name="DirectionRight">
254
                            <Storyboard>
255
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
256
                                    <DiscreteObjectKeyFrame KeyTime="0">
257
                                        <DiscreteObjectKeyFrame.Value>
258
                                            <GridLength>*</GridLength>
259
                                        </DiscreteObjectKeyFrame.Value>
260
                                    </DiscreteObjectKeyFrame>
261
                                </ObjectAnimationUsingKeyFrames>
262
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
263
                                    <DiscreteObjectKeyFrame KeyTime="0">
264
                                        <DiscreteObjectKeyFrame.Value>
265
                                            <GridLength>*</GridLength>
266
                                        </DiscreteObjectKeyFrame.Value>
267
                                    </DiscreteObjectKeyFrame>
268
                                </ObjectAnimationUsingKeyFrames>
269
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
270
                                    <DiscreteObjectKeyFrame KeyTime="0">
271
                                        <DiscreteObjectKeyFrame.Value>
272
                                            <System:Int32>1</System:Int32>
273
                                        </DiscreteObjectKeyFrame.Value>
274
                                    </DiscreteObjectKeyFrame>
275
                                </ObjectAnimationUsingKeyFrames>
276
                                <DoubleAnimation Duration="0:0:0"
277
                                                 Storyboard.TargetName="arrowPanel"
278
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
279
                                                 To="-90" />
280
                            </Storyboard>
281
                        </VisualState>
282
                        <VisualState x:Name="DirectionUp">
283
                            <Storyboard>
284
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
285
                                    <DiscreteObjectKeyFrame KeyTime="0">
286
                                        <DiscreteObjectKeyFrame.Value>
287
                                            <GridLength>*</GridLength>
288
                                        </DiscreteObjectKeyFrame.Value>
289
                                    </DiscreteObjectKeyFrame>
290
                                </ObjectAnimationUsingKeyFrames>
291
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
292
                                    <DiscreteObjectKeyFrame KeyTime="0">
293
                                        <DiscreteObjectKeyFrame.Value>
294
                                            <GridLength>*</GridLength>
295
                                        </DiscreteObjectKeyFrame.Value>
296
                                    </DiscreteObjectKeyFrame>
297
                                </ObjectAnimationUsingKeyFrames>
298
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
299
                                    <DiscreteObjectKeyFrame KeyTime="0">
300
                                        <DiscreteObjectKeyFrame.Value>
301
                                            <System:Int32>1</System:Int32>
302
                                        </DiscreteObjectKeyFrame.Value>
303
                                    </DiscreteObjectKeyFrame>
304
                                </ObjectAnimationUsingKeyFrames>
305
                                <DoubleAnimation Duration="0:0:0"
306
                                                 Storyboard.TargetName="arrowPanel"
307
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
308
                                                 To="180" />
309
                            </Storyboard>
310
                        </VisualState>
311
                        <VisualState x:Name="DirectionDown">
312
                            <Storyboard>
313
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
314
                                    <DiscreteObjectKeyFrame KeyTime="0">
315
                                        <DiscreteObjectKeyFrame.Value>
316
                                            <GridLength>*</GridLength>
317
                                        </DiscreteObjectKeyFrame.Value>
318
                                    </DiscreteObjectKeyFrame>
319
                                </ObjectAnimationUsingKeyFrames>
320
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
321
                                    <DiscreteObjectKeyFrame KeyTime="0">
322
                                        <DiscreteObjectKeyFrame.Value>
323
                                            <GridLength>*</GridLength>
324
                                        </DiscreteObjectKeyFrame.Value>
325
                                    </DiscreteObjectKeyFrame>
326
                                </ObjectAnimationUsingKeyFrames>
327
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
328
                                    <DiscreteObjectKeyFrame KeyTime="0">
329
                                        <DiscreteObjectKeyFrame.Value>
330
                                            <System:Int32>1</System:Int32>
331
                                        </DiscreteObjectKeyFrame.Value>
332
                                    </DiscreteObjectKeyFrame>
333
                                </ObjectAnimationUsingKeyFrames>
334
                            </Storyboard>
335
                        </VisualState>
336
                    </VisualStateGroup>
337
                </VisualStateManager.VisualStateGroups>
338

    
339
                <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
340
                    <Grid>
341
                        <Grid.RowDefinitions>
342
                            <RowDefinition x:Name="row0" Height="Auto" />
343
                            <RowDefinition x:Name="row1" Height="Auto" />
344
                        </Grid.RowDefinitions>
345
                        <Grid.ColumnDefinitions>
346
                            <ColumnDefinition x:Name="col0" Width="Auto" />
347
                            <ColumnDefinition x:Name="col1" Width="Auto" />
348
                        </Grid.ColumnDefinitions>
349

    
350
                        <telerik:RadToggleButton x:Name="HeaderButton"
351
                                                 HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
352
                                                 VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
353
                                                 HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}"
354
                                                 VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}"
355
                                                 Background="Transparent"
356
                                                 ClickMode="{TemplateBinding ClickMode}"
357
                                                 FontFamily="{TemplateBinding FontFamily}"
358
                                                 FontSize="{TemplateBinding FontSize}"
359
                                                 FontStretch="{TemplateBinding FontStretch}"
360
                                                 FontStyle="{TemplateBinding FontStyle}"
361
                                                 FontWeight="{TemplateBinding FontWeight}"
362
                                                 Foreground="{TemplateBinding Foreground}"
363
                                                 IsChecked="{Binding IsExpanded,
364
                                                                     Mode=TwoWay,
365
                                                                     RelativeSource={RelativeSource TemplatedParent}}"
366
                                                 IsTabStop="{TemplateBinding IsTabStop}"
367
                                                 Padding="{TemplateBinding Padding}"
368
                                                 TabIndex="{TemplateBinding TabIndex}"
369
                                                 Template="{StaticResource ToggleTemplate}">
370

    
371
                            <Grid x:Name="HeaderPanel" Background="Transparent">
372
                                <Grid.RowDefinitions>
373
                                    <RowDefinition Height="Auto" />
374
                                    <RowDefinition Height="*" />
375
                                </Grid.RowDefinitions>
376
                                <Grid.ColumnDefinitions>
377
                                    <ColumnDefinition Width="Auto" />
378
                                    <ColumnDefinition Width="*" />
379
                                </Grid.ColumnDefinitions>
380

    
381
                                <Grid Grid.Row="0"
382
                                      Grid.Column="0"
383
                                      HorizontalAlignment="Left">
384
                                    <Ellipse x:Name="OuterCircle"
385
                                             Width="13"
386
                                             Height="13"
387
                                             HorizontalAlignment="Center"
388
                                             VerticalAlignment="Center"
389
                                             Fill="{StaticResource ControlBackground}"
390
                                             Stroke="#FFD6D4D4" />
391
                                    <Ellipse x:Name="InnerCircle"
392
                                             Width="11"
393
                                             Height="11"
394
                                             Margin="1,2"
395
                                             Stroke="{StaticResource ControlInnerBorder_Normal}" />
396

    
397
                                    <Grid x:Name="arrowPanel"
398
                                          Width="7"
399
                                          Height="4"
400
                                          RenderTransformOrigin=".5 .5">
401
                                        <Grid.RenderTransform>
402
                                            <RotateTransform />
403
                                        </Grid.RenderTransform>
404
                                        <Path x:Name="arrow"
405
                                              Data="M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z"
406
                                              Fill="#FF25A0DA"
407
                                              RenderTransformOrigin="0.5,0.5"
408
                                              Stretch="Fill">
409
                                            <Path.RenderTransform>
410
                                                <RotateTransform Angle="0" />
411
                                            </Path.RenderTransform>
412
                                        </Path>
413
                                    </Grid>
414
                                </Grid>
415
                                <telerik:LayoutTransformControl x:Name="HeaderContentTransform"
416
                                                                Grid.Row="0"
417
                                                                Grid.Column="0"
418
                                                                RenderTransformOrigin=".5 .5">
419
                                    <ContentPresenter x:Name="HeaderContent"
420
                                                      Grid.Column="1"
421
                                                      Margin="3,0,0,0"
422
                                                      HorizontalAlignment="Stretch"
423
                                                      VerticalAlignment="Stretch"
424
                                                      Content="{TemplateBinding Header}"
425
                                                      ContentTemplate="{TemplateBinding HeaderTemplate}" />
426
                                </telerik:LayoutTransformControl>
427

    
428
                            </Grid>
429
                        </telerik:RadToggleButton>
430

    
431
                        <ContentPresenter x:Name="Content"
432
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
433
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
434
                                          Content="{TemplateBinding Content}"
435
                                          ContentTemplate="{TemplateBinding ContentTemplate}"
436
                                          Visibility="Collapsed" />
437
                    </Grid>
438
                </Border>
439
            </Grid>
440

    
441
        </ControlTemplate>
442
    </UserControl.Resources>
443
    <Grid>
444
        <Grid.RowDefinitions>
445
            <RowDefinition Height="Auto" />
446
            <RowDefinition Height="Auto" />
447
            <RowDefinition Height="Auto" />
448
            <RowDefinition />
449
        </Grid.RowDefinitions>
450

    
451
        <!--<Border>
452
            <StackPanel Orientation="Horizontal">
453
                <TextBlock Text="Page Control:" Foreground="{DynamicResource KCOMColor_IconBrush}" VerticalAlignment="Center"/>
454
                <telerik:RadButton Content="LL" Margin="5"/>
455
                <telerik:RadButton Content="LE" Margin="5"/>
456
                <telerik:RadButton Content="RE" Margin="5"/>
457
                <telerik:RadButton Content="RR" Margin="5"/>
458
            </StackPanel>
459
        </Border>
460

461
        <Border Grid.Row="1">
462
            <Grid>
463
                <Grid Grid.Column="0" HorizontalAlignment="Center">
464
                    <Grid.ColumnDefinitions>
465
                        <ColumnDefinition />
466
                        <ColumnDefinition />
467
                        <ColumnDefinition />
468
                    </Grid.ColumnDefinitions>
469
                    <TextBlock x:Name="txtCurentPageNo"
470
                                       FontSize="12"
471
                                       FontStretch="Normal"
472
                                       FontStyle="Italic"
473
                                       Foreground="White"
474
                                       Text="0" />
475
                    <TextBlock Grid.Column="1"
476
                                       Foreground="White"
477
                                       Text="/" />
478
                    <TextBlock x:Name="txtTotPageNo"
479
                                       Grid.Column="2"
480
                                       FontSize="12"
481
                                       FontStretch="Normal"
482
                                       FontStyle="Italic"
483
                                       Foreground="White"
484
                                       Text="0" />
485

486
                    <TextBlock x:Name="txtThumbCount"
487
                                   Grid.Column="1"
488
                                   HorizontalAlignment="Right"
489
                                   VerticalAlignment="Center"
490
                                   FontWeight="Bold"
491
                                   Foreground="Yellow"
492
                                   Text=""
493
                                   Visibility="Collapsed" />
494
                </Grid>
495
            </Grid>
496
        </Border>
497

498
        <Grid Grid.Row="2" HorizontalAlignment="Stretch" Height="30">
499
            <Grid.ColumnDefinitions>
500
                <ColumnDefinition/>
501
                <ColumnDefinition/>
502
                <ColumnDefinition/>
503
                <ColumnDefinition/>
504
            </Grid.ColumnDefinitions>
505
            <telerik:RadButton Content="LL" Margin="5,0"/>
506
            <telerik:RadButton Content="LE" Margin="5,0" Grid.Column="1"/>
507
            <telerik:RadButton Content="RE" Margin="5,0" Grid.Column="2"/>
508
            <telerik:RadButton Content="RR" Margin="5,0" Grid.Column="3"/>
509
        </Grid>
510

511
        <telerik:RadListBox x:Name="ImgListbox"
512
                 Grid.Row="3"
513
                 Background="{DynamicResource KCOMColor_AlternativeBrush}"
514
                 BorderBrush="#FFC2C2C2" BorderThickness="0" Margin="5"
515
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
516
                 SelectionChanged="ImgListbox_SelectionChanged"
517
                 telerik:StyleManager.Theme="Office2016">
518
            <telerik:RadListBox.ItemTemplate>
519
                <DataTemplate>
520
                    <Image Stretch="Uniform" Source="{Binding ImageUri}"/>
521
                </DataTemplate>
522
            </telerik:RadListBox.ItemTemplate>
523
        </telerik:RadListBox>-->
524

    
525

    
526
        <Border>
527
            <StackPanel>
528
                <RadioButton Content="All Pages" telerik:StyleManager.Theme="Office2016"/>
529
                <RadioButton Content="Favorite Pages" telerik:StyleManager.Theme="Office2016"/>
530
                <Grid>
531
                    <telerik:RadExpander Padding="1,0,0,0" telerik:StyleManager.Theme="Office2016"
532
                                         Template="{StaticResource RadExpanderControlTemplate}">
533
                        <telerik:RadExpander.Header>
534
                            <TextBlock Text="Commented Pages" />
535
                        </telerik:RadExpander.Header>
536
                        <telerik:RadExpander.Content>
537
                            <ListBox x:Name="lstSelectComment"
538
                                             BorderThickness="2"
539
                                             telerik:StyleManager.Theme="Office2016" >
540
                                <ListBox.BorderBrush>
541
                                    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.MenuHighlightColorKey}}"/>
542
                                </ListBox.BorderBrush>
543
                            </ListBox>
544
                        </telerik:RadExpander.Content>
545
                    </telerik:RadExpander>
546
                </Grid>
547
            </StackPanel>
548
        </Border>
549
        <Border Grid.Row="1"
550
                        Grid.ColumnSpan="2"
551
                        Background="{DynamicResource KCOMColor_ActiveBrush}"
552
                        BorderBrush="#FF969696"
553
                        BorderThickness="1">
554
            <Grid>
555
                <Grid.ColumnDefinitions>
556
                    <ColumnDefinition Width="*" />
557
                    <ColumnDefinition Width="Auto" />
558
                </Grid.ColumnDefinitions>
559
                <Grid Grid.Column="0" HorizontalAlignment="Center">
560
                    <Grid.ColumnDefinitions>
561
                        <ColumnDefinition />
562
                        <ColumnDefinition />
563
                        <ColumnDefinition />
564
                    </Grid.ColumnDefinitions>
565
                    <TextBlock x:Name="txtCurentPageNo"
566
                                       FontSize="12"
567
                                       FontStretch="Normal"
568
                                       FontStyle="Italic"
569
                                       Foreground="White"
570
                                       Text="0" />
571
                    <TextBlock Grid.Column="1"
572
                                       Foreground="White"
573
                                       Text="/" />
574
                    <TextBlock x:Name="txtTotPageNo"
575
                                       Grid.Column="2"
576
                                       FontSize="12"
577
                                       FontStretch="Normal"
578
                                       FontStyle="Italic"
579
                                       Foreground="White"
580
                                       Text="0" />
581
                </Grid>
582
                <TextBlock x:Name="txtThumbCount"
583
                                   Grid.Column="1"
584
                                   HorizontalAlignment="Right"
585
                                   VerticalAlignment="Center"
586
                                   FontWeight="Bold"
587
                                   Foreground="Yellow"
588
                                   Text=""
589
                                   Visibility="Collapsed" />
590
            </Grid>
591
        </Border>
592
        <Grid Grid.Row="2" HorizontalAlignment="Stretch" Height="30">
593
            <Grid.ColumnDefinitions>
594
                <ColumnDefinition/>
595
                <ColumnDefinition/>
596
                <ColumnDefinition/>
597
                <ColumnDefinition/>
598
            </Grid.ColumnDefinitions>
599
            <telerik:RadButton Content="LL" Margin="5,0"/>
600
            <telerik:RadButton Content="LE" Margin="5,0" Grid.Column="1"/>
601
            <telerik:RadButton Content="RE" Margin="5,0" Grid.Column="2"/>
602
            <telerik:RadButton Content="RR" Margin="5,0" Grid.Column="3"/>
603
        </Grid>
604
        <ListBox x:Name="ImgListbox"
605
                 Grid.Row="3" VirtualizingStackPanel.IsVirtualizing="True"
606
                 Background="{DynamicResource KCOMColor_AlternativeBrush}"
607
                 BorderBrush="#FFC2C2C2" BorderThickness="0" Margin="5"
608
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
609
                 SelectionChanged="ImgListbox_SelectionChanged"
610
                 telerik:StyleManager.Theme="Office2016" VirtualizingStackPanel.VirtualizationMode="Recycling">
611
            <ListBox.ItemsPanel>
612
                <ItemsPanelTemplate>
613
                    <!--<StackPanel/>
614
                    If StackPanel was used, the memory consumed was over 2GB and dead slow.
615
                    -->
616
                    <VirtualizingStackPanel/>
617
                </ItemsPanelTemplate>
618
            </ListBox.ItemsPanel>
619
            <ListBox.ItemTemplate>
620
                <DataTemplate>
621
                    <Image Stretch="Uniform" Source="{Binding ImageUri,IsAsync=False}" Height="150" Width="150"/>
622
                </DataTemplate>
623
            </ListBox.ItemTemplate>
624
        </ListBox>
625
    </Grid>
626
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)