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