프로젝트

일반

사용자정보

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

markus / KCOM / Controls / Sample.xaml @ 0cda2a88

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

1
<UserControl x:Name="userControl" x:Class="KCOM.Controls.Sample" 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:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:common="clr-namespace:KCOM.Common"
6
             xmlns:local="clr-namespace:KCOM.Controls" xmlns:System="clr-namespace:System;assembly=mscorlib"
7
             mc:Ignorable="d"  Background="#f5f5f5" xmlns:converter="clr-namespace:KCOM.Common.Converter"
8
             d:DesignHeight="600" d:DesignWidth="200">
9
    <UserControl.Resources>
10
        <Style x:Key="PathButtonStyle" TargetType="Path">
11
            <Setter Property="Width" Value="12"/>
12
            <Setter Property="Height" Value="12"/>
13
            <Setter Property="Fill" Value="White" />
14
            <Setter Property="Stretch" Value="Fill" />
15
            <Setter Property="HorizontalAlignment" Value="Right"/>
16
            <Setter Property="VerticalAlignment" Value="Center" />
17
        </Style>
18
        <converter:CommentTypeImgConverter x:Key="converterTypeImageConverter"/>
19
        <converter:MarkupDataToConverter x:Key="markupDataConverter"/>
20
        <converter:MarginCorrectionConverter x:Key="marginConverter"/>
21
        <DataTemplate x:Key="ThumbnailDataTemplate">
22
            <local:thumbnailControl HorizontalAlignment="Stretch"/>
23
        </DataTemplate>
24
        <SolidColorBrush x:Key="ListTextSelectedColor" x:Shared="False"/>
25
        <SolidColorBrush x:Key="ListSelectedColor" x:Shared="False"/>
26
        <Style x:Key="ItemContainerStyle" TargetType="{x:Type telerik:RadListBoxItem}">
27
            <Setter Property="Template">
28
                <Setter.Value>
29
                    <ControlTemplate TargetType="{x:Type telerik:RadListBoxItem}">
30
                        <Border x:Name="myBorder"
31
                                Padding="0" Margin="0 3 20 0"
32
                                SnapsToDevicePixels="False">
33
                            <Border.Style>
34
                                <Style TargetType="Border">
35
                                    <Setter Property="BorderThickness" Value="3 3 3 3"/>
36
                                    <Setter Property="BorderBrush" Value="Transparent"/>
37
                                </Style>
38
                            </Border.Style>
39
                            <ContentPresenter />
40
                        </Border>
41
                        <ControlTemplate.Triggers>
42
                            <Trigger Property="IsSelected" Value="true">
43
                                <Setter TargetName="myBorder" Property="BorderBrush" Value="{DynamicResource KCOMColor_AccentBrush}"/>
44
                            </Trigger>
45
                        </ControlTemplate.Triggers>
46
                    </ControlTemplate>
47
                </Setter.Value>
48
            </Setter>
49
        </Style>
50
        <ControlTemplate x:Key="RadExpanderControlTemplate1" TargetType="telerik:RadExpander">
51
            <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
52
                <VisualStateManager.VisualStateGroups>
53
                    <VisualStateGroup x:Name="CommonStateGroup">
54
                        <VisualState x:Name="Normal" />
55
                        <VisualState x:Name="Disabled">
56
                            <Storyboard>
57
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
58
                                                               Storyboard.TargetName="InnerCircle"
59
                                                               Storyboard.TargetProperty="Stroke">
60
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
61
                                </ObjectAnimationUsingKeyFrames>
62
                                <DoubleAnimation Storyboard.TargetName="Content"
63
                                                 Storyboard.TargetProperty="Opacity"
64
                                                 To=".5" />
65
                                <DoubleAnimation Storyboard.TargetName="HeaderContent"
66
                                                 Storyboard.TargetProperty="Opacity"
67
                                                 To=".5" />
68
                            </Storyboard>
69
                        </VisualState>
70
                    </VisualStateGroup>
71
                    <VisualStateGroup x:Name="HeaderStateGroup">
72
                        <VisualState x:Name="NormalHeader" />
73
                        <VisualState x:Name="MouseOverHeader">
74
                            <Storyboard>
75
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
76
                                                               Storyboard.TargetName="InnerCircle"
77
                                                               Storyboard.TargetProperty="Stroke">
78
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
79
                                </ObjectAnimationUsingKeyFrames>
80
                            </Storyboard>
81
                        </VisualState>
82
                        <VisualState x:Name="PressedHeader">
83
                            <Storyboard>
84
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
85
                                                               Storyboard.TargetName="InnerCircle"
86
                                                               Storyboard.TargetProperty="Stroke">
87
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
88
                                </ObjectAnimationUsingKeyFrames>
