프로젝트

일반

사용자정보

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

markus / KCOM / Controls / Sample.xaml @ f5c6a3d5

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

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

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

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

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

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

    
417
                            </Grid>
418
                        </telerik:RadToggleButton>
419

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

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

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

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

    
592

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

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

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