markus / MarkupToPDF / Themes / generic.xaml @ b643fcca
이력 | 보기 | 이력해설 | 다운로드 (40.7 KB)
1 |
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
---|---|
2 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 |
xmlns:Shape="clr-namespace:MarkupToPDF.Controls.Shape" |
4 |
xmlns:Text="clr-namespace:MarkupToPDF.Controls.Text" |
5 |
xmlns:Line="clr-namespace:MarkupToPDF.Controls.Line" |
6 |
xmlns:polygon="clr-namespace:MarkupToPDF.Controls.Polygon" |
7 |
xmlns:Etc="clr-namespace:MarkupToPDF.Controls.Etc" |
8 |
xmlns:Angle="clr-namespace:MarkupToPDF.Controls.Angle" |
9 |
xmlns:Cad="clr-namespace:MarkupToPDF.Controls.Cad"> |
10 |
|
11 |
<Style TargetType="{x:Type Cad:CoordinateControl}"> |
12 |
<Setter Property="Template"> |
13 |
<Setter.Value>
|
14 |
<ControlTemplate TargetType="{x:Type Cad:CoordinateControl}"> |
15 |
<Path x:Name="PART_RectPath" |
16 |
Stroke="Black" |
17 |
StrokeThickness="10" |
18 |
Data="{TemplateBinding PathData}" |
19 |
Fill="{TemplateBinding FillColor}" |
20 |
RenderTransformOrigin="0.5,0.5"> |
21 |
</Path>
|
22 |
</ControlTemplate>
|
23 |
</Setter.Value>
|
24 |
</Setter>
|
25 |
</Style>
|
26 |
<Style TargetType="{x:Type Cad:InsideWhiteControl}"> |
27 |
<Setter Property="Template"> |
28 |
<Setter.Value>
|
29 |
<ControlTemplate TargetType="{x:Type Cad:InsideWhiteControl}"> |
30 |
<Path x:Name="PART_RectPath" |
31 |
Stroke="LightGray" |
32 |
StrokeThickness="{TemplateBinding LineSize}" |
33 |
Data="{TemplateBinding PathData}" |
34 |
Opacity="0.3" |
35 |
Fill="LightGray" |
36 |
RenderTransformOrigin="0.5,0.5"> |
37 |
</Path>
|
38 |
</ControlTemplate>
|
39 |
</Setter.Value>
|
40 |
</Setter>
|
41 |
</Style>
|
42 |
<Style TargetType="{x:Type Cad:OverlapWhiteControl}"> |
43 |
<Setter Property="Template"> |
44 |
<Setter.Value>
|
45 |
<ControlTemplate TargetType="{x:Type Cad:OverlapWhiteControl}"> |
46 |
<Path x:Name="PART_RectPath" |
47 |
Stroke="LightGray" |
48 |
StrokeThickness="{TemplateBinding LineSize}" |
49 |
Data="{TemplateBinding PathData}" |
50 |
Opacity="0.3" |
51 |
Fill="LightGray" |
52 |
RenderTransformOrigin="0.5,0.5"> |
53 |
</Path>
|
54 |
</ControlTemplate>
|
55 |
</Setter.Value>
|
56 |
</Setter>
|
57 |
</Style>
|
58 |
<Style TargetType="{x:Type Cad:ClipWhiteControl}"> |
59 |
<Setter Property="Template"> |
60 |
<Setter.Value>
|
61 |
<ControlTemplate TargetType="{x:Type Cad:ClipWhiteControl}"> |
62 |
<Path x:Name="PART_RectPath" |
63 |
Stroke="LightGray" |
64 |
StrokeThickness="{TemplateBinding LineSize}" |
65 |
Data="{TemplateBinding PathData}" |
66 |
Opacity="0.3" |
67 |
Fill="LightGray" |
68 |
RenderTransformOrigin="0.5,0.5"> |
69 |
</Path>
|
70 |
</ControlTemplate>
|
71 |
</Setter.Value>
|
72 |
</Setter>
|
73 |
</Style>
|
74 |
<Style TargetType="Angle:AngleControl"> |
75 |
<Setter Property="Template"> |
76 |
<Setter.Value>
|
77 |
<ControlTemplate TargetType="Angle:AngleControl"> |
78 |
<Border BorderBrush="#FF051F25" BorderThickness="2" Opacity="0.7" Width="120"> |
79 |
<Border.Background>
|
80 |
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
81 |
<GradientStop Color="#FF00CDFF" Offset="0" /> |
82 |
<GradientStop Color="#ff4185f3" Offset="1" /> |
83 |
</LinearGradientBrush>
|
84 |
</Border.Background>
|
85 |
<Grid>
|
86 |
<TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}" Margin="5" |
87 |
FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center" /> |
88 |
<TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right" |
89 |
Opacity="0.9" |
90 |
FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0" /> |
91 |
</Grid>
|
92 |
</Border>
|
93 |
</ControlTemplate>
|
94 |
</Setter.Value>
|
95 |
</Setter>
|
96 |
</Style>
|
97 |
|
98 |
<Style TargetType="{x:Type Line:LineControl}"> |
99 |
<Setter Property="Template"> |
100 |
<Setter.Value>
|
101 |
<ControlTemplate TargetType="{x:Type Line:LineControl}"> |
102 |
<Path x:Name="PART_LinePath" |
103 |
Stroke="{TemplateBinding StrokeColor}" |
104 |
StrokeThickness="{TemplateBinding LineSize}" |
105 |
Data="{TemplateBinding PathData}" |
106 |
RenderTransformOrigin="0.5,0.5" |
107 |
Fill="{TemplateBinding StrokeColor}"> |
108 |
</Path>
|
109 |
</ControlTemplate>
|
110 |
</Setter.Value>
|
111 |
</Setter>
|
112 |
</Style>
|
113 |
|
114 |
<Style TargetType="{x:Type Line:ArcControl}"> |
115 |
<Setter Property="Template"> |
116 |
<Setter.Value>
|
117 |
<ControlTemplate TargetType="{x:Type Line:ArcControl}"> |
118 |
<Path x:Name="PART_ArcPath" |
119 |
Stroke="{TemplateBinding StrokeColor}" |
120 |
StrokeThickness="{TemplateBinding LineSize}" |
121 |
Data="{TemplateBinding PathData}" |
122 |
RenderTransformOrigin="0.5,0.5" |
123 |
Fill="{TemplateBinding StrokeColor}"> |
124 |
</Path>
|
125 |
</ControlTemplate>
|
126 |
</Setter.Value>
|
127 |
</Setter>
|
128 |
</Style>
|
129 |
<Style TargetType="{x:Type Line:ArrowArcControl}"> |
130 |
<Setter Property="Template"> |
131 |
<Setter.Value>
|
132 |
<ControlTemplate TargetType="{x:Type Line:ArrowArcControl}"> |
133 |
<Path x:Name="PART_ArcPath" |
134 |
Stroke="{TemplateBinding StrokeColor}" |
135 |
StrokeThickness="{TemplateBinding LineSize}" |
136 |
Data="{TemplateBinding PathData}" |
137 |
RenderTransformOrigin="0.5,0.5" |
138 |
Fill="{TemplateBinding StrokeColor}"> |
139 |
</Path>
|
140 |
</ControlTemplate>
|
141 |
</Setter.Value>
|
142 |
</Setter>
|
143 |
</Style>
|
144 |
<Style TargetType="{x:Type Line:ArrowControl_Multi}"> |
145 |
<Setter Property="Template"> |
146 |
<Setter.Value>
|
147 |
<ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}"> |
148 |
<Path x:Name="PART_ArrowMultiPath" |
149 |
Stroke="{TemplateBinding StrokeColor}" |
150 |
Fill="{TemplateBinding StrokeColor}" |
151 |
StrokeThickness="{TemplateBinding LineSize}" |
152 |
Data="{TemplateBinding PathData}" /> |
153 |
</ControlTemplate>
|
154 |
</Setter.Value>
|
155 |
</Setter>
|
156 |
</Style>
|
157 |
|
158 |
<Style TargetType="{x:Type Shape:RectangleControl}"> |
159 |
<Setter Property="Template"> |
160 |
<Setter.Value>
|
161 |
<ControlTemplate TargetType="{x:Type Shape:RectangleControl}"> |
162 |
<Path x:Name="PART_RectPath" |
163 |
Stroke="{TemplateBinding StrokeColor}" |
164 |
StrokeThickness="{TemplateBinding LineSize}" |
165 |
Data="{TemplateBinding PathData}" |
166 |
Fill="{TemplateBinding FillColor}" |
167 |
RenderTransformOrigin="0.5,0.5"> |
168 |
<!--<Path.OpacityMask>
|
169 |
<RadialGradientBrush>
|
170 |
<RadialGradientBrush.GradientStops>
|
171 |
<GradientStop Offset="0" Color="#FF000000" />
|
172 |
<GradientStop Offset="1" Color="#00000000" />
|
173 |
</RadialGradientBrush.GradientStops>
|
174 |
</RadialGradientBrush>
|
175 |
</Path.OpacityMask>-->
|
176 |
</Path>
|
177 |
</ControlTemplate>
|
178 |
</Setter.Value>
|
179 |
</Setter>
|
180 |
</Style>
|
181 |
|
182 |
<Style TargetType="{x:Type Shape:TriControl}"> |
183 |
<Setter Property="Template"> |
184 |
<Setter.Value>
|
185 |
<ControlTemplate TargetType="{x:Type Shape:TriControl}"> |
186 |
<Path x:Name="PART_TriPath" |
187 |
Stroke="{TemplateBinding StrokeColor}" |
188 |
StrokeThickness="{TemplateBinding LineSize}" |
189 |
Data="{TemplateBinding PathData}" |
190 |
Fill="{TemplateBinding FillColor}"> |
191 |
</Path>
|
192 |
</ControlTemplate>
|
193 |
</Setter.Value>
|
194 |
</Setter>
|
195 |
</Style>
|
196 |
|
197 |
<Style TargetType="{x:Type Shape:CircleControl}"> |
198 |
<Setter Property="Template"> |
199 |
<Setter.Value>
|
200 |
<ControlTemplate TargetType="Shape:CircleControl"> |
201 |
<Path x:Name="PART_CirclePath" |
202 |
Stroke="{TemplateBinding StrokeColor}" |
203 |
StrokeThickness="{TemplateBinding LineSize}" |
204 |
Fill="{TemplateBinding FillColor}" |
205 |
Data="{TemplateBinding PathData}" |
206 |
RenderTransformOrigin="0.5,0.5"> |
207 |
<Path.RenderTransform>
|
208 |
<TransformGroup>
|
209 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
210 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
211 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
212 |
</TransformGroup>
|
213 |
</Path.RenderTransform>
|
214 |
</Path>
|
215 |
</ControlTemplate>
|
216 |
</Setter.Value>
|
217 |
</Setter>
|
218 |
</Style>
|
219 |
|
220 |
<Style TargetType="{x:Type polygon:CloudControl}"> |
221 |
<Setter Property="Template"> |
222 |
<Setter.Value>
|
223 |
<ControlTemplate TargetType="polygon:CloudControl"> |
224 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
225 |
<Path x:Name="PART_CloudPath" |
226 |
Stroke="{TemplateBinding StrokeColor}" |
227 |
Fill="{TemplateBinding FillColor}" |
228 |
StrokeThickness="{TemplateBinding LineSize}" |
229 |
Data="{TemplateBinding PathData}" |
230 |
RenderTransformOrigin="0,0" /> |
231 |
<Path x:Name="PART_CloudSubPath" |
232 |
Stroke="Transparent" |
233 |
Fill="{TemplateBinding FillColor}" |
234 |
StrokeThickness="{TemplateBinding LineSize}" |
235 |
Data="{TemplateBinding PathSubData}" |
236 |
RenderTransformOrigin="0,0" /> |
237 |
</Canvas>
|
238 |
</ControlTemplate>
|
239 |
</Setter.Value>
|
240 |
</Setter>
|
241 |
</Style>
|
242 |
|
243 |
<Style TargetType="{x:Type Shape:RectCloudControl}"> |
244 |
<Setter Property="Template"> |
245 |
<Setter.Value>
|
246 |
<ControlTemplate TargetType="Shape:RectCloudControl"> |
247 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
248 |
<Path x:Name="PART_ArcPath" |
249 |
Stroke="{TemplateBinding StrokeColor}" |
250 |
Fill="{TemplateBinding FillColor}" |
251 |
StrokeThickness="{TemplateBinding LineSize}" |
252 |
Data="{TemplateBinding PathData}" |
253 |
RenderTransformOrigin="0,0" /> |
254 |
<Path x:Name="PART_BodyPath" |
255 |
Stroke="Transparent" |
256 |
Fill="{TemplateBinding FillColor}" |
257 |
StrokeThickness="{TemplateBinding LineSize}" |
258 |
Data="{TemplateBinding PathSubData}" |
259 |
RenderTransformOrigin="0,0" /> |
260 |
</Canvas>
|
261 |
</ControlTemplate>
|
262 |
</Setter.Value>
|
263 |
</Setter>
|
264 |
</Style>
|
265 |
|
266 |
<Style TargetType="{x:Type polygon:PolygonControl}"> |
267 |
<Setter Property="Template"> |
268 |
<Setter.Value>
|
269 |
<ControlTemplate TargetType="{x:Type polygon:PolygonControl}"> |
270 |
<Path x:Name="PART_PolyPath" |
271 |
Stroke="{TemplateBinding StrokeColor}" |
272 |
StrokeThickness="{TemplateBinding LineSize}" |
273 |
Data="{TemplateBinding PathData}" |
274 |
RenderTransformOrigin="0.5,0.5"> |
275 |
</Path>
|
276 |
</ControlTemplate>
|
277 |
</Setter.Value>
|
278 |
</Setter>
|
279 |
</Style>
|
280 |
|
281 |
<Style TargetType="{x:Type polygon:InkControl}"> |
282 |
<Setter Property="Template"> |
283 |
<Setter.Value>
|
284 |
<ControlTemplate TargetType="{x:Type polygon:InkControl}"> |
285 |
<Path x:Name="PART_PolyPath" |
286 |
Stroke="{TemplateBinding StrokeColor}" |
287 |
StrokeThickness="{TemplateBinding LineSize}" |
288 |
Data="{TemplateBinding PathData}" |
289 |
RenderTransformOrigin="0.5,0.5"> |
290 |
</Path>
|
291 |
</ControlTemplate>
|
292 |
</Setter.Value>
|
293 |
</Setter>
|
294 |
</Style>
|
295 |
|
296 |
<!--<Style TargetType="Text:TextControl">-->
|
297 |
<Style TargetType="{x:Type Text:TextControl}"> |
298 |
<Setter Property="Template"> |
299 |
<Setter.Value>
|
300 |
<!--<ControlTemplate TargetType="Text:TextControl">-->
|
301 |
<ControlTemplate TargetType="{x:Type Text:TextControl}"> |
302 |
<Canvas Background="Red" x:Name="PART_TextControlCanvas"> |
303 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0"> |
304 |
<Grid.RenderTransform>
|
305 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
306 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
307 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
308 |
|
309 |
<!--<RotateTransform Angle="{TemplateBinding Angle}"
|
310 |
CenterX="{TemplateBinding CenterX}"
|
311 |
CenterY="{TemplateBinding CenterY}">
|
312 |
</RotateTransform>-->
|
313 |
</Grid.RenderTransform>
|
314 |
</Grid>
|
315 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2"> |
316 |
<Grid.Background>
|
317 |
<SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" /> |
318 |
</Grid.Background>
|
319 |
<Grid.RenderTransform>
|
320 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
321 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
322 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
323 |
</Grid.RenderTransform>
|
324 |
<Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5"> |
325 |
</Border>
|
326 |
<Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"> |
327 |
</Border>
|
328 |
|
329 |
<TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False" |
330 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
331 |
FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" |
332 |
RenderTransformOrigin="0, 0"> |
333 |
</TextBlock>
|
334 |
<Border Background="Transparent"> |
335 |
|
336 |
<TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}" |
337 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
338 |
FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0" |
339 |
Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
340 |
RenderTransformOrigin="0, 0"> |
341 |
</TextBlock>
|
342 |
</Border>
|
343 |
|
344 |
<TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}" IsTabStop="False" AcceptsTab="False" |
345 |
Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2" |
346 |
TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" |
347 |
FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"> |
348 |
</TextBox>
|
349 |
|
350 |
<Canvas>
|
351 |
<Border x:Name="Caret" |
352 |
Visibility="Collapsed" |
353 |
Canvas.Left="0" |
354 |
Canvas.Top="0" |
355 |
Width="3" |
356 |
Height="33" |
357 |
Background="Red"> |
358 |
<Border.Triggers>
|
359 |
<EventTrigger RoutedEvent="Border.Loaded"> |
360 |
<BeginStoryboard>
|
361 |
<Storyboard x:Name="CaretStoryBoard" |
362 |
RepeatBehavior="Forever"> |
363 |
<ColorAnimationUsingKeyFrames
|
364 |
Storyboard.TargetProperty="Background.Color" |
365 |
Duration="0:0:0:1" |
366 |
FillBehavior="HoldEnd"> |
367 |
<ColorAnimationUsingKeyFrames.KeyFrames>
|
368 |
<DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" /> |
369 |
<DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black" /> |
370 |
</ColorAnimationUsingKeyFrames.KeyFrames>
|
371 |
</ColorAnimationUsingKeyFrames>
|
372 |
</Storyboard>
|
373 |
</BeginStoryboard>
|
374 |
</EventTrigger>
|
375 |
</Border.Triggers>
|
376 |
</Border>
|
377 |
</Canvas>
|
378 |
</Grid>
|
379 |
|
380 |
<Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False" |
381 |
Fill="{TemplateBinding BackInnerColor}"> |
382 |
<Path.RenderTransform>
|
383 |
<!--<RotateTransform Angle="{TemplateBinding Angle}"
|
384 |
CenterX="{TemplateBinding CenterX}"
|
385 |
CenterY="{TemplateBinding CenterY}">
|
386 |
</RotateTransform>-->
|
387 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
388 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
389 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
390 |
</Path.RenderTransform>
|
391 |
</Path>
|
392 |
|
393 |
<Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1"> |
394 |
<Path.Fill>
|
395 |
<SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6" /> |
396 |
</Path.Fill>
|
397 |
<Path.RenderTransform>
|
398 |
<!--<RotateTransform Angle="{TemplateBinding Angle}"
|
399 |
CenterX="{TemplateBinding CenterX}"
|
400 |
CenterY="{TemplateBinding CenterY}">
|
401 |
</RotateTransform>-->
|
402 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
403 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
404 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
405 |
</Path.RenderTransform>
|
406 |
</Path>
|
407 |
</Canvas>
|
408 |
</ControlTemplate>
|
409 |
</Setter.Value>
|
410 |
</Setter>
|
411 |
</Style>
|
412 |
|
413 |
<!--<Style TargetType="{x:Type Text:TextControl}">
|
414 |
<Setter Property="Template">
|
415 |
<Setter.Value>
|
416 |
<ControlTemplate TargetType="{x:Type Text:TextControl}">
|
417 |
<Canvas>
|
418 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
|
419 |
<Grid.RenderTransform>
|
420 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
421 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
422 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
|
423 |
</Grid.RenderTransform>
|
424 |
</Grid>
|
425 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
|
426 |
<Grid.Background>
|
427 |
<SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
|
428 |
</Grid.Background>
|
429 |
<Grid.RenderTransform>
|
430 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
431 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
432 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
|
433 |
</Grid.RenderTransform>
|
434 |
<Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
|
435 |
</Border>
|
436 |
<TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
|
437 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}"
|
438 |
FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
|
439 |
RenderTransformOrigin="0, 0">
|
440 |
</TextBlock>
|
441 |
<TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
|
442 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}"
|
443 |
FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
|
444 |
RenderTransformOrigin="0, 0"
|
445 |
Visibility="{TemplateBinding TextBlockVisibility}">
|
446 |
</TextBlock>
|
447 |
<TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
|
448 |
AcceptsReturn="True" TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}"
|
449 |
FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
|
450 |
Visibility="{TemplateBinding TextBoxVisibility}">
|
451 |
</TextBox>
|
452 |
</Grid>
|
453 |
|
454 |
<Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
|
455 |
StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
|
456 |
<Path.RenderTransform>
|
457 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
458 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
459 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
|
460 |
</Path.RenderTransform>
|
461 |
</Path>
|
462 |
</Canvas>
|
463 |
</ControlTemplate>
|
464 |
</Setter.Value>
|
465 |
</Setter>
|
466 |
</Style>-->
|
467 |
|
468 |
<Style TargetType="{x:Type Text:ArrowTextControl}"> |
469 |
<Setter Property="Template"> |
470 |
<Setter.Value>
|
471 |
<ControlTemplate TargetType="{x:Type Text:ArrowTextControl}"> |
472 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
473 |
|
474 |
<!--<Path x:Name="PART_ArrowPath"
|
475 |
Stroke="{TemplateBinding StrokeColor}"
|
476 |
StrokeThickness="{TemplateBinding LineSize}"
|
477 |
Data="{TemplateBinding PathData}"
|
478 |
Fill="{TemplateBinding StrokeColor}">
|
479 |
</Path>-->
|
480 |
|
481 |
<Path x:Name="PART_ArrowPath" Panel.ZIndex="0" |
482 |
Stroke="{TemplateBinding StrokeColor}" |
483 |
StrokeThickness="{TemplateBinding LineSize}" |
484 |
Data="{TemplateBinding PathData}" |
485 |
Fill="{TemplateBinding StrokeColor}" /> |
486 |
|
487 |
<!--<Path x:Name="PART_ArrowSubPath"
|
488 |
Stroke="{TemplateBinding StrokeColor}"
|
489 |
StrokeThickness="{TemplateBinding LineSize}"
|
490 |
Fill="{TemplateBinding SubPathFill}"
|
491 |
Data="{TemplateBinding SubPathData}"
|
492 |
RenderTransformOrigin="0,0" />-->
|
493 |
|
494 |
<Path x:Name="PART_ArrowSubPath" Panel.ZIndex="2" |
495 |
Stroke="{TemplateBinding StrokeColor}" |
496 |
StrokeThickness="{TemplateBinding LineSize}" |
497 |
Fill="{TemplateBinding SubPathFill}" |
498 |
Data="{TemplateBinding SubPathData}" |
499 |
RenderTransformOrigin="0,0" /> |
500 |
|
501 |
<Path x:Name="PART_TextBoxBackBorder" |
502 |
Stroke="Transparent" |
503 |
Fill="{TemplateBinding BackInnerColor}" Panel.ZIndex="1" |
504 |
Data="{TemplateBinding PathDataInner}" |
505 |
RenderTransformOrigin="0,0" /> |
506 |
<!--<TextBlock x:Name="PART_ArrowTextBlock"
|
507 |
Margin="0.5"
|
508 |
Background="{TemplateBinding TextBoxBackground}"
|
509 |
FontSize="{TemplateBinding TextSize}"
|
510 |
FontFamily="{TemplateBinding TextFamily}"
|
511 |
FontStyle="{TemplateBinding TextStyle}"
|
512 |
FontWeight="{TemplateBinding TextWeight}"
|
513 |
Foreground="{TemplateBinding StrokeColor}"
|
514 |
HorizontalAlignment="Stretch"
|
515 |
TextWrapping="Wrap"
|
516 |
Text="{TemplateBinding ArrowText}"
|
517 |
RenderTransformOrigin="0.5,0.5">
|
518 |
<TextBlock.RenderTransform>
|
519 |
<RotateTransform Angle="{TemplateBinding Angle}"
|
520 |
CenterX="{TemplateBinding CenterX}"
|
521 |
CenterY="{TemplateBinding CenterY}">
|
522 |
</RotateTransform>
|
523 |
</TextBlock.RenderTransform>
|
524 |
</TextBlock>-->
|
525 |
|
526 |
<Canvas Panel.ZIndex="4"> |
527 |
<Border x:Name="Caret" |
528 |
Visibility="Collapsed" |
529 |
Canvas.Left="0" |
530 |
Canvas.Top="0" |
531 |
Width="5" |
532 |
RenderTransformOrigin="0.5,0.5" |
533 |
Height="{Binding ActualHeight,ElementName=CaretHeightTextBlock}"> |
534 |
<Border.Background>
|
535 |
<SolidColorBrush Color="#B2930909" /> |
536 |
</Border.Background>
|
537 |
<TextBlock Text="A" x:Name="CaretHeightTextBlock" Foreground="Transparent" FontSize="{TemplateBinding TextSize}" |
538 |
FontFamily="{TemplateBinding TextFamily}" TextWrapping="NoWrap" |
539 |
FontStyle="{TemplateBinding TextStyle}" /> |
540 |
<!--<Border.RenderTransform>
|
541 |
<RotateTransform Angle="{Binding VisualPageAngle, Converter={StaticResource ValueBindingTestConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
542 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
543 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
544 |
</Border.RenderTransform>-->
|
545 |
<Border.Triggers>
|
546 |
<EventTrigger RoutedEvent="FrameworkElement.Loaded"> |
547 |
<BeginStoryboard>
|
548 |
<Storyboard x:Name="CaretStoryBoard" |
549 |
RepeatBehavior="Forever"> |
550 |
<ColorAnimationUsingKeyFrames
|
551 |
Storyboard.TargetProperty="Background.Color" |
552 |
Duration="0:0:0:1" |
553 |
FillBehavior="HoldEnd"> |
554 |
<DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" /> |
555 |
<DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="#B2930909" /> |
556 |
</ColorAnimationUsingKeyFrames>
|
557 |
</Storyboard>
|
558 |
</BeginStoryboard>
|
559 |
</EventTrigger>
|
560 |
</Border.Triggers>
|
561 |
</Border>
|
562 |
</Canvas>
|
563 |
<TextBox x:Name="PART_ArrowTextBox" |
564 |
Margin="0.5" Panel.ZIndex="5" |
565 |
Background="{TemplateBinding TextBoxBackground}" |
566 |
BorderThickness="{TemplateBinding BorderSize}" |
567 |
BorderBrush="{TemplateBinding StrokeColor}" |
568 |
FontSize="{TemplateBinding TextSize}" |
569 |
FontFamily="{TemplateBinding TextFamily}" |
570 |
FontStyle="{TemplateBinding TextStyle}" |
571 |
FontWeight="{TemplateBinding TextWeight}" |
572 |
TextDecorations="{TemplateBinding UnderLine}" |
573 |
AcceptsReturn="True" |
574 |
Foreground="{TemplateBinding StrokeColor}" |
575 |
HorizontalAlignment="Stretch" |
576 |
TextWrapping="Wrap" |
577 |
CaretBrush="DarkBlue" |
578 |
Text="{TemplateBinding ArrowText}" |
579 |
RenderTransformOrigin="0.5,0.5"> |
580 |
<!--<TextBox.RenderTransform>
|
581 |
<RotateTransform Angle="{Binding VisualPageAngle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
582 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
583 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
584 |
</TextBox.RenderTransform>-->
|
585 |
</TextBox>
|
586 |
</Canvas>
|
587 |
</ControlTemplate>
|
588 |
</Setter.Value>
|
589 |
</Setter>
|
590 |
</Style>
|
591 |
|
592 |
<Style TargetType="Etc:DateControl"> |
593 |
<Setter Property="Template"> |
594 |
<Setter.Value>
|
595 |
<ControlTemplate TargetType="Etc:DateControl"> |
596 |
<Viewbox x:Name="PART_ViewBox"> |
597 |
<TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" |
598 |
Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5"> |
599 |
<TextBlock.RenderTransform>
|
600 |
<TransformGroup>
|
601 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
602 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
603 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
604 |
</TransformGroup>
|
605 |
</TextBlock.RenderTransform>
|
606 |
</TextBlock>
|
607 |
</Viewbox>
|
608 |
</ControlTemplate>
|
609 |
</Setter.Value>
|
610 |
</Setter>
|
611 |
</Style>
|
612 |
|
613 |
<Style TargetType="Etc:SignControl"> |
614 |
<Setter Property="Template"> |
615 |
<Setter.Value>
|
616 |
<ControlTemplate TargetType="Etc:SignControl"> |
617 |
<Image x:Name="PART_Image" Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
618 |
<Image.RenderTransform>
|
619 |
<TransformGroup>
|
620 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
621 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
622 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
623 |
</TransformGroup>
|
624 |
</Image.RenderTransform>
|
625 |
</Image>
|
626 |
</ControlTemplate>
|
627 |
</Setter.Value>
|
628 |
</Setter>
|
629 |
</Style>
|
630 |
|
631 |
<Style TargetType="Etc:ImgControl"> |
632 |
<Setter Property="Template"> |
633 |
<Setter.Value>
|
634 |
<ControlTemplate TargetType="Etc:ImgControl"> |
635 |
<Image x:Name="PART_Image" Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
636 |
<Image.RenderTransform>
|
637 |
<TransformGroup>
|
638 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
639 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
640 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
641 |
</TransformGroup>
|
642 |
</Image.RenderTransform>
|
643 |
</Image>
|
644 |
</ControlTemplate>
|
645 |
</Setter.Value>
|
646 |
</Setter>
|
647 |
</Style>
|
648 |
|
649 |
<!--강인구 추가-->
|
650 |
<Style TargetType="Etc:SymControl"> |
651 |
<Setter Property="Template"> |
652 |
<Setter.Value>
|
653 |
<ControlTemplate TargetType="Etc:SymControl"> |
654 |
<Viewbox x:Name="PART_ViewBox"> |
655 |
<Path x:Name="PART_SymPath" Stroke="{TemplateBinding StrokeColor}" StrokeThickness="{TemplateBinding LineSize}" |
656 |
Data="{TemplateBinding PathData}" |
657 |
RenderTransformOrigin="0.5,0.5"> |
658 |
<Path.RenderTransform>
|
659 |
<TransformGroup>
|
660 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
661 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
662 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
663 |
</TransformGroup>
|
664 |
</Path.RenderTransform>
|
665 |
</Path>
|
666 |
</Viewbox>
|
667 |
</ControlTemplate>
|
668 |
</Setter.Value>
|
669 |
</Setter>
|
670 |
</Style>
|
671 |
|
672 |
<Style TargetType="Etc:SymControlN"> |
673 |
<Setter Property="Template"> |
674 |
<Setter.Value>
|
675 |
<ControlTemplate TargetType="Etc:SymControlN"> |
676 |
<Viewbox x:Name="PART_ViewBox" RenderTransformOrigin="0.5,0.5"> |
677 |
<Viewbox.RenderTransform>
|
678 |
<TransformGroup>
|
679 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
680 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
681 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
682 |
</TransformGroup>
|
683 |
</Viewbox.RenderTransform>
|
684 |
</Viewbox>
|
685 |
</ControlTemplate>
|
686 |
</Setter.Value>
|
687 |
</Setter>
|
688 |
</Style>
|
689 |
</ResourceDictionary>
|