89
                            </Storyboard>
90
                        </VisualState>
91
                    </VisualStateGroup>
92
                    <VisualStateGroup x:Name="HeaderOrientationGroup">
93
                        <VisualState x:Name="HorizontalOrientation">
94
                            <Storyboard>
95
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
96
                                    <DiscreteObjectKeyFrame KeyTime="0">
97
                                        <DiscreteObjectKeyFrame.Value>
98
                                            <RotateTransform Angle="0" />
99
                                        </DiscreteObjectKeyFrame.Value>
100
                                    </DiscreteObjectKeyFrame>
101
                                </ObjectAnimationUsingKeyFrames>
102
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Column)">
103
                                    <DiscreteObjectKeyFrame KeyTime="0">
104
                                        <DiscreteObjectKeyFrame.Value>
105
                                            <System:Int32>1</System:Int32>
106
                                        </DiscreteObjectKeyFrame.Value>
107
                                    </DiscreteObjectKeyFrame>
108
                                </ObjectAnimationUsingKeyFrames>
109
                            </Storyboard>
110
                        </VisualState>
111
                        <VisualState x:Name="VerticalOrientation">
112
                            <Storyboard>
113
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
114
                                    <DiscreteObjectKeyFrame KeyTime="0">
115
                                        <DiscreteObjectKeyFrame.Value>
116
                                            <RotateTransform Angle="90" />
117
                                        </DiscreteObjectKeyFrame.Value>
118
                                    </DiscreteObjectKeyFrame>
119
                                </ObjectAnimationUsingKeyFrames>
120
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Row)">
121
                                    <DiscreteObjectKeyFrame KeyTime="0">
122
                                        <DiscreteObjectKeyFrame.Value>
123
                                            <System:Int32>1</System:Int32>
124
                                        </DiscreteObjectKeyFrame.Value>
125
                                    </DiscreteObjectKeyFrame>
126
                                </ObjectAnimationUsingKeyFrames>
127
                            </Storyboard>
128
                        </VisualState>
129
                    </VisualStateGroup>
130
                    <VisualStateGroup x:Name="ExpandStateGroup">
131
                        <VisualState x:Name="Expanded">
132
                            <Storyboard>
133
                                <DoubleAnimation Duration="0:0:0.2"
134
                                                 Storyboard.TargetName="arrow"
135
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
136
                                                 To="180" />
137
                                <ColorAnimation d:IsOptimized="True"
138
                                                Duration="0"
139
                                                Storyboard.TargetName="OuterCircle"
140
                                                Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)"
141
                                                To="#FF1FA3EB" />
142
                            </Storyboard>
143
                        </VisualState>
144
                        <VisualState x:Name="Collapsed">
145
                            <Storyboard>
146
                                <DoubleAnimation Duration="0:0:0.2"
147
                                                 Storyboard.TargetName="arrow"
148
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
149
                                                 To="0" />
150
                            </Storyboard>
151
                        </VisualState>
152
                    </VisualStateGroup>
153
                    <VisualStateGroup x:Name="ExpandDirectionStates">
154
                        <VisualStateGroup.Transitions>
155
                            <VisualTransition>
156
                                <Storyboard>
157
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
158
                                        <DiscreteObjectKeyFrame KeyTime="0">
159
                                            <DiscreteObjectKeyFrame.Value>
160
                                                <System:Int32>0</System:Int32>
161
                                            </DiscreteObjectKeyFrame.Value>
162
                                        </DiscreteObjectKeyFrame>
163
                                    </ObjectAnimationUsingKeyFrames>
164
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
165
                                        <DiscreteObjectKeyFrame KeyTime="0">
166
                                            <DiscreteObjectKeyFrame.Value>
167
                                                <System:Int32>0</System:Int32>
168
                                            </DiscreteObjectKeyFrame.Value>
169
                                        </DiscreteObjectKeyFrame>
170
                                    </ObjectAnimationUsingKeyFrames>
171
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
172
                                        <DiscreteObjectKeyFrame KeyTime="0">
173
                                            <DiscreteObjectKeyFrame.Value>
174
                                                <System:Int32>0</System:Int32>
175
                                            </DiscreteObjectKeyFrame.Value>
176
                                        </DiscreteObjectKeyFrame>
177
                                    </ObjectAnimationUsingKeyFrames>
178
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
179
                                        <DiscreteObjectKeyFrame KeyTime="0">
180
                                            <DiscreteObjectKeyFrame.Value>
181
                                                <System:Int32>0</System:Int32>
182
                                            </DiscreteObjectKeyFrame.Value>
183
                                        </DiscreteObjectKeyFrame>
184
                                    </ObjectAnimationUsingKeyFrames>
