markus / KCOM / Controls / Sample.xaml @ b37ef4b3
이력 | 보기 | 이력해설 | 다운로드 (46.4 KB)
1 | 787a4489 | KangIngu | <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 | 90e7968d | ljiyeon | |
441 | 787a4489 | KangIngu | <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 | 992a98b4 | KangIngu | <RadioButton Content="Favorited Pages" FontSize="10" Margin="5,3" x:Name="rdoFavoritePages" Checked="rdoFavoritePages_Checked"/> |
451 | 787a4489 | KangIngu | <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 | 6472f348 | ljiyeon | |
472 | 5ce56a3a | KangIngu | <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 | b2a6b24a | humkyung | ScrollViewer.VerticalScrollBarVisibility="Auto" |
482 | 90e7968d | ljiyeon | ScrollViewer.CanContentScroll="False" |
483 | 6472f348 | ljiyeon | ScrollViewer.IsDeferredScrollingEnabled="False" |
484 | 5ce56a3a | KangIngu | SelectionChanged="ImgListbox_SelectionChanged" |
485 | 90e7968d | ljiyeon | telerik:StyleManager.Theme="Office2016" > |
486 | 787a4489 | KangIngu | <telerik:RadListBox.ItemsPanel>
|
487 | <ItemsPanelTemplate>
|
||
488 | 90e7968d | ljiyeon | <VirtualizingStackPanel/> |
489 | 787a4489 | KangIngu | </ItemsPanelTemplate>
|
490 | </telerik:RadListBox.ItemsPanel>
|
||
491 | <!--<telerik:RadListBox.ItemTemplate>
|
||
492 | <DataTemplate>
|
||
493 | <StackPanel>
|
||
494 | <Border BorderThickness="1" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" x:Name="selectBorder">
|
||
495 | <Image Stretch="UniformToFill" >
|
||
496 | <Image.Source>
|
||
497 | <BitmapImage UriSource="{Binding ImageUri}" DecodePixelWidth="400" />
|
||
498 | </Image.Source>
|
||
499 | </Image>
|
||
500 | </Border>
|
||
501 | <TextBlock Text="{Binding PageNumber}" HorizontalAlignment="Center" Margin="0,1,0,0"/>
|
||
502 | </StackPanel>
|
||
503 | </DataTemplate>
|
||
504 | </telerik:RadListBox.ItemTemplate>-->
|
||
505 | </telerik:RadListBox>
|
||
506 | </Grid>
|
||
507 | |||
508 | </telerik:RadTabItem>
|
||
509 | 90e7968d | ljiyeon | |
510 | 787a4489 | KangIngu | <telerik:RadTabItem Header="Markup List" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="10" > |
511 | <Grid HorizontalAlignment="Stretch"> |
||
512 | <Grid.ColumnDefinitions>
|
||
513 | <ColumnDefinition Width="*"/> |
||
514 | </Grid.ColumnDefinitions>
|
||
515 | <Grid.RowDefinitions>
|
||
516 | <RowDefinition Height="Auto"/> |
||
517 | 79f3f21a | djkim | <RowDefinition Height="Auto"/> |
518 | 787a4489 | KangIngu | <RowDefinition Height="*"/> |
519 | </Grid.RowDefinitions>
|
||
520 | <Border BorderThickness="0,0,0,1" BorderBrush="#e6e6e6" Background="#f5f5f5"> |
||
521 | <Grid>
|
||
522 | <Grid.ColumnDefinitions>
|
||
523 | <ColumnDefinition/> |
||
524 | <ColumnDefinition/> |
||
525 | <ColumnDefinition/> |
||
526 | </Grid.ColumnDefinitions>
|
||
527 | <telerik:RadComboBox EmptyText="TYPE" Grid.Column="0" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentType" |
||
528 | ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentType_SelectionChanged"> |
||
529 | <telerik:RadComboBox.ItemTemplate>
|
||
530 | <DataTemplate>
|
||
531 | <Image Source="{Binding Converter={StaticResource converterTypeImageConverter}}" Margin="5" Width="28" Height="28"/> |
||
532 | </DataTemplate>
|
||
533 | </telerik:RadComboBox.ItemTemplate>
|
||
534 | </telerik:RadComboBox>
|
||
535 | <telerik:RadComboBox HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentUser" |
||
536 | FontSize="10" Grid.Column="1" DisplayMemberPath="UserName" ItemsSource="{Binding _markupInfoList, Source={x:Static common:ViewerDataModel.Instance} , Mode=OneWay}" |
||
537 | SelectionChanged="commentUser_SelectionChanged" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" |
||
538 | EmptyText="USER"> |
||
539 | </telerik:RadComboBox>
|
||
540 | <telerik:RadComboBox EmptyText="PAGE" Grid.Column="2" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentPage" |
||
541 | ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentPage_SelectionChanged"/> |
||
542 | |||
543 | </Grid>
|
||
544 | 90e7968d | ljiyeon | |
545 | 787a4489 | KangIngu | </Border>
|
546 | 79f3f21a | djkim | <Border Grid.Row="1" Background="#f5f5f5" > |
547 | <StackPanel>
|
||
548 | <Border>
|
||
549 | <Grid>
|
||
550 | <Grid.ColumnDefinitions>
|
||
551 | <ColumnDefinition Width="7*"/> |
||
552 | <ColumnDefinition Width="3*"/> |
||
553 | </Grid.ColumnDefinitions>
|
||
554 | <TextBox Background="#FFF3F3F3" BorderThickness="0.5" VerticalContentAlignment="Center" x:Name="tbSearch"/> |
||
555 | 90e7968d | ljiyeon | |
556 | 79f3f21a | djkim | <Border Background="#FF1258B6" CornerRadius="5" Grid.Column="1" Padding="5" Margin="10"> |
557 | <Button Background="Transparent" Foreground="White" Content="Search" BorderThickness="0" x:Name="btnSearch" Click="btnSearch_Click"/> |
||
558 | </Border>
|
||
559 | 787a4489 | KangIngu | |
560 | 79f3f21a | djkim | </Grid>
|
561 | </Border>
|
||
562 | </StackPanel>
|
||
563 | </Border>
|
||
564 | 787a4489 | KangIngu | <Border Grid.Row="1" Background="#f5f5f5" Visibility="Collapsed"> |
565 | <StackPanel>
|
||
566 | <Border>
|
||
567 | <Grid>
|
||
568 | <Grid.ColumnDefinitions>
|
||
569 | <ColumnDefinition Width="36"/> |
||
570 | <ColumnDefinition Width="*"/> |
||
571 | <ColumnDefinition Width="Auto"/> |
||
572 | </Grid.ColumnDefinitions>
|
||
573 | |||
574 | <Image Source="/KCOM;component/Resources/Images/MenuImage_New/arrow.png" Margin="5"/> |
||
575 | |||
576 | <StackPanel Orientation="Vertical" Grid.Column="1" Margin="10" VerticalAlignment="Center"> |
||
577 | <TextBlock Text="조장원 대리" FontWeight="DemiBold" Foreground="#3d3d3d"/> |
||
578 | <TextBlock Text="3 Page"/> |
||
579 | </StackPanel>
|
||
580 | |||
581 | |||
582 | <Border Background="#FF1258B6" CornerRadius="5" Grid.Column="2" Padding="5" Margin="10"> |
||
583 | <Button Background="Transparent" Foreground="White" Content="Move" BorderThickness="0"/> |
||
584 | </Border>
|
||
585 | </Grid>
|
||
586 | </Border>
|
||
587 | </StackPanel>
|
||
588 | </Border>
|
||
589 | |||
590 | 79f3f21a | djkim | <Border VerticalAlignment="Stretch" Margin="0" Grid.Row="2" BorderThickness="0,0,0,0.5" BorderBrush="#828282" x:Name="gogo"> |
591 | 5ce56a3a | KangIngu | <telerik:RadListBox telerik:StyleManager.Theme="Office2016" Padding="0" HorizontalAlignment="Stretch" x:Name="gogogo" ScrollViewer.VerticalScrollBarVisibility="Auto" |
592 | 787a4489 | KangIngu | Background="Transparent" ItemsSource="{Binding MarkupInfoSmallList}" Loaded="gogogo_Loaded"> |
593 | <telerik:RadListBox.ItemContainerStyle>
|
||
594 | <Style TargetType="telerik:RadListBoxItem"> |
||
595 | <Setter Property="Padding" Value="0,0,0,0"/> |
||
596 | </Style>
|
||
597 | </telerik:RadListBox.ItemContainerStyle>
|
||
598 | <telerik:RadListBox.ItemTemplate>
|
||
599 | <DataTemplate>
|
||
600 | <StackPanel>
|
||
601 | <Border>
|
||
602 | <Grid>
|
||
603 | <Grid.ColumnDefinitions>
|
||
604 | <ColumnDefinition Width="36"/> |
||
605 | <ColumnDefinition Width="*"/> |
||
606 | <ColumnDefinition Width="Auto"/> |
||
607 | </Grid.ColumnDefinitions>
|
||
608 | |||
609 | <Image Source="{Binding Data_Type, Converter={StaticResource converterTypeImageConverter}}" Margin="5" Width="28" Height="28"/> |
||
610 | 79f3f21a | djkim | <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="1" Margin="10" VerticalAlignment="Center"> |
611 | 787a4489 | KangIngu | <TextBlock Text="{Binding UserName}" FontWeight="DemiBold" Foreground="#3d3d3d"/> |
612 | <StackPanel Orientation="Horizontal"> |
||
613 | <TextBlock Text="{Binding PageNumber}"/> |
||
614 | <TextBlock Text=" Page"/> |
||
615 | </StackPanel>
|
||
616 | </StackPanel>
|
||
617 | 90e7968d | ljiyeon | |
618 | 787a4489 | KangIngu | <Border Background="#FF1258B6" CornerRadius="5" Grid.Column="2" Padding="5" Margin="10"> |
619 | <telerik:RadButton Background="Transparent" Foreground="White" Content="Move" BorderThickness="0" Click="RadButton_Click" CommandParameter="{Binding}"/> |
||
620 | </Border>
|
||
621 | </Grid>
|
||
622 | </Border>
|
||
623 | </StackPanel>
|
||
624 | </DataTemplate>
|
||
625 | </telerik:RadListBox.ItemTemplate>
|
||
626 | </telerik:RadListBox>
|
||
627 | </Border>
|
||
628 | <!--<Border VerticalAlignment="Stretch" Margin="0" Grid.Row="1" BorderThickness="0,0,0,0.5" BorderBrush="#828282" Background="White">
|
||
629 | -->
|
||
630 | <!--<Grid VerticalAlignment="Top" Margin="0" Grid.Row="1">
|
||
631 | <Grid.Resources>
|
||
632 | <Style TargetType="TextBlock">
|
||
633 | <Setter Property="Foreground" Value="#828282"/>
|
||
634 | </Style>
|
||
635 | </Grid.Resources>
|
||
636 | <Grid.ColumnDefinitions>
|
||
637 | <ColumnDefinition Width="Auto"/>
|
||
638 | <ColumnDefinition Width="7*"/>
|
||
639 | </Grid.ColumnDefinitions>
|
||
640 | <Grid.RowDefinitions>
|
||
641 | <RowDefinition/>
|
||
642 | <RowDefinition/>
|
||
643 | <RowDefinition/>
|
||
644 | </Grid.RowDefinitions>
|
||
645 | <TextBlock Text="Cloud" Padding="5"/>
|
||
646 | <TextBlock Text="Sejung Kim" Grid.Row="0" Grid.Column="1" Padding="5"/>
|
||
647 | <TextBlock Text="Page 20" Grid.Column="0" Grid.Row="1" Padding="5"/>
|
||
648 | <TextBlock Text="2017/10/17 17:56:51" Grid.Column="1" Grid.Row="1" Padding="5"/>
|
||
649 | <TextBlock Text="Double click to Note." Grid.ColumnSpan="2" Grid.Row="2" Padding="5"/>
|
||
650 | </Grid>-->
|
||
651 | <!--<telerik:RadListBox ItemsSource="{Binding _markupInfoList, Mode=OneWayToSource, Source={x:Static common:ViewerDataModel.Instance}}">
|
||
652 | <telerik:RadListBox.ItemTemplate>
|
||
653 | <DataTemplate>
|
||
654 | <TextBlock Text="{Binding UserName}"/>
|
||
655 | </DataTemplate>
|
||
656 | </telerik:RadListBox.ItemTemplate>
|
||
657 | </telerik:RadListBox>-->
|
||
658 | <!--
|
||
659 | <TextBlock Text="{Binding MAMA, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}"/>
|
||
660 |
|
||
661 | </Border>-->
|
||
662 | </Grid>
|
||
663 | </telerik:RadTabItem>
|
||
664 | <telerik:RadTabItem HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="9"> |
||
665 | <telerik:RadTabItem.Header>
|
||
666 | <telerik:RadRibbonButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="10" Margin="0,0,0,1" Background="#FF0054B9" Foreground="White" |
||
667 | BorderThickness="0" CornerRadius="3" Padding="5" x:Name="btnPanorama" Click="btnPanorama_Click"/> |
||
668 | </telerik:RadTabItem.Header>
|
||
669 | </telerik:RadTabItem>
|
||
670 | </telerik:RadTabControl>
|
||
671 | </Grid>
|
||
672 | </UserControl> |