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" AllowDrop="False">
|
10
|
<UserControl.Resources>
|
11
|
<converter:ColorListToBrushConverter x:Key="ColorListToBrushConverter"/>
|
12
|
<converter:CommentTypeImgConverter x:Key="converterTypeImageConverter"/>
|
13
|
<converter:MarkupDataToConverter x:Key="markupDataConverter"/>
|
14
|
<converter:MarginCorrectionConverter x:Key="marginConverter"/>
|
15
|
<SolidColorBrush x:Key="ListTextSelectedColor" x:Shared="False"/>
|
16
|
<SolidColorBrush x:Key="ListSelectedColor" x:Shared="False"/>
|
17
|
<Style x:Key="ItemContainerStyle" TargetType="{x:Type telerik:RadListBoxItem}">
|
18
|
<Setter Property="Template">
|
19
|
<Setter.Value>
|
20
|
<ControlTemplate TargetType="{x:Type telerik:RadListBoxItem}">
|
21
|
<Border x:Name="myBorder" VerticalAlignment="Center"
|
22
|
Padding="0" Margin="0"
|
23
|
SnapsToDevicePixels="False">
|
24
|
<Border.Style>
|
25
|
<Style TargetType="{x:Type Border}">
|
26
|
<Setter Property="BorderThickness" Value="3 3 3 3"/>
|
27
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
28
|
</Style>
|
29
|
</Border.Style>
|
30
|
<ContentPresenter Margin="2"/>
|
31
|
</Border>
|
32
|
<ControlTemplate.Triggers>
|
33
|
<Trigger Property="IsSelected" Value="true">
|
34
|
<Setter TargetName="myBorder" Property="BorderBrush" Value="{DynamicResource KCOMColor_AccentBrush}"/>
|
35
|
</Trigger>
|
36
|
</ControlTemplate.Triggers>
|
37
|
</ControlTemplate>
|
38
|
</Setter.Value>
|
39
|
</Setter>
|
40
|
|
41
|
|
42
|
|
43
|
|
44
|
|
45
|
</Style>
|
46
|
<ControlTemplate x:Key="RadExpanderControlTemplate1" TargetType="{x:Type telerik:RadExpander}">
|
47
|
<Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
|
48
|
<VisualStateManager.VisualStateGroups>
|
49
|
<VisualStateGroup x:Name="CommonStateGroup">
|
50
|
<VisualState x:Name="Normal" />
|
51
|
<VisualState x:Name="Disabled">
|
52
|
<Storyboard>
|
53
|
<ObjectAnimationUsingKeyFrames Duration="0:0:0"
|
54
|
Storyboard.TargetName="InnerCircle"
|
55
|
Storyboard.TargetProperty="Stroke">
|
56
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
|
57
|
</ObjectAnimationUsingKeyFrames>
|
58
|
<DoubleAnimation Storyboard.TargetName="Content"
|
59
|
Storyboard.TargetProperty="Opacity"
|
60
|
To=".5" />
|
61
|
<DoubleAnimation Storyboard.TargetName="HeaderContent"
|
62
|
Storyboard.TargetProperty="Opacity"
|
63
|
To=".5" />
|
64
|
</Storyboard>
|
65
|
</VisualState>
|
66
|
</VisualStateGroup>
|
67
|
<VisualStateGroup x:Name="HeaderStateGroup">
|
68
|
<VisualState x:Name="NormalHeader" />
|
69
|
<VisualState x:Name="MouseOverHeader">
|
70
|
<Storyboard>
|
71
|
<ObjectAnimationUsingKeyFrames Duration="0:0:0"
|
72
|
Storyboard.TargetName="InnerCircle"
|
73
|
Storyboard.TargetProperty="Stroke">
|
74
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
|
75
|
</ObjectAnimationUsingKeyFrames>
|
76
|
</Storyboard>
|
77
|
</VisualState>
|
78
|
<VisualState x:Name="PressedHeader">
|
79
|
<Storyboard>
|
80
|
<ObjectAnimationUsingKeyFrames Duration="0:0:0"
|
81
|
Storyboard.TargetName="InnerCircle"
|
82
|
Storyboard.TargetProperty="Stroke">
|
83
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
|
84
|
</ObjectAnimationUsingKeyFrames>
|
85
|
</Storyboard>
|
86
|
</VisualState>
|
87
|
</VisualStateGroup>
|
88
|
<VisualStateGroup x:Name="HeaderOrientationGroup">
|
89
|
<VisualState x:Name="HorizontalOrientation">
|
90
|
<Storyboard>
|
91
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
|
92
|
<DiscreteObjectKeyFrame KeyTime="0">
|
93
|
<DiscreteObjectKeyFrame.Value>
|
94
|
<RotateTransform Angle="0" />
|
95
|
</DiscreteObjectKeyFrame.Value>
|
96
|
</DiscreteObjectKeyFrame>
|
97
|
</ObjectAnimationUsingKeyFrames>
|
98
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Column)">
|
99
|
<DiscreteObjectKeyFrame KeyTime="0">
|
100
|
<DiscreteObjectKeyFrame.Value>
|
101
|
<System:Int32>1</System:Int32>
|
102
|
</DiscreteObjectKeyFrame.Value>
|
103
|
</DiscreteObjectKeyFrame>
|
104
|
</ObjectAnimationUsingKeyFrames>
|
105
|
</Storyboard>
|
106
|
</VisualState>
|
107
|
<VisualState x:Name="VerticalOrientation">
|
108
|
<Storyboard>
|
109
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
|
110
|
<DiscreteObjectKeyFrame KeyTime="0">
|
111
|
<DiscreteObjectKeyFrame.Value>
|
112
|
<RotateTransform Angle="90" />
|
113
|
</DiscreteObjectKeyFrame.Value>
|
114
|
</DiscreteObjectKeyFrame>
|
115
|
</ObjectAnimationUsingKeyFrames>
|
116
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Row)">
|
117
|
<DiscreteObjectKeyFrame KeyTime="0">
|
118
|
<DiscreteObjectKeyFrame.Value>
|
119
|
<System:Int32>1</System:Int32>
|
120
|
</DiscreteObjectKeyFrame.Value>
|
121
|
</DiscreteObjectKeyFrame>
|
122
|
</ObjectAnimationUsingKeyFrames>
|
123
|
</Storyboard>
|
124
|
</VisualState>
|
125
|
</VisualStateGroup>
|
126
|
<VisualStateGroup x:Name="ExpandStateGroup">
|
127
|
<VisualState x:Name="Expanded">
|
128
|
<Storyboard>
|
129
|
<DoubleAnimation Duration="0:0:0.2"
|
130
|
Storyboard.TargetName="arrow"
|
131
|
Storyboard.TargetProperty="(UIElement.RenderTransform).Angle"
|
132
|
To="180" />
|
133
|
<ColorAnimation
|
134
|
Duration="0"
|
135
|
Storyboard.TargetName="OuterCircle"
|
136
|
Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)"
|
137
|
To="#FF1FA3EB" />
|
138
|
</Storyboard>
|
139
|
</VisualState>
|
140
|
<VisualState x:Name="Collapsed">
|
141
|
<Storyboard>
|
142
|
<DoubleAnimation Duration="0:0:0.2"
|
143
|
Storyboard.TargetName="arrow"
|
144
|
Storyboard.TargetProperty="(UIElement.RenderTransform).Angle"
|
145
|
To="0" />
|
146
|
</Storyboard>
|
147
|
</VisualState>
|
148
|
</VisualStateGroup>
|
149
|
<VisualStateGroup x:Name="ExpandDirectionStates">
|
150
|
<VisualStateGroup.Transitions>
|
151
|
<VisualTransition>
|
152
|
<Storyboard>
|
153
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
|
154
|
<DiscreteObjectKeyFrame KeyTime="0">
|
155
|
<DiscreteObjectKeyFrame.Value>
|
156
|
<System:Int32>0</System:Int32>
|
157
|
</DiscreteObjectKeyFrame.Value>
|
158
|
</DiscreteObjectKeyFrame>
|
159
|
</ObjectAnimationUsingKeyFrames>
|
160
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
|
161
|
<DiscreteObjectKeyFrame KeyTime="0">
|
162
|
<DiscreteObjectKeyFrame.Value>
|
163
|
<System:Int32>0</System:Int32>
|
164
|
</DiscreteObjectKeyFrame.Value>
|
165
|
</DiscreteObjectKeyFrame>
|
166
|
</ObjectAnimationUsingKeyFrames>
|
167
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
|
168
|
<DiscreteObjectKeyFrame KeyTime="0">
|
169
|
<DiscreteObjectKeyFrame.Value>
|
170
|
<System:Int32>0</System:Int32>
|
171
|
</DiscreteObjectKeyFrame.Value>
|
172
|
</DiscreteObjectKeyFrame>
|
173
|
</ObjectAnimationUsingKeyFrames>
|
174
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
|
175
|
<DiscreteObjectKeyFrame KeyTime="0">
|
176
|
<DiscreteObjectKeyFrame.Value>
|
177
|
<System:Int32>0</System:Int32>
|
178
|
</DiscreteObjectKeyFrame.Value>
|
179
|
</DiscreteObjectKeyFrame>
|
180
|
</ObjectAnimationUsingKeyFrames>
|
181
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
|
182
|
<DiscreteObjectKeyFrame KeyTime="0">
|
183
|
<DiscreteObjectKeyFrame.Value>
|
184
|
<GridLength>Auto</GridLength>
|
185
|
</DiscreteObjectKeyFrame.Value>
|
186
|
</DiscreteObjectKeyFrame>
|
187
|
</ObjectAnimationUsingKeyFrames>
|
188
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
|
189
|
<DiscreteObjectKeyFrame KeyTime="0">
|
190
|
<DiscreteObjectKeyFrame.Value>
|
191
|
<GridLength>Auto</GridLength>
|
192
|
</DiscreteObjectKeyFrame.Value>
|
193
|
</DiscreteObjectKeyFrame>
|
194
|
</ObjectAnimationUsingKeyFrames>
|
195
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
|
196
|
<DiscreteObjectKeyFrame KeyTime="0">
|
197
|
<DiscreteObjectKeyFrame.Value>
|
198
|
<GridLength>Auto</GridLength>
|
199
|
</DiscreteObjectKeyFrame.Value>
|
200
|
</DiscreteObjectKeyFrame>
|
201
|
</ObjectAnimationUsingKeyFrames>
|
202
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
|
203
|
<DiscreteObjectKeyFrame KeyTime="0">
|
204
|
<DiscreteObjectKeyFrame.Value>
|
205
|
<GridLength>Auto</GridLength>
|
206
|
</DiscreteObjectKeyFrame.Value>
|
207
|
</DiscreteObjectKeyFrame>
|
208
|
</ObjectAnimationUsingKeyFrames>
|
209
|
</Storyboard>
|
210
|
</VisualTransition>
|
211
|
</VisualStateGroup.Transitions>
|
212
|
<VisualState x:Name="DirectionLeft">
|
213
|
<Storyboard>
|
214
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
|
215
|
<DiscreteObjectKeyFrame KeyTime="0">
|
216
|
<DiscreteObjectKeyFrame.Value>
|
217
|
<GridLength>*</GridLength>
|
218
|
</DiscreteObjectKeyFrame.Value>
|
219
|
</DiscreteObjectKeyFrame>
|
220
|
</ObjectAnimationUsingKeyFrames>
|
221
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
|
222
|
<DiscreteObjectKeyFrame KeyTime="0">
|
223
|
<DiscreteObjectKeyFrame.Value>
|
224
|
<GridLength>*</GridLength>
|
225
|
</DiscreteObjectKeyFrame.Value>
|
226
|
</DiscreteObjectKeyFrame>
|
227
|
</ObjectAnimationUsingKeyFrames>
|
228
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
|
229
|
<DiscreteObjectKeyFrame KeyTime="0">
|
230
|
<DiscreteObjectKeyFrame.Value>
|
231
|
<System:Int32>1</System:Int32>
|
232
|
</DiscreteObjectKeyFrame.Value>
|
233
|
</DiscreteObjectKeyFrame>
|
234
|
</ObjectAnimationUsingKeyFrames>
|
235
|
<DoubleAnimation Duration="0:0:0"
|
236
|
Storyboard.TargetName="arrowPanel"
|
237
|
Storyboard.TargetProperty="(UIElement.RenderTransform).Angle"
|
238
|
To="90" />
|
239
|
</Storyboard>
|
240
|
</VisualState>
|
241
|
<VisualState x:Name="DirectionRight">
|
242
|
<Storyboard>
|
243
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
|
244
|
<DiscreteObjectKeyFrame KeyTime="0">
|
245
|
<DiscreteObjectKeyFrame.Value>
|
246
|
<GridLength>*</GridLength>
|
247
|
</DiscreteObjectKeyFrame.Value>
|
248
|
</DiscreteObjectKeyFrame>
|
249
|
</ObjectAnimationUsingKeyFrames>
|
250
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
|
251
|
<DiscreteObjectKeyFrame KeyTime="0">
|
252
|
<DiscreteObjectKeyFrame.Value>
|
253
|
<GridLength>*</GridLength>
|
254
|
</DiscreteObjectKeyFrame.Value>
|
255
|
</DiscreteObjectKeyFrame>
|
256
|
</ObjectAnimationUsingKeyFrames>
|
257
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
|
258
|
<DiscreteObjectKeyFrame KeyTime="0">
|
259
|
<DiscreteObjectKeyFrame.Value>
|
260
|
<System:Int32>1</System:Int32>
|
261
|
</DiscreteObjectKeyFrame.Value>
|
262
|
</DiscreteObjectKeyFrame>
|
263
|
</ObjectAnimationUsingKeyFrames>
|
264
|
<DoubleAnimation Duration="0:0:0"
|
265
|
Storyboard.TargetName="arrowPanel"
|
266
|
Storyboard.TargetProperty="(UIElement.RenderTransform).Angle"
|
267
|
To="-90" />
|
268
|
</Storyboard>
|
269
|
</VisualState>
|
270
|
<VisualState x:Name="DirectionUp">
|
271
|
<Storyboard>
|
272
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
|
273
|
<DiscreteObjectKeyFrame KeyTime="0">
|
274
|
<DiscreteObjectKeyFrame.Value>
|
275
|
<GridLength>*</GridLength>
|
276
|
</DiscreteObjectKeyFrame.Value>
|
277
|
</DiscreteObjectKeyFrame>
|
278
|
</ObjectAnimationUsingKeyFrames>
|
279
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height">
|
280
|
<DiscreteObjectKeyFrame KeyTime="0">
|
281
|
<DiscreteObjectKeyFrame.Value>
|
282
|
<GridLength>*</GridLength>
|
283
|
</DiscreteObjectKeyFrame.Value>
|
284
|
</DiscreteObjectKeyFrame>
|
285
|
</ObjectAnimationUsingKeyFrames>
|
286
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
|
287
|
<DiscreteObjectKeyFrame KeyTime="0">
|
288
|
<DiscreteObjectKeyFrame.Value>
|
289
|
<System:Int32>1</System:Int32>
|
290
|
</DiscreteObjectKeyFrame.Value>
|
291
|
</DiscreteObjectKeyFrame>
|
292
|
</ObjectAnimationUsingKeyFrames>
|
293
|
<DoubleAnimation Duration="0:0:0"
|
294
|
Storyboard.TargetName="arrowPanel"
|
295
|
Storyboard.TargetProperty="(UIElement.RenderTransform).Angle"
|
296
|
To="180" />
|
297
|
</Storyboard>
|
298
|
</VisualState>
|
299
|
<VisualState x:Name="DirectionDown">
|
300
|
<Storyboard>
|
301
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
|
302
|
<DiscreteObjectKeyFrame KeyTime="0">
|
303
|
<DiscreteObjectKeyFrame.Value>
|
304
|
<GridLength>*</GridLength>
|
305
|
</DiscreteObjectKeyFrame.Value>
|
306
|
</DiscreteObjectKeyFrame>
|
307
|
</ObjectAnimationUsingKeyFrames>
|
308
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height">
|
309
|
<DiscreteObjectKeyFrame KeyTime="0">
|
310
|
<DiscreteObjectKeyFrame.Value>
|
311
|
<GridLength>*</GridLength>
|
312
|
</DiscreteObjectKeyFrame.Value>
|
313
|
</DiscreteObjectKeyFrame>
|
314
|
</ObjectAnimationUsingKeyFrames>
|
315
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)">
|
316
|
<DiscreteObjectKeyFrame KeyTime="0">
|
317
|
<DiscreteObjectKeyFrame.Value>
|
318
|
<System:Int32>1</System:Int32>
|
319
|
</DiscreteObjectKeyFrame.Value>
|
320
|
</DiscreteObjectKeyFrame>
|
321
|
</ObjectAnimationUsingKeyFrames>
|
322
|
</Storyboard>
|
323
|
</VisualState>
|
324
|
</VisualStateGroup>
|
325
|
</VisualStateManager.VisualStateGroups>
|
326
|
|
327
|
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
|
328
|
<Grid>
|
329
|
<Grid.RowDefinitions>
|
330
|
<RowDefinition x:Name="row0" Height="Auto" />
|
331
|
<RowDefinition x:Name="row1" Height="Auto" />
|
332
|
</Grid.RowDefinitions>
|
333
|
<Grid.ColumnDefinitions>
|
334
|
<ColumnDefinition x:Name="col0" Width="Auto" />
|
335
|
<ColumnDefinition x:Name="col1" Width="Auto" />
|
336
|
</Grid.ColumnDefinitions>
|
337
|
|
338
|
<telerik:RadToggleButton x:Name="HeaderButton"
|
339
|
HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
|
340
|
VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
|
341
|
HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}"
|
342
|
VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}"
|
343
|
Background="Transparent"
|
344
|
ClickMode="{TemplateBinding ClickMode}"
|
345
|
FontFamily="{TemplateBinding FontFamily}"
|
346
|
FontSize="{TemplateBinding FontSize}"
|
347
|
FontStretch="{TemplateBinding FontStretch}"
|
348
|
FontStyle="{TemplateBinding FontStyle}"
|
349
|
FontWeight="{TemplateBinding FontWeight}"
|
350
|
Foreground="{TemplateBinding Foreground}"
|
351
|
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
352
|
IsTabStop="{TemplateBinding IsTabStop}"
|
353
|
Padding="{TemplateBinding Padding}"
|
354
|
TabIndex="{TemplateBinding TabIndex}"
|
355
|
Template="{StaticResource ToggleTemplate}">
|
356
|
|
357
|
<Grid x:Name="HeaderPanel" Background="Transparent">
|
358
|
<Grid.RowDefinitions>
|
359
|
<RowDefinition Height="Auto" />
|
360
|
<RowDefinition Height="*" />
|
361
|
</Grid.RowDefinitions>
|
362
|
<Grid.ColumnDefinitions>
|
363
|
<ColumnDefinition Width="Auto" />
|
364
|
<ColumnDefinition Width="*" />
|
365
|
</Grid.ColumnDefinitions>
|
366
|
|
367
|
<Grid Grid.Row="0"
|
368
|
Grid.Column="0"
|
369
|
HorizontalAlignment="Left">
|
370
|
<Ellipse x:Name="OuterCircle"
|
371
|
Width="13"
|
372
|
Height="13"
|
373
|
HorizontalAlignment="Center"
|
374
|
VerticalAlignment="Center"
|
375
|
Fill="{StaticResource ControlBackground}"
|
376
|
Stroke="#FFD6D4D4" />
|
377
|
<Ellipse x:Name="InnerCircle"
|
378
|
Width="11"
|
379
|
Height="11"
|
380
|
Margin="1,2"
|
381
|
Stroke="{StaticResource ControlInnerBorder_Normal}" />
|
382
|
|
383
|
<Grid x:Name="arrowPanel"
|
384
|
Width="7"
|
385
|
Height="4"
|
386
|
RenderTransformOrigin=".5 .5">
|
387
|
<Grid.RenderTransform>
|
388
|
<RotateTransform />
|
389
|
</Grid.RenderTransform>
|
390
|
<Path x:Name="arrow"
|
391
|
Data="M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z"
|
392
|
Fill="#FF25A0DA"
|
393
|
RenderTransformOrigin="0.5,0.5"
|
394
|
Stretch="Fill">
|
395
|
<Path.RenderTransform>
|
396
|
<RotateTransform Angle="0" />
|
397
|
</Path.RenderTransform>
|
398
|
</Path>
|
399
|
</Grid>
|
400
|
</Grid>
|
401
|
<telerik:LayoutTransformControl x:Name="HeaderContentTransform"
|
402
|
Grid.Row="0"
|
403
|
Grid.Column="0"
|
404
|
RenderTransformOrigin=".5 .5">
|
405
|
<ContentPresenter x:Name="HeaderContent"
|
406
|
Grid.Column="1"
|
407
|
Margin="3,0,0,0"
|
408
|
HorizontalAlignment="Stretch"
|
409
|
VerticalAlignment="Stretch"
|
410
|
Content="{TemplateBinding Header}"
|
411
|
ContentTemplate="{TemplateBinding HeaderTemplate}" />
|
412
|
</telerik:LayoutTransformControl>
|
413
|
|
414
|
</Grid>
|
415
|
</telerik:RadToggleButton>
|
416
|
|
417
|
<ContentPresenter x:Name="Content"
|
418
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
419
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
420
|
Content="{TemplateBinding Content}"
|
421
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
422
|
Visibility="Collapsed" />
|
423
|
</Grid>
|
424
|
</Border>
|
425
|
</Grid>
|
426
|
</ControlTemplate>
|
427
|
<DataTemplate x:Key="CommentSelectTemplate">
|
428
|
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" telerik:StyleManager.Theme="Windows8"
|
429
|
Command="{Binding SelectCommentCommand, ElementName=userControl, Mode=OneWay}">
|
430
|
<StackPanel Orientation="Horizontal">
|
431
|
<TextBlock Text="{Binding Depart}" />
|
432
|
<TextBlock Text="/" />
|
433
|
<TextBlock Text="{Binding UserName}" />
|
434
|
</StackPanel>
|
435
|
</CheckBox>
|
436
|
</DataTemplate>
|
437
|
</UserControl.Resources>
|
438
|
<Grid x:Name="grid" VerticalAlignment="Stretch">
|
439
|
|
440
|
<telerik:RadTabControl Margin="0,6,0,0" BorderThickness="0" telerik:StyleManager.Theme="VisualStudio2013" HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
|
441
|
ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" Name="navigationTab" >
|
442
|
|
443
|
<telerik:RadTabItem Header="Thumbnail" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="12">
|
444
|
<Grid>
|
445
|
<Grid.RowDefinitions>
|
446
|
<RowDefinition Height="Auto"/>
|
447
|
<RowDefinition Height="Auto"/>
|
448
|
<RowDefinition Height="*"/>
|
449
|
</Grid.RowDefinitions>
|
450
|
<telerik:RadPathButton ContentPlacement="Left" telerik:StyleManager.Theme="Office2016" CornerRadius="3"
|
451
|
PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphGrid}, Foreground=White}" Height="24" Width="120" PathStyle="{StaticResource PathButtonStyle}"
|
452
|
Margin="2" Foreground="White" Content="Show All Pages" x:Name="btnPanorama" Click="btnPanorama_Click" Background="#FF0054B9" HorizontalAlignment="Right"/>
|
453
|
<Border BorderThickness="1" Margin="1" Grid.Row="1" BorderBrush="#FFC9C9C9" Background="White">
|
454
|
<StackPanel>
|
455
|
<RadioButton GroupName="grpPages" Content="All Pages" IsChecked="True" telerik:StyleManager.Theme="Office2013" FontSize="10" Margin="5,3" Checked="ShowPageChange" x:Name="rdoAllPages"/>
|
456
|
<RadioButton GroupName="grpPages" Content="Favorited Pages" FontSize="10" Margin="5,3" x:Name="rdoFavoritePages" Checked="ShowPageChange" />
|
457
|
<RadioButton GroupName="grpPages" Content="Commented Pages" FontSize="10" Margin="5,3" x:Name="rdoCommentPages" Checked="ShowPageChange" />
|
458
|
<Grid Margin="4.5,0" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=rdoCommentPages}">
|
459
|
<ListBox x:Name="lstSelectComment"
|
460
|
BorderBrush="{DynamicResource KCOMColor_ActiveBrush}"
|
461
|
BorderThickness="2"
|
462
|
ItemTemplate="{StaticResource CommentSelectTemplate}"
|
463
|
telerik:StyleManager.Theme="Office2016" />
|
464
|
|
465
|
</Grid>
|
466
|
</StackPanel>
|
467
|
</Border>
|
468
|
<telerik:RadListBox x:Name="ImgListbox" Margin="1"
|
469
|
Grid.Row="2"
|
470
|
Background="{DynamicResource KCOMColor_AlternativeBrush}"
|
471
|
ItemContainerStyle="{StaticResource ItemContainerStyle}"
|
472
|
BorderBrush="#FFC2C2C2" BorderThickness="0"
|
473
|
SelectedIndex="0"
|
474
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
475
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
476
|
ScrollViewer.CanContentScroll="True"
|
477
|
telerik:StyleManager.Theme="Office2016"
|
478
|
ItemsSource="{Binding FilteredThumbnail.View, ElementName=userControl}">
|
479
|
|
480
|
|
481
|
|
482
|
|
483
|
|
484
|
|
485
|
|
486
|
|
487
|
<VirtualizingPanel.IsVirtualizing>true</VirtualizingPanel.IsVirtualizing>
|
488
|
|
489
|
|
490
|
|
491
|
|
492
|
|
493
|
<telerik:RadListBox.ItemTemplate>
|
494
|
<DataTemplate>
|
495
|
<Grid x:Name="LayoutRoot">
|
496
|
<Grid></Grid>
|
497
|
<Grid VerticalAlignment="Center" >
|
498
|
<Grid.RowDefinitions>
|
499
|
<RowDefinition Height="Auto"/>
|
500
|
<RowDefinition Height="Auto"/>
|
501
|
</Grid.RowDefinitions>
|
502
|
<Grid x:Name="imgRoot">
|
503
|
<Border x:Name="imgBorder" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}"
|
504
|
Visibility="{Binding IsActive,Mode=OneWayToSource, Converter={StaticResource BooleanToVisibilityConverter}}"
|
505
|
RenderTransformOrigin="0.5,0.5" BorderThickness="1,1,1.5,1.5">
|
506
|
<Border.RenderTransform>
|
507
|
<RotateTransform Angle="{Binding Angle, Mode=TwoWay}"/>
|
508
|
</Border.RenderTransform>
|
509
|
<Image Stretch="Uniform" Source="{Binding ImageUri,IsAsync=True}"/>
|
510
|
</Border>
|
511
|
</Grid>
|
512
|
<TextBlock Grid.Row="1" Text="{Binding PageNumber, FallbackValue=PageNo}" FontStyle="Italic" FontSize="14" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
|
513
|
</Grid>
|
514
|
<Border Width="30" Height="20" VerticalAlignment="Top" Opacity="90" HorizontalAlignment="Right" Margin="10,5"
|
515
|
Background="{Binding DisplayColorItems, Converter={StaticResource ColorListToBrushConverter}}">
|
516
|
|
517
|
</Border>
|
518
|
</Grid>
|
519
|
</DataTemplate>
|
520
|
</telerik:RadListBox.ItemTemplate>
|
521
|
|
522
|
|
523
|
|
524
|
|
525
|
|
526
|
</telerik:RadListBox>
|
527
|
</Grid>
|
528
|
</telerik:RadTabItem>
|
529
|
<telerik:RadTabItem Header="Markup List" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="12" >
|
530
|
<Grid HorizontalAlignment="Stretch">
|
531
|
<Grid.ColumnDefinitions>
|
532
|
<ColumnDefinition Width="*"/>
|
533
|
</Grid.ColumnDefinitions>
|
534
|
<Grid.RowDefinitions>
|
535
|
<RowDefinition Height="Auto"/>
|
536
|
<RowDefinition Height="Auto"/>
|
537
|
<RowDefinition Height="*"/>
|
538
|
</Grid.RowDefinitions>
|
539
|
<Border BorderThickness="0,0,0,1" BorderBrush="#e6e6e6" Background="#f5f5f5">
|
540
|
<Grid>
|
541
|
<Grid.ColumnDefinitions>
|
542
|
<ColumnDefinition/>
|
543
|
<ColumnDefinition/>
|
544
|
<ColumnDefinition/>
|
545
|
</Grid.ColumnDefinitions>
|
546
|
<telerik:RadComboBox EmptyText="TYPE" Grid.Column="0" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentType"
|
547
|
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentFilter_SelectionChanged">
|
548
|
<telerik:RadComboBox.ItemTemplate>
|
549
|
<DataTemplate>
|
550
|
<Image Source="{Binding Converter={StaticResource converterTypeImageConverter}}" Margin="5" Width="28" Height="28"/>
|
551
|
</DataTemplate>
|
552
|
</telerik:RadComboBox.ItemTemplate>
|
553
|
</telerik:RadComboBox>
|
554
|
<telerik:RadComboBox HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentUser"
|
555
|
FontSize="10" Grid.Column="1"
|
556
|
SelectionChanged="commentFilter_SelectionChanged" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All"
|
557
|
EmptyText="USER">
|
558
|
|
559
|
</telerik:RadComboBox>
|
560
|
<telerik:RadComboBox EmptyText="PAGE" Grid.Column="2" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentPage"
|
561
|
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentFilter_SelectionChanged"/>
|
562
|
</Grid>
|
563
|
</Border>
|
564
|
<Border Grid.Row="1" Background="#FFE6E6E6">
|
565
|
<StackPanel>
|
566
|
<Border>
|
567
|
<Grid Height="28" Margin="0,4">
|
568
|
<Grid.ColumnDefinitions>
|
569
|
<ColumnDefinition Width="*"/>
|
570
|
<ColumnDefinition Width="Auto"/>
|
571
|
</Grid.ColumnDefinitions>
|
572
|
<TextBox HorizontalAlignment="Stretch" Style="{StaticResource ClearTextBoxStyle}" Margin="2" x:Name="txtSearch"
|
573
|
telerik:StyleManager.Theme="Office2016" AcceptsReturn="False" Background="#FFF3F3F3"
|
574
|
BorderThickness="1" VerticalContentAlignment="Center" IsTabStop="True" KeyDown="TxtSearch_KeyDown"/>
|
575
|
<telerik:RadPathButton Grid.Column="1" ContentPlacement="Left" VerticalContentAlignment="Center" telerik:StyleManager.Theme="Office2016"
|
576
|
PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphZoom}, Foreground=White}"
|
577
|
Width="80" PathStyle="{StaticResource PathButtonStyle}" CornerRadius="3"
|
578
|
Margin="2" Foreground="White" Content="SEARCH" x:Name="btnSearch" Click="btnSearch_Click" Background="#FF0054B9"/>
|
579
|
</Grid>
|
580
|
</Border>
|
581
|
</StackPanel>
|
582
|
</Border>
|
583
|
<Border Grid.Row="1" Background="#f5f5f5" Visibility="Collapsed">
|
584
|
<StackPanel>
|
585
|
<Border>
|
586
|
<Grid>
|
587
|
<Grid.ColumnDefinitions>
|
588
|
<ColumnDefinition Width="36"/>
|
589
|
<ColumnDefinition Width="*"/>
|
590
|
<ColumnDefinition Width="Auto"/>
|
591
|
</Grid.ColumnDefinitions>
|
592
|
|
593
|
<Image Source="/KCOM;component/Resources/Images/MenuImage_New/arrow.png" Margin="5"/>
|
594
|
|
595
|
<StackPanel Orientation="Vertical" Grid.Column="1" Margin="10" VerticalAlignment="Center">
|
596
|
<TextBlock Text="" FontWeight="DemiBold" Foreground="#3d3d3d"/>
|
597
|
<TextBlock Text=""/>
|
598
|
</StackPanel>
|
599
|
|
600
|
|
601
|
<Border Background="#FF1258B6" CornerRadius="5" Grid.Column="2" Padding="5" Margin="10">
|
602
|
<Button Background="Transparent" Foreground="White" Content="Move" BorderThickness="0"/>
|
603
|
</Border>
|
604
|
</Grid>
|
605
|
</Border>
|
606
|
</StackPanel>
|
607
|
</Border>
|
608
|
|
609
|
<Border VerticalAlignment="Stretch" Margin="0" Grid.Row="2" BorderThickness="0,0,0,0.5" BorderBrush="#828282" x:Name="gogo">
|
610
|
<telerik:RadListBox telerik:StyleManager.Theme="Office2016" Padding="0" Margin="2" HorizontalAlignment="Stretch" x:Name="MarkupList" ScrollViewer.VerticalScrollBarVisibility="Auto"
|
611
|
Background="White" ItemsSource="{Binding MarkupInfoSmallList}" Loaded="MarkupList_Loaded">
|
612
|
<telerik:RadListBox.ItemContainerStyle>
|
613
|
<Style TargetType="telerik:RadListBoxItem">
|
614
|
<Setter Property="Padding" Value="0,0,0,0"/>
|
615
|
</Style>
|
616
|
</telerik:RadListBox.ItemContainerStyle>
|
617
|
<telerik:RadListBox.ItemTemplate>
|
618
|
<DataTemplate>
|
619
|
<StackPanel>
|
620
|
<Border BorderBrush="#EBFBFCFD" BorderThickness="1" Margin="1" Padding="1,3">
|
621
|
<Grid>
|
622
|
<Grid.ColumnDefinitions>
|
623
|
<ColumnDefinition Width="5"/>
|
624
|
<ColumnDefinition Width="36"/>
|
625
|
<ColumnDefinition Width="*"/>
|
626
|
<ColumnDefinition Width="Auto"/>
|
627
|
</Grid.ColumnDefinitions>
|
628
|
<Border Width="5" Background="#CE3D5DA0">
|
629
|
<Border.Style>
|
630
|
<Style TargetType="Border">
|
631
|
<Setter Property="Visibility" Value="Collapsed"/>
|
632
|
<Style.Triggers>
|
633
|
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=telerik:RadListBoxItem, AncestorLevel=1}}" Value="True">
|
634
|
<Setter Property="Visibility" Value="Visible"/>
|
635
|
</DataTrigger>
|
636
|
</Style.Triggers>
|
637
|
</Style>
|
638
|
</Border.Style>
|
639
|
</Border>
|
640
|
<Image Grid.Column="1" Source="{Binding Data_Type, Converter={StaticResource converterTypeImageConverter}}" Margin="5,0" Width="28" Height="28"/>
|
641
|
<StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="2" Margin="5,0" VerticalAlignment="Center">
|
642
|
<TextBlock Text="{Binding UserName}" FontWeight="DemiBold" Foreground="#3d3d3d"/>
|
643
|
<StackPanel Orientation="Horizontal">
|
644
|
<TextBlock Text="{Binding PageNumber}"/>
|
645
|
<TextBlock Text=" Page"/>
|
646
|
</StackPanel>
|
647
|
</StackPanel>
|
648
|
<telerik:RadPathButton Grid.Column="3" ContentPlacement="Left" VerticalContentAlignment="Center" telerik:StyleManager.Theme="Office2016"
|
649
|
PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphFrontElement}, Foreground=White}"
|
650
|
Width="60" Height="28" PathStyle="{StaticResource PathButtonStyle}" CornerRadius="3"
|
651
|
Margin="2" Foreground="White" Content="Move" x:Name="btnSearch" Click="btGotoMarkup_Click" Background="#FF0054B9" CommandParameter="{Binding}">
|
652
|
</telerik:RadPathButton>
|
653
|
|
654
|
</Grid>
|
655
|
</Border>
|
656
|
</StackPanel>
|
657
|
</DataTemplate>
|
658
|
</telerik:RadListBox.ItemTemplate>
|
659
|
</telerik:RadListBox>
|
660
|
</Border>
|
661
|
|
662
|
|
663
|
|
664
|
|
665
|
|
666
|
|
667
|
|
668
|
|
669
|
|
670
|
|
671
|
|
672
|
|
673
|
|
674
|
|
675
|
|
676
|
|
677
|
|
678
|
|
679
|
|
680
|
|
681
|
|
682
|
|
683
|
|
684
|
|
685
|
|
686
|
|
687
|
|
688
|
|
689
|
|
690
|
|
691
|
|
692
|
|
693
|
|
694
|
|
695
|
</Grid>
|
696
|
</telerik:RadTabItem>
|
697
|
|
698
|
|
699
|
|
700
|
|
701
|
|
702
|
|
703
|
|
704
|
|
705
|
|
706
|
|
707
|
|
708
|
|
709
|
</telerik:RadTabControl>
|
710
|
|
711
|
</Grid>
|
712
|
</UserControl>
|