185
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
186
                                        <DiscreteObjectKeyFrame KeyTime="0">
187
                                            <DiscreteObjectKeyFrame.Value>
188
                                                <GridLength>Auto</GridLength>
189
                                            </DiscreteObjectKeyFrame.Value>
190
                                        </DiscreteObjectKeyFrame>
191
                                    </ObjectAnimationUsingKeyFrames>
192
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
193
                                        <DiscreteObjectKeyFrame KeyTime="0">
194
                                            <DiscreteObjectKeyFrame.Value>
195
                                                <GridLength>Auto</GridLength>
196
                                            </DiscreteObjectKeyFrame.Value>
197
                                        </DiscreteObjectKeyFrame>
198
                                    </ObjectAnimationUsingKeyFrames>
199
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
200
                                        <DiscreteObjectKeyFrame KeyTime="0">
201
                                            <DiscreteObjectKeyFrame.Value>
202
                                                <GridLength>Auto</GridLength>
203
                                            </DiscreteObjectKeyFrame.Value>
204
                                        </DiscreteObjectKeyFrame>
205
                                    </ObjectAnimationUsingKeyFrames>
206
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
207
                                        <DiscreteObjectKeyFrame KeyTime="0">
208
                                            <DiscreteObjectKeyFrame.Value>
209
                                                <GridLength>Auto</GridLength>
210
                                            </DiscreteObjectKeyFrame.Value>
211
                                        </DiscreteObjectKeyFrame>
212
                                    </ObjectAnimationUsingKeyFrames>
213
                                </Storyboard>
214
                            </VisualTransition>
215
                        </VisualStateGroup.Transitions>
216
                        <VisualState x:Name="DirectionLeft">
217
                            <Storyboard>
218
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
219
                                    <DiscreteObjectKeyFrame KeyTime="0">
220
                                        <DiscreteObjectKeyFrame.Value>
221
                                            <GridLength>*</GridLength>
222
                                        </DiscreteObjectKeyFrame.Value>
223
                                    </DiscreteObjectKeyFrame>
224
                                </ObjectAnimationUsingKeyFrames>
225
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
226
                                    <DiscreteObjectKeyFrame KeyTime="0">
227
                                        <DiscreteObjectKeyFrame.Value>
228
                                            <GridLength>*</GridLength>
229
                                        </DiscreteObjectKeyFrame.Value>
230
                                    </DiscreteObjectKeyFrame>
231
                                </ObjectAnimationUsingKeyFrames>
232
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
233
                                    <DiscreteObjectKeyFrame KeyTime="0">
234
                                        <DiscreteObjectKeyFrame.Value>
235
                                            <System:Int32>1</System:Int32>
236
                                        </DiscreteObjectKeyFrame.Value>
237
                                    </DiscreteObjectKeyFrame>
238
                                </ObjectAnimationUsingKeyFrames>
239
                                <DoubleAnimation Duration="0:0:0"
240
                                                 Storyboard.TargetName="arrowPanel"
241
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
242
                                                 To="90" />
243
                            </Storyboard>
244
                        </VisualState>
245
                        <VisualState x:Name="DirectionRight">
246
                            <Storyboard>
247
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
248
                                    <DiscreteObjectKeyFrame KeyTime="0">
249
                                        <DiscreteObjectKeyFrame.Value>
250
                                            <GridLength>*</GridLength>
251
                                        </DiscreteObjectKeyFrame.Value>
252
                                    </DiscreteObjectKeyFrame>
253
                                </ObjectAnimationUsingKeyFrames>
254
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
255
                                    <DiscreteObjectKeyFrame KeyTime="0">
256
                                        <DiscreteObjectKeyFrame.Value>
257
                                            <GridLength>*</GridLength>
258
                                        </DiscreteObjectKeyFrame.Value>
259
                                    </DiscreteObjectKeyFrame>
260
                                </ObjectAnimationUsingKeyFrames>
261
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
262
                                    <DiscreteObjectKeyFrame KeyTime="0">
263
                                        <DiscreteObjectKeyFrame.Value>
264
                                            <System:Int32>1</System:Int32>
265
                                        </DiscreteObjectKeyFrame.Value>
266
                                    </DiscreteObjectKeyFrame>
267
                                </ObjectAnimationUsingKeyFrames>
268
                                <DoubleAnimation Duration="0:0:0"
269
                                                 Storyboard.TargetName="arrowPanel"
270
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
271
                                                 To="-90" />
272
                            </Storyboard>
273
                        </VisualState>
274
                        <VisualState x:Name="DirectionUp">
275
                            <Storyboard>
276
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
277
                                    <DiscreteObjectKeyFrame KeyTime="0">
278
                                        <DiscreteObjectKeyFrame.Value>
