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 |
|
|
|
426 |
|
|
</ControlTemplate>
|
427 |
|
|
<DataTemplate x:Key="CommentSelectTemplate">
|
428 |
|
|
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" telerik:StyleManager.Theme="Windows8">
|
429 |
|
|
<StackPanel Orientation="Horizontal">
|
430 |
|
|
<TextBlock Text="{Binding Depart}" />
|
431 |
|
|
<TextBlock Text="/" />
|
432 |
|
|
<TextBlock Text="{Binding UserName}" />
|
433 |
|
|
</StackPanel>
|
434 |
|
|
</CheckBox>
|
435 |
|
|
</DataTemplate>
|
436 |
|
|
</UserControl.Resources>
|
437 |
|
|
<Grid x:Name="grid">
|
438 |
|
|
|
439 |
|
|
<telerik:RadTabControl BorderThickness="0" telerik:StyleManager.Theme="Office2016" HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
|
440 |
|
|
ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" >
|
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"/>
|
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 |
|
|
|
468 |
|
|
</Grid>
|
469 |
|
|
|
470 |
|
|
|
471 |
|
|
|
472 |
|
|
|
473 |
|
|
|
474 |
|
|
|
475 |
|
|
|
476 |
|
|
|
477 |
|
|
|
478 |
|
|
|
479 |
|
|
|
480 |
|
|
|
481 |
|
|
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
</StackPanel>
|
487 |
|
|
</Border>
|
488 |
|
|
<telerik:RadListBox x:Name="ImgListbox" ItemTemplate="{StaticResource ThumbnailDataTemplate}" Grid.Row="1" VirtualizingStackPanel.IsVirtualizing="True"
|
489 |
|
|
Background="{DynamicResource KCOMColor_AlternativeBrush}" ItemContainerStyle="{StaticResource ItemContainerStyle}"
|
490 |
|
|
BorderBrush="#FFC2C2C2" BorderThickness="0" SelectedIndex="0"
|
491 |
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
492 |
|
|
SelectionChanged="ImgListbox_SelectionChanged"
|
493 |
|
|
telerik:StyleManager.Theme="Office2016" >
|
494 |
|
|
<telerik:RadListBox.ItemsPanel>
|
495 |
|
|
<ItemsPanelTemplate>
|
496 |
|
|
<VirtualizingStackPanel/>
|
497 |
|
|
</ItemsPanelTemplate>
|
498 |
|
|
</telerik:RadListBox.ItemsPanel>
|
499 |
|
|
|
500 |
|
|
|
501 |
|
|
|
502 |
|
|
|
503 |
|
|
|
504 |
|
|
|
505 |
|
|
|
506 |
|
|
|
507 |
|
|
|
508 |
|
|
|
509 |
|
|
|
510 |
|
|
|
511 |
|
|
|
512 |
|
|
|
513 |
|
|
</telerik:RadListBox>
|
514 |
|
|
</Grid>
|
515 |
|
|
|
516 |
|
|
</telerik:RadTabItem>
|
517 |
|
|
|
518 |
|
|
<telerik:RadTabItem Header="Markup List" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="10" >
|
519 |
|
|
<Grid HorizontalAlignment="Stretch">
|
520 |
|
|
<Grid.ColumnDefinitions>
|
521 |
|
|
<ColumnDefinition Width="*"/>
|
522 |
|
|
</Grid.ColumnDefinitions>
|
523 |
|
|
<Grid.RowDefinitions>
|
524 |
|
|
<RowDefinition Height="Auto"/>
|
525 |
|
|
<RowDefinition Height="*"/>
|
526 |
|
|
</Grid.RowDefinitions>
|
527 |
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="#e6e6e6" Background="#f5f5f5">
|
528 |
|
|
<Grid>
|
529 |
|
|
<Grid.ColumnDefinitions>
|
530 |
|
|
<ColumnDefinition/>
|
531 |
|
|
<ColumnDefinition/>
|
532 |
|
|
<ColumnDefinition/>
|
533 |
|
|
</Grid.ColumnDefinitions>
|
534 |
|
|
<telerik:RadComboBox EmptyText="TYPE" Grid.Column="0" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentType"
|
535 |
|
|
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentType_SelectionChanged">
|
536 |
|
|
<telerik:RadComboBox.ItemTemplate>
|
537 |
|
|
<DataTemplate>
|
538 |
|
|
<Image Source="{Binding Converter={StaticResource converterTypeImageConverter}}" Margin="5" Width="28" Height="28"/>
|
539 |
|
|
</DataTemplate>
|
540 |
|
|
</telerik:RadComboBox.ItemTemplate>
|
541 |
|
|
</telerik:RadComboBox>
|
542 |
|
|
<telerik:RadComboBox HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentUser"
|
543 |
|
|
FontSize="10" Grid.Column="1" DisplayMemberPath="UserName" ItemsSource="{Binding _markupInfoList, Source={x:Static common:ViewerDataModel.Instance} , Mode=OneWay}"
|
544 |
|
|
SelectionChanged="commentUser_SelectionChanged" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All"
|
545 |
|
|
EmptyText="USER">
|
546 |
|
|
</telerik:RadComboBox>
|
547 |
|
|
<telerik:RadComboBox EmptyText="PAGE" Grid.Column="2" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="commentPage"
|
548 |
|
|
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="commentPage_SelectionChanged"/>
|
549 |
|
|
|
550 |
|
|
</Grid>
|
551 |
|
|
</Border>
|
552 |
|
|
|
553 |
|
|
<Border Grid.Row="1" Background="#f5f5f5" Visibility="Collapsed">
|
554 |
|
|
<StackPanel>
|
555 |
|
|
<Border>
|
556 |
|
|
<Grid>
|
557 |
|
|
<Grid.ColumnDefinitions>
|
558 |
|
|
<ColumnDefinition Width="36"/>
|
559 |
|
|
<ColumnDefinition Width="*"/>
|
560 |
|
|
<ColumnDefinition Width="Auto"/>
|
561 |
|
|
</Grid.ColumnDefinitions>
|
562 |
|
|
|
563 |
|
|
<Image Source="/KCOM;component/Resources/Images/MenuImage_New/arrow.png" Margin="5"/>
|
564 |
|
|
|
565 |
|
|
<StackPanel Orientation="Vertical" Grid.Column="1" Margin="10" VerticalAlignment="Center">
|
566 |
|
|
<TextBlock Text="조장원 대리" FontWeight="DemiBold" Foreground="#3d3d3d"/>
|
567 |
|
|
<TextBlock Text="3 Page"/>
|
568 |
|
|
</StackPanel>
|
569 |
|
|
|
570 |
|
|
|
571 |
|
|
<Border Background="#FF1258B6" CornerRadius="5" Grid.Column="2" Padding="5" Margin="10">
|
572 |
|
|
<Button Background="Transparent" Foreground="White" Content="Move" BorderThickness="0"/>
|
573 |
|
|
</Border>
|
574 |
|
|
</Grid>
|
575 |
|
|
</Border>
|
576 |
|
|
</StackPanel>
|
577 |
|
|
</Border>
|
578 |
|
|
|
579 |
|
|
<Border VerticalAlignment="Stretch" Margin="0" Grid.Row="1" BorderThickness="0,0,0,0.5" BorderBrush="#828282" x:Name="gogo">
|
580 |
|
|
<telerik:RadListBox telerik:StyleManager.Theme="Office2016" Padding="0" HorizontalAlignment="Stretch" x:Name="gogogo"
|
581 |
|
|
Background="Transparent" ItemsSource="{Binding MarkupInfoSmallList}" Loaded="gogogo_Loaded">
|
582 |
|
|
<telerik:RadListBox.ItemContainerStyle>
|
583 |
|
|
<Style TargetType="telerik:RadListBoxItem">
|
584 |
|
|
<Setter Property="Padding" Value="0,0,0,0"/>
|
585 |
|
|
</Style>
|
586 |
|
|
</telerik:RadListBox.ItemContainerStyle>
|
587 |
|
|
<telerik:RadListBox.ItemTemplate>
|
588 |
|
|
<DataTemplate>
|
589 |
|
|
<StackPanel>
|
590 |
|
|
<Border>
|
591 |
|
|
<Grid>
|
592 |
|
|
<Grid.ColumnDefinitions>
|
593 |
|
|
<ColumnDefinition Width="36"/>
|
594 |
|
|
<ColumnDefinition Width="*"/>
|
595 |
|
|
<ColumnDefinition Width="Auto"/>
|
596 |
|
|
</Grid.ColumnDefinitions>
|
597 |
|
|
|
598 |
|
|
<Image Source="{Binding Data_Type, Converter={StaticResource converterTypeImageConverter}}" Margin="5" Width="28" Height="28"/>
|
599 |
|
|
<StackPanel Orientation="Vertical" Grid.Column="1" Margin="10" VerticalAlignment="Center">
|
600 |
|
|
<TextBlock Text="{Binding UserName}" FontWeight="DemiBold" Foreground="#3d3d3d"/>
|
601 |
|
|
<StackPanel Orientation="Horizontal">
|
602 |
|
|
<TextBlock Text="{Binding PageNumber}"/>
|
603 |
|
|
<TextBlock Text=" Page"/>
|
604 |
|
|
</StackPanel>
|
605 |
|
|
</StackPanel>
|
606 |
|
|
<Border Background="#FF1258B6" CornerRadius="5" Grid.Column="2" Padding="5" Margin="10">
|
607 |
|
|
<telerik:RadButton Background="Transparent" Foreground="White" Content="Move" BorderThickness="0" Click="RadButton_Click" CommandParameter="{Binding}"/>
|
608 |
|
|
</Border>
|
609 |
|
|
</Grid>
|
610 |
|
|
</Border>
|
611 |
|
|
</StackPanel>
|
612 |
|
|
</DataTemplate>
|
613 |
|
|
</telerik:RadListBox.ItemTemplate>
|
614 |
|
|
</telerik:RadListBox>
|
615 |
|
|
</Border>
|
616 |
|
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
|
623 |
|
|
|
624 |
|
|
|
625 |
|
|
|
626 |
|
|
|
627 |
|
|
|
628 |
|
|
|
629 |
|
|
|
630 |
|
|
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
|
634 |
|
|
|
635 |
|
|
|
636 |
|
|
|
637 |
|
|
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
|
644 |
|
|
|
645 |
|
|
|
646 |
|
|
|
647 |
|
|
|
648 |
|
|
|
649 |
|
|
|
650 |
|
|
</Grid>
|
651 |
|
|
</telerik:RadTabItem>
|
652 |
|
|
<telerik:RadTabItem HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" FontSize="9">
|
653 |
|
|
<telerik:RadTabItem.Header>
|
654 |
|
|
<telerik:RadRibbonButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="10" Margin="0,0,0,1" Background="#FF0054B9" Foreground="White"
|
655 |
|
|
BorderThickness="0" CornerRadius="3" Padding="5" x:Name="btnPanorama" Click="btnPanorama_Click"/>
|
656 |
|
|
</telerik:RadTabItem.Header>
|
657 |
|
|
</telerik:RadTabItem>
|
658 |
|
|
</telerik:RadTabControl>
|
659 |
|
|
</Grid>
|
660 |
|
|
</UserControl> |