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