279
                                            <GridLength>*</GridLength>
280
                                        </DiscreteObjectKeyFrame.Value>
281
                                    </DiscreteObjectKeyFrame>
282
                                </ObjectAnimationUsingKeyFrames>
283
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
284
                                    <DiscreteObjectKeyFrame KeyTime="0">
285
                                        <DiscreteObjectKeyFrame.Value>
286
                                            <GridLength>*</GridLength>
287
                                        </DiscreteObjectKeyFrame.Value>
288
                                    </DiscreteObjectKeyFrame>
289
                                </ObjectAnimationUsingKeyFrames>
290
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
291
                                    <DiscreteObjectKeyFrame KeyTime="0">
292
                                        <DiscreteObjectKeyFrame.Value>
293
                                            <System:Int32>1</System:Int32>
294
                                        </DiscreteObjectKeyFrame.Value>
295
                                    </DiscreteObjectKeyFrame>
296
                                </ObjectAnimationUsingKeyFrames>
297
                                <DoubleAnimation Duration="0:0:0"
298
                                                 Storyboard.TargetName="arrowPanel"
299
                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle"
300
                                                 To="180" />
301
                            </Storyboard>
302
                        </VisualState>
303
                        <VisualState x:Name="DirectionDown">
304
                            <Storyboard>
305
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
306
                                    <DiscreteObjectKeyFrame KeyTime="0">
307
                                        <DiscreteObjectKeyFrame.Value>
308
                                            <GridLength>*</GridLength>
309
                                        </DiscreteObjectKeyFrame.Value>
310
                                    </DiscreteObjectKeyFrame>
311
                                </ObjectAnimationUsingKeyFrames>
312
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
313
                                    <DiscreteObjectKeyFrame KeyTime="0">
314
                                        <DiscreteObjectKeyFrame.Value>
315
                                            <GridLength>*</GridLength>
316
                                        </DiscreteObjectKeyFrame.Value>
317
                                    </DiscreteObjectKeyFrame>
318
                                </ObjectAnimationUsingKeyFrames>
319
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
320
                                    <DiscreteObjectKeyFrame KeyTime="0">
321
                                        <DiscreteObjectKeyFrame.Value>
322
                                            <System:Int32>1</System:Int32>
323
                                        </DiscreteObjectKeyFrame.Value>
324
                                    </DiscreteObjectKeyFrame>
325
                                </ObjectAnimationUsingKeyFrames>
326
                            </Storyboard>
327
                        </VisualState>
328
                    </VisualStateGroup>
329
                </VisualStateManager.VisualStateGroups>
330

    
331
                <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
332
                    <Grid>
333
                        <Grid.RowDefinitions>
334
                            <RowDefinition x:Name="row0" Height="Auto" />
335
                            <RowDefinition x:Name="row1" Height="Auto" />
336
                        </Grid.RowDefinitions>
337
                        <Grid.ColumnDefinitions>
338
                            <ColumnDefinition x:Name="col0" Width="Auto" />
339
                            <ColumnDefinition x:Name="col1" Width="Auto" />
340
                        </Grid.ColumnDefinitions>
341

    
342
                        <telerik:RadToggleButton x:Name="HeaderButton"
343
                                                 HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
344
                                                 VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
345
                                                 HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}"
346
                                                 VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}"
347
                                                 Background="Transparent"
348
                                                 ClickMode="{TemplateBinding ClickMode}"
349
                                                 FontFamily="{TemplateBinding FontFamily}"
350
                                                 FontSize="{TemplateBinding FontSize}"
351
                                                 FontStretch="{TemplateBinding FontStretch}"
352
                                                 FontStyle="{TemplateBinding FontStyle}"
353
                                                 FontWeight="{TemplateBinding FontWeight}"
354
                                                 Foreground="{TemplateBinding Foreground}"
355
                                                 IsChecked="{Binding IsExpanded,
356
                                                                     Mode=TwoWay,
357
                                                                     RelativeSource={RelativeSource TemplatedParent}}"
358
                                                 IsTabStop="{TemplateBinding IsTabStop}"
359
                                                 Padding="{TemplateBinding Padding}"
360
                                                 TabIndex="{TemplateBinding TabIndex}"
361
                                                 Template="{StaticResource ToggleTemplate}">
362

    
363
                            <Grid x:Name="HeaderPanel" Background="Transparent">
364
                                <Grid.RowDefinitions>
365
                                    <RowDefinition Height="Auto" />
366
                                    <RowDefinition Height="*" />
367
                                </Grid.RowDefinitions>
368
                                <Grid.ColumnDefinitions>
369
                                    <ColumnDefinition Width="Auto" />
370
                                    <ColumnDefinition Width="*" />
371
                                </Grid.ColumnDefinitions>
