markus / KCOM / Controls / Sample.xaml @ 20ef6ffe
이력 | 보기 | 이력해설 | 다운로드 (50.7 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 |
Style="{DynamicResource borderContent}"> |
34 |
<ContentPresenter /> |
35 |
</Border>
|
36 |
<ControlTemplate.Resources>
|
37 |
<Style x:Key="borderContent" TargetType="Border"> |
38 |
<Setter Property="BorderThickness" Value="3 3 3 3"/> |
39 |
<Setter Property="BorderBrush" Value="Transparent"/> |
40 |
</Style>
|
41 |
</ControlTemplate.Resources>
|
42 |
<ControlTemplate.Triggers>
|
43 |
<Trigger Property="IsSelected" Value="true"> |
44 |
<Setter TargetName="myBorder" Property="BorderBrush" Value="{DynamicResource KCOMColor_AccentBrush}"/> |
45 |
</Trigger>
|
46 |
</ControlTemplate.Triggers>
|
47 |
</ControlTemplate>
|
48 |
</Setter.Value>
|
49 |
</Setter>
|
50 |
</Style>
|
51 |
<ControlTemplate x:Key="RadExpanderControlTemplate1" TargetType="telerik:RadExpander"> |
52 |
<Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}"> |
53 |
<VisualStateManager.VisualStateGroups>
|
54 |
<VisualStateGroup x:Name="CommonStateGroup"> |
55 |
<VisualState x:Name="Normal" /> |
56 |
<VisualState x:Name="Disabled"> |
57 |
<Storyboard>
|
58 |
<ObjectAnimationUsingKeyFrames Duration="0:0:0" |
59 |
Storyboard.TargetName="InnerCircle" |
60 |
Storyboard.TargetProperty="Stroke"> |
61 |
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" /> |
62 |
</ObjectAnimationUsingKeyFrames>
|
63 |
<DoubleAnimation Storyboard.TargetName="Content" |
64 |
Storyboard.TargetProperty="Opacity" |
65 |
To=".5" /> |
66 |
<DoubleAnimation Storyboard.TargetName="HeaderContent" |
67 |
Storyboard.TargetProperty="Opacity" |
68 |
To=".5" /> |
69 |
</Storyboard>
|
70 |
</VisualState>
|
71 |
</VisualStateGroup>
|
72 |
<VisualStateGroup x:Name="HeaderStateGroup"> |
73 |
<VisualState x:Name="NormalHeader" /> |
74 |
<VisualState x:Name="MouseOverHeader"> |
75 |
<Storyboard>
|
76 |
<ObjectAnimationUsingKeyFrames Duration="0:0:0" |
77 |
Storyboard.TargetName="InnerCircle" |
78 |
Storyboard.TargetProperty="Stroke"> |
79 |
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" /> |
80 |
</ObjectAnimationUsingKeyFrames>
|
81 |
</Storyboard>
|
82 |
</VisualState>
|
83 |
<VisualState x:Name="PressedHeader"> |
84 |
<Storyboard>
|
85 |
<ObjectAnimationUsingKeyFrames Duration="0:0:0" |
86 |
Storyboard.TargetName="InnerCircle" |
87 |
Storyboard.TargetProperty="Stroke"> |
88 |
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" /> |
89 |
</ObjectAnimationUsingKeyFrames>
|
90 |
</Storyboard>
|
91 |
</VisualState>
|
92 |
</VisualStateGroup>
|
93 |
<VisualStateGroup x:Name="HeaderOrientationGroup"> |
94 |
<VisualState x:Name="HorizontalOrientation"> |
95 |
<Storyboard>
|
96 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform"> |
97 |
<DiscreteObjectKeyFrame KeyTime="0"> |
98 |
<DiscreteObjectKeyFrame.Value>
|
99 |
<RotateTransform Angle="0" /> |
100 |
</DiscreteObjectKeyFrame.Value>
|
101 |
</DiscreteObjectKeyFrame>
|
102 |
</ObjectAnimationUsingKeyFrames>
|
103 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Column)"> |
104 |
<DiscreteObjectKeyFrame KeyTime="0"> |
105 |
<DiscreteObjectKeyFrame.Value>
|
106 |
<System:Int32>1</System:Int32> |
107 |
</DiscreteObjectKeyFrame.Value>
|
108 |
</DiscreteObjectKeyFrame>
|
109 |
</ObjectAnimationUsingKeyFrames>
|
110 |
</Storyboard>
|
111 |
</VisualState>
|
112 |
<VisualState x:Name="VerticalOrientation"> |
113 |
<Storyboard>
|
114 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform"> |
115 |
<DiscreteObjectKeyFrame KeyTime="0"> |
116 |
<DiscreteObjectKeyFrame.Value>
|
117 |
<RotateTransform Angle="90" /> |
118 |
</DiscreteObjectKeyFrame.Value>
|
119 |
</DiscreteObjectKeyFrame>
|
120 |
</ObjectAnimationUsingKeyFrames>
|
121 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Row)"> |
122 |
<DiscreteObjectKeyFrame KeyTime="0"> |
123 |
<DiscreteObjectKeyFrame.Value>
|
124 |
<System:Int32>1</System:Int32> |
125 |
</DiscreteObjectKeyFrame.Value>
|
126 |
</DiscreteObjectKeyFrame>
|
127 |
</ObjectAnimationUsingKeyFrames>
|
128 |
</Storyboard>
|
129 |
</VisualState>
|
130 |
</VisualStateGroup>
|
131 |
<VisualStateGroup x:Name="ExpandStateGroup"> |
132 |
<VisualState x:Name="Expanded"> |
133 |
<Storyboard>
|
134 |
<DoubleAnimation Duration="0:0:0.2" |
135 |
Storyboard.TargetName="arrow" |
136 |
Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" |
137 |
To="180" /> |
138 |
<ColorAnimation d:IsOptimized="True" |
139 |
Duration="0" |
140 |
Storyboard.TargetName="OuterCircle" |
141 |
Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" |
142 |
To="#FF1FA3EB" /> |
143 |
</Storyboard>
|
144 |
</VisualState>
|
145 |
<VisualState x:Name="Collapsed"> |
146 |
<Storyboard>
|
147 |
<DoubleAnimation Duration="0:0:0.2" |
148 |
Storyboard.TargetName="arrow" |
149 |
Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" |
150 |
To="0" /> |
151 |
</Storyboard>
|
152 |
</VisualState>
|
153 |
</VisualStateGroup>
|
154 |
<VisualStateGroup x:Name="ExpandDirectionStates"> |
155 |
<VisualStateGroup.Transitions>
|
156 |
<VisualTransition>
|
157 |
<Storyboard>
|
158 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)"> |
159 |
<DiscreteObjectKeyFrame KeyTime="0"> |
160 |
<DiscreteObjectKeyFrame.Value>
|
161 |
<System:Int32>0</System:Int32> |
162 |
</DiscreteObjectKeyFrame.Value>
|
163 |
</DiscreteObjectKeyFrame>
|
164 |
</ObjectAnimationUsingKeyFrames>
|
165 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)"> |
166 |
<DiscreteObjectKeyFrame KeyTime="0"> |
167 |
<DiscreteObjectKeyFrame.Value>
|
168 |
<System:Int32>0</System:Int32> |
169 |
</DiscreteObjectKeyFrame.Value>
|
170 |
</DiscreteObjectKeyFrame>
|
171 |
</ObjectAnimationUsingKeyFrames>
|
172 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)"> |
173 |
<DiscreteObjectKeyFrame KeyTime="0"> |
174 |
<DiscreteObjectKeyFrame.Value>
|
175 |
<System:Int32>0</System:Int32> |
176 |
</DiscreteObjectKeyFrame.Value>
|
177 |
</DiscreteObjectKeyFrame>
|
178 |
</ObjectAnimationUsingKeyFrames>
|
179 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)"> |
180 |
<DiscreteObjectKeyFrame KeyTime="0"> |
181 |
<DiscreteObjectKeyFrame.Value>
|
182 |
<System:Int32>0</System:Int32> |
183 |
</DiscreteObjectKeyFrame.Value>
|
184 |
</DiscreteObjectKeyFrame>
|
185 |
</ObjectAnimationUsingKeyFrames>
|
186 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width"> |
187 |
<DiscreteObjectKeyFrame KeyTime="0"> |
188 |
<DiscreteObjectKeyFrame.Value>
|
189 |
<GridLength>Auto</GridLength> |
190 |
</DiscreteObjectKeyFrame.Value>
|
191 |
</DiscreteObjectKeyFrame>
|
192 |
</ObjectAnimationUsingKeyFrames>
|
193 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width"> |
194 |
<DiscreteObjectKeyFrame KeyTime="0"> |
195 |
<DiscreteObjectKeyFrame.Value>
|
196 |
<GridLength>Auto</GridLength> |
197 |
</DiscreteObjectKeyFrame.Value>
|
198 |
</DiscreteObjectKeyFrame>
|
199 |
</ObjectAnimationUsingKeyFrames>
|
200 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height"> |
201 |
<DiscreteObjectKeyFrame KeyTime="0"> |
202 |
<DiscreteObjectKeyFrame.Value>
|
203 |
<GridLength>Auto</GridLength> |
204 |
</DiscreteObjectKeyFrame.Value>
|
205 |
</DiscreteObjectKeyFrame>
|
206 |
</ObjectAnimationUsingKeyFrames>
|
207 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height"> |
208 |
<DiscreteObjectKeyFrame KeyTime="0"> |
209 |
<DiscreteObjectKeyFrame.Value>
|
210 |
<GridLength>Auto</GridLength> |
211 |
</DiscreteObjectKeyFrame.Value>
|
212 |
</DiscreteObjectKeyFrame>
|
213 |
</ObjectAnimationUsingKeyFrames>
|
214 |
</Storyboard>
|
215 |
</VisualTransition>
|
216 |
</VisualStateGroup.Transitions>
|
217 |
<VisualState x:Name="DirectionLeft"> |
218 |
<Storyboard>
|
219 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width"> |
220 |
<DiscreteObjectKeyFrame KeyTime="0"> |
221 |
<DiscreteObjectKeyFrame.Value>
|
222 |
<GridLength>*</GridLength> |
223 |
</DiscreteObjectKeyFrame.Value>
|
224 |
</DiscreteObjectKeyFrame>
|
225 |
</ObjectAnimationUsingKeyFrames>
|
226 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height"> |
227 |
<DiscreteObjectKeyFrame KeyTime="0"> |
228 |
<DiscreteObjectKeyFrame.Value>
|
229 |
<GridLength>*</GridLength> |
230 |
</DiscreteObjectKeyFrame.Value>
|
231 |
</DiscreteObjectKeyFrame>
|
232 |
</ObjectAnimationUsingKeyFrames>
|
233 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)"> |
234 |
<DiscreteObjectKeyFrame KeyTime="0"> |
235 |
<DiscreteObjectKeyFrame.Value>
|
236 |
<System:Int32>1</System:Int32> |
237 |
</DiscreteObjectKeyFrame.Value>
|
238 |
</DiscreteObjectKeyFrame>
|
239 |
</ObjectAnimationUsingKeyFrames>
|
240 |
<DoubleAnimation Duration="0:0:0" |
241 |
Storyboard.TargetName="arrowPanel" |
242 |
Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" |
243 |
To="90" /> |
244 |
</Storyboard>
|
245 |
</VisualState>
|
246 |
<VisualState x:Name="DirectionRight"> |
247 |
<Storyboard>
|
248 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width"> |
249 |
<DiscreteObjectKeyFrame KeyTime="0"> |
250 |
<DiscreteObjectKeyFrame.Value>
|
251 |
<GridLength>*</GridLength> |
252 |
</DiscreteObjectKeyFrame.Value>
|
253 |
</DiscreteObjectKeyFrame>
|
254 |
</ObjectAnimationUsingKeyFrames>
|
255 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height"> |
256 |
<DiscreteObjectKeyFrame KeyTime="0"> |
257 |
<DiscreteObjectKeyFrame.Value>
|
258 |
<GridLength>*</GridLength> |
259 |
</DiscreteObjectKeyFrame.Value>
|
260 |
</DiscreteObjectKeyFrame>
|
261 |
</ObjectAnimationUsingKeyFrames>
|
262 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)"> |
263 |
<DiscreteObjectKeyFrame KeyTime="0"> |
264 |
<DiscreteObjectKeyFrame.Value>
|
265 |
<System:Int32>1</System:Int32> |
266 |
</DiscreteObjectKeyFrame.Value>
|
267 |
</DiscreteObjectKeyFrame>
|
268 |
</ObjectAnimationUsingKeyFrames>
|
269 |
<DoubleAnimation Duration="0:0:0" |
270 |
Storyboard.TargetName="arrowPanel" |
271 |
Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" |
272 |
To="-90" /> |
273 |
</Storyboard>
|
274 |
</VisualState>
|
275 |
<VisualState x:Name="DirectionUp"> |
276 |
<Storyboard>
|
277 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width"> |
278 |
<DiscreteObjectKeyFrame KeyTime="0"> |
279 |
<DiscreteObjectKeyFrame.Value>
|
280 |
<GridLength>*</GridLength> |
281 |
</DiscreteObjectKeyFrame.Value>
|
282 |
</DiscreteObjectKeyFrame>
|
283 |
</ObjectAnimationUsingKeyFrames>
|
284 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0" Storyboard.TargetProperty="Height"> |
285 |
<DiscreteObjectKeyFrame KeyTime="0"> |
286 |
<DiscreteObjectKeyFrame.Value>
|
287 |
<GridLength>*</GridLength> |
288 |
</DiscreteObjectKeyFrame.Value>
|
289 |
</DiscreteObjectKeyFrame>
|
290 |
</ObjectAnimationUsingKeyFrames>
|
291 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)"> |
292 |
<DiscreteObjectKeyFrame KeyTime="0"> |
293 |
<DiscreteObjectKeyFrame.Value>
|
294 |
<System:Int32>1</System:Int32> |
295 |
</DiscreteObjectKeyFrame.Value>
|
296 |
</DiscreteObjectKeyFrame>
|
297 |
</ObjectAnimationUsingKeyFrames>
|
298 |
<DoubleAnimation Duration="0:0:0" |
299 |
Storyboard.TargetName="arrowPanel" |
300 |
Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" |
301 |
To="180" /> |
302 |
</Storyboard>
|
303 |
</VisualState>
|
304 |
<VisualState x:Name="DirectionDown"> |
305 |
<Storyboard>
|
306 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width"> |
307 |
<DiscreteObjectKeyFrame KeyTime="0"> |
308 |
<DiscreteObjectKeyFrame.Value>
|
309 |
<GridLength>*</GridLength> |
310 |
</DiscreteObjectKeyFrame.Value>
|
311 |
</DiscreteObjectKeyFrame>
|
312 |
</ObjectAnimationUsingKeyFrames>
|
313 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1" Storyboard.TargetProperty="Height"> |
314 |
<DiscreteObjectKeyFrame KeyTime="0"> |
315 |
<DiscreteObjectKeyFrame.Value>
|
316 |
<GridLength>*</GridLength> |
317 |
</DiscreteObjectKeyFrame.Value>
|
318 |
</DiscreteObjectKeyFrame>
|
319 |
</ObjectAnimationUsingKeyFrames>
|
320 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Row)"> |
321 |
<DiscreteObjectKeyFrame KeyTime="0"> |
322 |
<DiscreteObjectKeyFrame.Value>
|
323 |
<System:Int32>1</System:Int32> |
324 |
</DiscreteObjectKeyFrame.Value>
|
325 |
</DiscreteObjectKeyFrame>
|
326 |
</ObjectAnimationUsingKeyFrames>
|
327 |
</Storyboard>
|
328 |
</VisualState>
|
329 |
</VisualStateGroup>
|
330 |
</VisualStateManager.VisualStateGroups>
|
331 |
|
332 |
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"> |
333 |
<Grid>
|
334 |
<Grid.RowDefinitions>
|
335 |
<RowDefinition x:Name="row0" Height="Auto" /> |
336 |
<RowDefinition x:Name="row1" Height="Auto" /> |
337 |
</Grid.RowDefinitions>
|
338 |
<Grid.ColumnDefinitions>
|
339 |
<ColumnDefinition x:Name="col0" Width="Auto" /> |
340 |
<ColumnDefinition x:Name="col1" Width="Auto" /> |
341 |
</Grid.ColumnDefinitions>
|
342 |
|
343 |
<telerik:RadToggleButton x:Name="HeaderButton" |
344 |
HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}" |
345 |
VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}" |
346 |
HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}" |
347 |
VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}" |
348 |
Background="Transparent" |
349 |
ClickMode="{TemplateBinding ClickMode}" |
350 |
FontFamily="{TemplateBinding FontFamily}" |
351 |
FontSize="{TemplateBinding FontSize}" |
352 |
FontStretch="{TemplateBinding FontStretch}" |
353 |
FontStyle="{TemplateBinding FontStyle}" |
354 |
FontWeight="{TemplateBinding FontWeight}" |
355 |
Foreground="{TemplateBinding Foreground}" |
356 |
IsChecked="{Binding IsExpanded, |
357 |
Mode=TwoWay,
|
358 |
RelativeSource={RelativeSource TemplatedParent}}"
|
359 |
IsTabStop="{TemplateBinding IsTabStop}" |
360 |
Padding="{TemplateBinding Padding}" |
361 |
TabIndex="{TemplateBinding TabIndex}" |
362 |
Template="{StaticResource ToggleTemplate}"> |
363 |
|
364 |
<Grid x:Name="HeaderPanel" Background="Transparent"> |
365 |
<Grid.RowDefinitions>
|
366 |
<RowDefinition Height="Auto" /> |
367 |
<RowDefinition Height="*" /> |
368 |
</Grid.RowDefinitions>
|
369 |
<Grid.ColumnDefinitions>
|
370 |
<ColumnDefinition Width="Auto" /> |
371 |
<ColumnDefinition Width="*" /> |
372 |
</Grid.ColumnDefinitions>
|
373 |
|
374 |
<Grid Grid.Row="0" |
375 |
Grid.Column="0" |
376 |
HorizontalAlignment="Left"> |
377 |
<Ellipse x:Name="OuterCircle" |
378 |
Width="13" |
379 |
Height="13" |
380 |
HorizontalAlignment="Center" |
381 |
VerticalAlignment="Center" |
382 |
Fill="{StaticResource ControlBackground}" |
383 |
Stroke="#FFD6D4D4" /> |
384 |
<Ellipse x:Name="InnerCircle" |
385 |
Width="11" |
386 |
Height="11" |
387 |
Margin="1,2" |
388 |
Stroke="{StaticResource ControlInnerBorder_Normal}" /> |
389 |
|
390 |
<Grid x:Name="arrowPanel" |
391 |
Width="7" |
392 |
Height="4" |
393 |
RenderTransformOrigin=".5 .5"> |
394 |
<Grid.RenderTransform>
|
395 |
<RotateTransform /> |
396 |
</Grid.RenderTransform>
|
397 |
<Path x:Name="arrow" |
398 |
Data="M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z" |
399 |
Fill="#FF25A0DA" |
400 |
RenderTransformOrigin="0.5,0.5" |
401 |
Stretch="Fill"> |
402 |
<Path.RenderTransform>
|
403 |
<RotateTransform Angle="0" /> |
404 |
</Path.RenderTransform>
|
405 |
</Path>
|
406 |
</Grid>
|
407 |
</Grid>
|
408 |
<telerik:LayoutTransformControl x:Name="HeaderContentTransform" |
409 |
Grid.Row="0" |
410 |
Grid.Column="0" |
411 |
RenderTransformOrigin=".5 .5"> |
412 |
<ContentPresenter x:Name="HeaderContent" |
413 |
Grid.Column="1" |
414 |
Margin="3,0,0,0" |
415 |
HorizontalAlignment="Stretch" |
416 |
VerticalAlignment="Stretch" |
417 |
Content="{TemplateBinding Header}" |
418 |
ContentTemplate="{TemplateBinding HeaderTemplate}" /> |
419 |
</telerik:LayoutTransformControl>
|
420 |
|
421 |
</Grid>
|
422 |
</telerik:RadToggleButton>
|
423 |
|
424 |
<ContentPresenter x:Name="Content" |
425 |
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
426 |
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
427 |
Content="{TemplateBinding Content}" |
428 |
ContentTemplate="{TemplateBinding ContentTemplate}" |
429 |
Visibility="Collapsed" /> |
430 |
</Grid>
|
431 |
</Border>
|
432 |
</Grid>
|
433 |
</ControlTemplate>
|
434 |
<DataTemplate x:Key="CommentSelectTemplate"> |
435 |
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" telerik:StyleManager.Theme="Windows8"> |
436 |
<StackPanel Orientation="Horizontal"> |
437 |
<TextBlock Text="{Binding Depart}" /> |
438 |
<TextBlock Text="/" /> |
439 |
<TextBlock Text="{Binding UserName}" /> |
440 |
</StackPanel>
|
441 |
</CheckBox>
|
442 |
</DataTemplate>
|
443 |
</UserControl.Resources>
|
444 |
<Grid x:Name="grid" VerticalAlignment="Stretch"> |
445 |
<!--<TextBlock Text="Sort By:" Foreground="{DynamicResource KCOMColor_MarkerBrush}"/>-->
|
446 |
<telerik:RadTabControl Margin="0,6,0,0" BorderThickness="0" telerik:StyleManager.Theme="VisualStudio2013" HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" |
447 |
ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" > |
448 |
|
449 |
<telerik:RadTabItem Header="Thumbnail" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="12"> |
450 |
<Grid>
|
451 |
<Grid.RowDefinitions>
|
452 |
<RowDefinition Height="Auto"/> |
453 |
<RowDefinition Height="Auto"/> |
454 |
<RowDefinition Height="*"/> |
455 |
</Grid.RowDefinitions>
|
456 |
<telerik:RadPathButton ContentPlacement="Left" telerik:StyleManager.Theme="Office2016" CornerRadius="3" |
457 |
PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphGrid}, Foreground=White}" Height="24" Width="120" PathStyle="{StaticResource PathButtonStyle}" |
458 |
Margin="2" Foreground="White" Content="Show All Pages" x:Name="btnPanorama" Click="btnPanorama_Click" Background="#FF0054B9" HorizontalAlignment="Right"/> |
459 |
<Border BorderThickness="1" Margin="1" Grid.Row="1" BorderBrush="#FFC9C9C9" Background="White"> |
460 |
<StackPanel>
|
461 |
<RadioButton Content="All Pages" IsChecked="True" telerik:StyleManager.Theme="Office2013" FontSize="10" Margin="5,3" x:Name="rdoAllPages"/> |
462 |
<RadioButton Content="Favorited Pages" FontSize="10" Margin="5,3" x:Name="rdoFavoritePages" Checked="rdoFavoritePages_Checked"/> |
463 |
<Grid Margin="4.5,0"> |
464 |
<telerik:RadExpander Name="expCommentPages" |
465 |
Padding="2" |
466 |
telerik:StyleManager.Theme="Office2016" |
467 |
Template="{StaticResource RadExpanderControlTemplate1}"> |
468 |
<telerik:RadExpander.Header>
|
469 |
<TextBlock Text="Commented Pages" FontSize="10" Margin="3,0"/> |
470 |
</telerik:RadExpander.Header>
|
471 |
<telerik:RadExpander.Content>
|
472 |
<ListBox x:Name="lstSelectComment" |
473 |
BorderBrush="{DynamicResource KCOMColor_ActiveBrush}" |
474 |
BorderThickness="2" |
475 |
ItemTemplate="{StaticResource CommentSelectTemplate}" |
476 |
telerik:StyleManager.Theme="Office2016" /> |
477 |
</telerik:RadExpander.Content>
|
478 |
</telerik:RadExpander>
|
479 |
<!-- <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"/> -->
|
480 |
</Grid>
|
481 |
</StackPanel>
|
482 |
</Border>
|
483 |
<telerik:RadListBox x:Name="ImgListbox" Margin="1" |
484 |
ItemTemplate="{StaticResource ThumbnailDataTemplate}" |
485 |
Grid.Row="2" |
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="commentType_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="commentUser_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="commentPage_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>
|