372

    
373
                                <Grid Grid.Row="0"
374
                                      Grid.Column="0"
375
                                      HorizontalAlignment="Left">
376
                                    <Ellipse x:Name="OuterCircle"
377
                                             Width="13"
378
                                             Height="13"
379
                                             HorizontalAlignment="Center"
380
                                             VerticalAlignment="Center"
381
                                             Fill="{StaticResource ControlBackground}"
382
                                             Stroke="#FFD6D4D4" />
383
                                    <Ellipse x:Name="InnerCircle"
384
                                             Width="11"
385
                                             Height="11"
386
                                             Margin="1,2"
387
                                             Stroke="{StaticResource ControlInnerBorder_Normal}" />
388

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

    
420
                            </Grid>
421
                        </telerik:RadToggleButton>
422

    
423
                        <ContentPresenter x:Name="Content"
424
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
425
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
426
                                          Content="{TemplateBinding Content}"
427
                                          ContentTemplate="{TemplateBinding ContentTemplate}"
428
                                          Visibility="Collapsed" />
429
                    </Grid>
430
                </Border>
431
            </Grid>
432
        </ControlTemplate>
433
        <DataTemplate x:Key="CommentSelectTemplate">
434
            <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" telerik:StyleManager.Theme="Windows8">
435
                <StackPanel Orientation="Horizontal">
436
                    <TextBlock Text="{Binding Depart}" />
437
                    <TextBlock Text="/" />
438
                    <TextBlock Text="{Binding UserName}" />
439
                </StackPanel>
440
            </CheckBox>
441
        </DataTemplate>
442
    </UserControl.Resources>
443
    <Grid x:Name="grid" VerticalAlignment="Stretch">
444
        <!--<TextBlock Text="Sort By:"  Foreground="{DynamicResource KCOMColor_MarkerBrush}"/>-->
445
        <telerik:RadTabControl Margin="0,6,0,0" BorderThickness="0" telerik:StyleManager.Theme="VisualStudio2013"  HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
446
                               ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" >
447

    
448
            <telerik:RadTabItem Header="Thumbnail"  HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="12">
449
                <Grid>
450
                    <Grid.RowDefinitions>
451
                        <RowDefinition Height="Auto"/>
452
                        <RowDefinition Height="Auto"/>
453
                        <RowDefinition Height="*"/>
454
                    </Grid.RowDefinitions>
455
                    <telerik:RadPathButton  ContentPlacement="Left"  telerik:StyleManager.Theme="Office2016"  CornerRadius="3"
456
                                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphGrid}, Foreground=White}" Height="24" Width="120" PathStyle="{StaticResource PathButtonStyle}"
457
                                                           Margin="2" Foreground="White" Content="Show All Pages" x:Name="btnPanorama" Click="btnPanorama_Click" Background="#FF0054B9" HorizontalAlignment="Right"/>
458
                    <Border BorderThickness="1" Margin="1" Grid.Row="1" BorderBrush="#FFC9C9C9" Background="White">
459
                        <StackPanel>
460
                            <RadioButton Content="All Pages" IsChecked="True" telerik:StyleManager.Theme="Office2013" FontSize="10" Margin="5,3" x:Name="rdoAllPages"/>
461
                            <RadioButton Content="Favorited Pages"  FontSize="10" Margin="5,3" x:Name="rdoFavoritePages" Checked="rdoFavoritePages_Checked"/>
462
                            <Grid Margin="4.5,0">
463
                                <telerik:RadExpander Name="expCommentPages"
464
                                                 Padding="2" 
465
                                                 telerik:StyleManager.Theme="Office2016"
466
                                                 Template="{StaticResource RadExpanderControlTemplate1}">
467
                                    <telerik:RadExpander.Header>
468
                                        <TextBlock Text="Commented Pages" FontSize="10"  Margin="3,0"/>
469
                                    </telerik:RadExpander.Header>
470
                                    <telerik:RadExpander.Content>
471
                                        <ListBox x:Name="lstSelectComment"
472
                                             BorderBrush="{DynamicResource KCOMColor_ActiveBrush}"
473
                                             BorderThickness="2"
474
                                             ItemTemplate="{StaticResource CommentSelectTemplate}"
475
                                             telerik:StyleManager.Theme="Office2016" />
476
                                    </telerik:RadExpander.Content>
477
                                </telerik:RadExpander>
478
                                <!--  <telerik:RadComboBox ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Select All" FontSize="10" Margin="14,0,0,0" x:Name="cboSelectComment" telerik:StyleManager.Theme="Windows8" BorderBrush="#FFA09E9E" ItemTemplate="{StaticResource CommentSelectTemplate}" SelectAllTextEvent="SelectionChanged"/>  -->
479
                            </Grid>
480
                        </StackPanel>
481
                    </Border>
482
                    <telerik:RadListBox x:Name="ImgListbox" Margin="1"
483
                                        ItemTemplate="{StaticResource ThumbnailDataTemplate}" 
484
                                        Grid.Row="2"         
485
                                        SelectedItem="{Binding}"
486
                                        Background="{DynamicResource KCOMColor_AlternativeBrush}" 
487
                                        ItemContainerStyle="{StaticResource ItemContainerStyle}"
488
                                        BorderBrush="#FFC2C2C2" BorderThickness="0"  
489
                                        SelectedIndex="0"
490
                                        ScrollViewer.HorizontalScrollBarVisibility="Disabled"
491
                                        ScrollViewer.VerticalScrollBarVisibility="Auto"                                        
492
                                        ScrollViewer.CanContentScroll="True"                                        
493
                                        ScrollViewer.IsDeferredScrollingEnabled="True"                                        
494
                                        VirtualizingStackPanel.IsVirtualizing="True"   
495
                                        VirtualizingStackPanel.VirtualizationMode="Recycling"
496
                                        telerik:StyleManager.Theme="Office2016" >
497
                        <telerik:RadListBox.ItemsPanel>
498
                            <ItemsPanelTemplate>
499
                                <VirtualizingStackPanel/>
500
                            </ItemsPanelTemplate>
501
                        </telerik:RadListBox.ItemsPanel>
502
                        <!--<telerik:RadListBox.ItemTemplate>
503
                        <DataTemplate>
504
                            <StackPanel>                               
505
                                <Border BorderThickness="1" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" x:Name="selectBorder">
506
                                    <Image Stretch="UniformToFill" >
507
                                        <Image.Source>
508
                                            <BitmapImage UriSource="{Binding ImageUri}"  DecodePixelWidth="400" />
509
                                        </Image.Source>
510
                                    </Image>
511
                                </Border>
512
                                <TextBlock Text="{Binding PageNumber}" HorizontalAlignment="Center" Margin="0,1,0,0"/>
513
                            </StackPanel>
514
                        </DataTemplate>
515
                    </telerik:RadListBox.ItemTemplate>-->
516
                    </telerik:RadListBox>
517
                </Grid>
518
            </telerik:RadTabItem>
519
            <telerik:RadTabItem Header="Markup List"  HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="12" >
520
                <Grid HorizontalAlignment="Stretch">
521
                    <Grid.ColumnDefinitions>
522
                        <ColumnDefinition Width="*"/>
523
                    </Grid.ColumnDefinitions>
524
                    <Grid.RowDefinitions>
525
                        <RowDefinition Height="Auto"/>
526
                        <RowDefinition Height="Auto"/>
527
                        <RowDefinition Height="*"/>
528
                    </Grid.RowDefinitions>
529
                    <Border BorderThickness="0,0,0,1" BorderBrush="#e6e6e6" Background="#f5f5f5">
530
                        <Grid>
531
                            <Grid.ColumnDefinitions>
532
                                <ColumnDefinition/>
533
                                <ColumnDefinition/>
534
                                <ColumnDefinition/>
535
                            </Grid.ColumnDefinitions>
536
                            <telerik:RadComboBox EmptyText="TYPE" Grid.Column="0"  HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentType"
537
                                                 ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentFilter_SelectionChanged">
538
                                <telerik:RadComboBox.ItemTemplate>
539
                                    <DataTemplate>
540
                                        <Image Source="{Binding Converter={StaticResource converterTypeImageConverter}}" Margin="5" Width="28" Height="28"/>
541
                                    </DataTemplate>
542
                                </telerik:RadComboBox.ItemTemplate>
543
                            </telerik:RadComboBox>
544
                            <telerik:RadComboBox HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentUser"
545
                                             FontSize="10" Grid.Column="1" DisplayMemberPath="UserName" ItemsSource="{Binding UsersCommentPagesList, ElementName=userControl}"
546
                                             SelectionChanged="commentFilter_SelectionChanged" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All"
547
                                             EmptyText="USER">
548
                            </telerik:RadComboBox>
549
                            <telerik:RadComboBox EmptyText="PAGE" Grid.Column="2"  HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentPage"
550
                                                  ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentFilter_SelectionChanged"/>
551
                        </Grid>
552
                    </Border>
553
                    <Border Grid.Row="1" Background="#FFE6E6E6">
554
                        <StackPanel>
555
                            <Border>
556
                                <Grid Height="28" Margin="0,4">
557
                                    <Grid.ColumnDefinitions>
558
                                        <ColumnDefinition Width="*"/>
559
                                        <ColumnDefinition Width="Auto"/>
560
                                    </Grid.ColumnDefinitions>
561
                                    <TextBox  HorizontalAlignment="Stretch" Style="{StaticResource ClearTextBoxStyle}" Margin="2" x:Name="txtSearch"
562
                                              telerik:StyleManager.Theme="Office2016" AcceptsReturn="False" Background="#FFF3F3F3"
563
                                              BorderThickness="1" VerticalContentAlignment="Center" IsTabStop="True" KeyDown="TxtSearch_KeyDown"/>
564
                                    <telerik:RadPathButton Grid.Column="1" ContentPlacement="Left" VerticalContentAlignment="Center" telerik:StyleManager.Theme="Office2016"
565
                                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphZoom}, Foreground=White}"
566
                                                          Width="80" PathStyle="{StaticResource PathButtonStyle}"  CornerRadius="3"
567
                                                           Margin="2" Foreground="White" Content="SEARCH" x:Name="btnSearch" Click="btnSearch_Click" Background="#FF0054B9"/>
568
                                </Grid>
569
                            </Border>
570
                        </StackPanel>
571
                    </Border>
572
                    <Border Grid.Row="1" Background="#f5f5f5" Visibility="Collapsed">
573
                        <StackPanel>
574
                            <Border>
575
                                <Grid>
576
                                    <Grid.ColumnDefinitions>
577
                                        <ColumnDefinition Width="36"/>
578
                                        <ColumnDefinition Width="*"/>
579
                                        <ColumnDefinition Width="Auto"/>
580
                                    </Grid.ColumnDefinitions>
581

    
582
                                    <Image Source="/KCOM;component/Resources/Images/MenuImage_New/arrow.png" Margin="5"/>
583

    
584
                                    <StackPanel Orientation="Vertical" Grid.Column="1" Margin="10" VerticalAlignment="Center">
585
                                        <TextBlock Text="" FontWeight="DemiBold" Foreground="#3d3d3d"/>
586
                                        <TextBlock Text=""/>
587
                                    </StackPanel>
588

    
589

    
590
                                    <Border Background="#FF1258B6" CornerRadius="5" Grid.Column="2" Padding="5" Margin="10">
591
                                        <Button Background="Transparent" Foreground="White" Content="Move" BorderThickness="0"/>
592
                                    </Border>
593
                                </Grid>
594
                            </Border>
595
                        </StackPanel>
596
                    </Border>
597

    
598
                    <Border VerticalAlignment="Stretch" Margin="0" Grid.Row="2" BorderThickness="0,0,0,0.5" BorderBrush="#828282" x:Name="gogo">
599
                        <telerik:RadListBox telerik:StyleManager.Theme="Office2016" Padding="0" Margin="2" HorizontalAlignment="Stretch" x:Name="MarkupList" ScrollViewer.VerticalScrollBarVisibility="Auto"
600
                                            Background="White" ItemsSource="{Binding MarkupInfoSmallList}" Loaded="MarkupList_Loaded">
601
                            <telerik:RadListBox.ItemContainerStyle>
602
                                <Style TargetType="telerik:RadListBoxItem">
603
                                    <Setter Property="Padding" Value="0,0,0,0"/>
604
                                </Style>
605
                            </telerik:RadListBox.ItemContainerStyle>
606
                            <telerik:RadListBox.ItemTemplate>
607
                                <DataTemplate>
608
                                    <StackPanel>
609
                                        <Border BorderBrush="#EBFBFCFD" BorderThickness="1" Margin="1" Padding="1,3">
610
                                            <Grid>
611
                                                <Grid.ColumnDefinitions>
612
                                                    <ColumnDefinition Width="5"/>
613
                                                    <ColumnDefinition Width="36"/>
614
                                                    <ColumnDefinition Width="*"/>
615
                                                    <ColumnDefinition Width="Auto"/>
616
                                                </Grid.ColumnDefinitions>
617
                                                <Border Width="5" Background="#CE3D5DA0">
618
                                                    <Border.Style>
619
                                                        <Style TargetType="Border">
620
                                                            <Setter Property="Visibility" Value="Collapsed"/>
621
                                                            <Style.Triggers>
622
                                                                <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=telerik:RadListBoxItem, AncestorLevel=1}}" Value="True">
623
                                                                    <Setter Property="Visibility" Value="Visible"/>
624
                                                                </DataTrigger>
625
                                                            </Style.Triggers>
626
                                                        </Style>
627
                                                    </Border.Style>
628
                                                </Border>
629
                                                <Image Grid.Column="1" Source="{Binding Data_Type, Converter={StaticResource converterTypeImageConverter}}" Margin="5,0" Width="28" Height="28"/>
630
                                                <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="2" Margin="5,0" VerticalAlignment="Center">
631
                                                    <TextBlock Text="{Binding UserName}" FontWeight="DemiBold" Foreground="#3d3d3d"/>
632
                                                    <StackPanel Orientation="Horizontal">
633
                                                        <TextBlock Text="{Binding PageNumber}"/>
634
                                                        <TextBlock Text=" Page"/>
635
                                                    </StackPanel>
636
                                                </StackPanel>
637
                                                <telerik:RadPathButton Grid.Column="3" ContentPlacement="Left" VerticalContentAlignment="Center" telerik:StyleManager.Theme="Office2016"
638
                                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphFrontElement}, Foreground=White}"
639
                                                          Width="60" Height="28" PathStyle="{StaticResource PathButtonStyle}" CornerRadius="3"
640
                                                           Margin="2" Foreground="White" Content="Move" x:Name="btnSearch" Click="btGotoMarkup_Click" Background="#FF0054B9"  CommandParameter="{Binding}">
641
                                                </telerik:RadPathButton>
642
                                                <!--<telerik:RadButton Background="Transparent" Foreground="White" Content="Move" BorderThickness="0" Click="btGotoMarkup_Click" CommandParameter="{Binding}"/>-->
643
                                            </Grid>
644
                                        </Border>
645
                                    </StackPanel>
646
                                </DataTemplate>
647
                            </telerik:RadListBox.ItemTemplate>
648
                        </telerik:RadListBox>
649
                    </Border>
650
                    <!--<Border VerticalAlignment="Stretch" Margin="0" Grid.Row="1" BorderThickness="0,0,0,0.5" BorderBrush="#828282" Background="White">
651
                        -->
652
                    <!--<Grid VerticalAlignment="Top" Margin="0" Grid.Row="1">
653
                        <Grid.Resources>
654
                            <Style TargetType="TextBlock">
655
                                <Setter Property="Foreground" Value="#828282"/>
656
                            </Style>
657
                        </Grid.Resources>
658
                        <Grid.ColumnDefinitions>
659
                            <ColumnDefinition Width="Auto"/>
660
                            <ColumnDefinition Width="7*"/>
661
                        </Grid.ColumnDefinitions>
662
                        <Grid.RowDefinitions>
663
                            <RowDefinition/>
664
                            <RowDefinition/>
665
                            <RowDefinition/>
666
                        </Grid.RowDefinitions>
667
                        <TextBlock Text="Cloud" Padding="5"/>
668
                        <TextBlock Text="Sejung Kim" Grid.Row="0" Grid.Column="1" Padding="5"/>
669
                        <TextBlock Text="Page 20" Grid.Column="0" Grid.Row="1" Padding="5"/>
670
                        <TextBlock Text="2017/10/17 17:56:51" Grid.Column="1" Grid.Row="1" Padding="5"/>
671
                        <TextBlock Text="Double click to Note." Grid.ColumnSpan="2" Grid.Row="2" Padding="5"/>
672
                    </Grid>-->
673
                    <!--<telerik:RadListBox ItemsSource="{Binding _markupInfoList, Mode=OneWayToSource, Source={x:Static common:ViewerDataModel.Instance}}">
674
                            <telerik:RadListBox.ItemTemplate>
675
                                <DataTemplate>
676
                                    <TextBlock Text="{Binding UserName}"/>
677
                                </DataTemplate>
678
                            </telerik:RadListBox.ItemTemplate>
679
                        </telerik:RadListBox>-->
680
                    <!--
681
                        <TextBlock Text="{Binding MAMA, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}"/>
682
                        
683
                    </Border>-->
684
                </Grid>
685
            </telerik:RadTabItem>
686
            <!--<telerik:RadTabItem HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="9">
687
                <telerik:RadTabItem.Header>
688
                    -->
689
            <!--<telerik:RadRibbonButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="10" Margin="0,0,0,1" Background="#FF0054B9" Foreground="White"
690
                                       BorderThickness="0" CornerRadius="3" Padding="5" x:Name="btnPanorama" Click="btnPanorama_Click"/>-->
691
            <!--
692
                    <telerik:RadPathButton Grid.Column="1" ContentPlacement="Left" VerticalContentAlignment="Center" telerik:StyleManager.Theme="Office2016"
693
                                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphZoom}, Foreground=White}"
694
                                                       FontFamily="{StaticResource TelerikWebUI}" Width="80" PathStyle="{StaticResource PathButtonStyle}"
695
                                                           Margin="2" Foreground="White" Content="Panorama" x:Name="btnPanorama" Click="btnPanorama_Click" Background="#FF0054B9"/>
696
                </telerik:RadTabItem.Header>
697
            </telerik:RadTabItem>-->
698
        </telerik:RadTabControl>
699

    
700
    </Grid>
701
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)