markus / MarkupToPDF / Themes / generic.xaml @ 0d00f9c8
이력 | 보기 | 이력해설 | 다운로드 (35.9 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 |
|
326 |
</Border>
|
327 |
<Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"> |
328 |
|
329 |
</Border>
|
330 |
|
331 |
<TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False" |
332 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
333 |
FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" |
334 |
RenderTransformOrigin="0, 0" > |
335 |
</TextBlock>
|
336 |
<Border Background="Transparent"> |
337 |
|
338 |
<TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}" |
339 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
340 |
FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0" |
341 |
Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
342 |
RenderTransformOrigin="0, 0" > |
343 |
</TextBlock>
|
344 |
</Border>
|
345 |
|
346 |
<TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}" IsTabStop="False" AcceptsTab="False" |
347 |
Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2" |
348 |
TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" |
349 |
FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" |
350 |
>
|
351 |
</TextBox>
|
352 |
</Grid>
|
353 |
|
354 |
<Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False" |
355 |
Fill="{TemplateBinding BackInnerColor}"> |
356 |
<Path.RenderTransform>
|
357 |
<!--<RotateTransform Angle="{TemplateBinding Angle}"
|
358 |
CenterX="{TemplateBinding CenterX}"
|
359 |
CenterY="{TemplateBinding CenterY}">
|
360 |
</RotateTransform>-->
|
361 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
362 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
363 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
364 |
|
365 |
/>
|
366 |
</Path.RenderTransform>
|
367 |
</Path>
|
368 |
|
369 |
<Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1"> |
370 |
<Path.Fill>
|
371 |
<SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/> |
372 |
</Path.Fill>
|
373 |
<Path.RenderTransform>
|
374 |
<!--<RotateTransform Angle="{TemplateBinding Angle}"
|
375 |
CenterX="{TemplateBinding CenterX}"
|
376 |
CenterY="{TemplateBinding CenterY}">
|
377 |
</RotateTransform>-->
|
378 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
379 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
380 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
381 |
|
382 |
/>
|
383 |
</Path.RenderTransform>
|
384 |
</Path>
|
385 |
|
386 |
|
387 |
</Canvas>
|
388 |
</ControlTemplate>
|
389 |
</Setter.Value>
|
390 |
</Setter>
|
391 |
</Style>
|
392 |
|
393 |
<!--<Style TargetType="{x:Type Text:TextControl}">
|
394 |
<Setter Property="Template">
|
395 |
<Setter.Value>
|
396 |
<ControlTemplate TargetType="{x:Type Text:TextControl}">
|
397 |
<Canvas>
|
398 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
|
399 |
<Grid.RenderTransform>
|
400 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
401 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
402 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
|
403 |
</Grid.RenderTransform>
|
404 |
</Grid>
|
405 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
|
406 |
<Grid.Background>
|
407 |
<SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
|
408 |
</Grid.Background>
|
409 |
<Grid.RenderTransform>
|
410 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
411 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
412 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
|
413 |
</Grid.RenderTransform>
|
414 |
<Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
|
415 |
|
416 |
</Border>
|
417 |
<TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
|
418 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}"
|
419 |
FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
|
420 |
RenderTransformOrigin="0, 0">
|
421 |
</TextBlock>
|
422 |
<TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
|
423 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}"
|
424 |
FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
|
425 |
RenderTransformOrigin="0, 0"
|
426 |
Visibility="{TemplateBinding TextBlockVisibility}" >
|
427 |
</TextBlock>
|
428 |
<TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
|
429 |
AcceptsReturn="True" TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}"
|
430 |
FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
|
431 |
Visibility="{TemplateBinding TextBoxVisibility}" >
|
432 |
</TextBox>
|
433 |
</Grid>
|
434 |
|
435 |
|
436 |
<Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
|
437 |
StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
|
438 |
<Path.RenderTransform>
|
439 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
440 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
441 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
|
442 |
</Path.RenderTransform>
|
443 |
</Path>
|
444 |
</Canvas>
|
445 |
</ControlTemplate>
|
446 |
</Setter.Value>
|
447 |
</Setter>
|
448 |
</Style>-->
|
449 |
|
450 |
<Style TargetType="{x:Type Text:ArrowTextControl}"> |
451 |
<Setter Property="Template"> |
452 |
<Setter.Value>
|
453 |
<ControlTemplate TargetType="{x:Type Text:ArrowTextControl}"> |
454 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
455 |
|
456 |
|
457 |
<!--<Path x:Name="PART_ArrowPath"
|
458 |
Stroke="{TemplateBinding StrokeColor}"
|
459 |
StrokeThickness="{TemplateBinding LineSize}"
|
460 |
Data="{TemplateBinding PathData}"
|
461 |
Fill="{TemplateBinding StrokeColor}">
|
462 |
</Path>-->
|
463 |
|
464 |
<Path x:Name="PART_ArrowPath" Canvas.ZIndex="0" |
465 |
Stroke="{TemplateBinding StrokeColor}" |
466 |
StrokeThickness="{TemplateBinding LineSize}" |
467 |
Data="{TemplateBinding PathData}" |
468 |
Fill="{TemplateBinding StrokeColor}"/> |
469 |
|
470 |
<!--<Path x:Name="PART_ArrowSubPath"
|
471 |
Stroke="{TemplateBinding StrokeColor}"
|
472 |
StrokeThickness="{TemplateBinding LineSize}"
|
473 |
Fill="{TemplateBinding SubPathFill}"
|
474 |
Data="{TemplateBinding SubPathData}"
|
475 |
RenderTransformOrigin="0,0"/>-->
|
476 |
|
477 |
<Path x:Name="PART_ArrowSubPath" Canvas.ZIndex="2" |
478 |
Stroke="{TemplateBinding StrokeColor}" |
479 |
StrokeThickness="{TemplateBinding LineSize}" |
480 |
Fill="{TemplateBinding SubPathFill }" |
481 |
Data="{TemplateBinding SubPathData}" |
482 |
RenderTransformOrigin="0,0"/> |
483 |
|
484 |
<Path
|
485 |
Stroke="Transparent" |
486 |
Fill="{TemplateBinding BackInnerColor }" Canvas.ZIndex="1" |
487 |
Data="{TemplateBinding PathDataInner}" |
488 |
RenderTransformOrigin="0,0"/> |
489 |
|
490 |
|
491 |
<!--<TextBlock x:Name="PART_ArrowTextBlock"
|
492 |
Margin="0.5"
|
493 |
Background="{TemplateBinding TextBoxBackground}"
|
494 |
FontSize="{TemplateBinding TextSize}"
|
495 |
FontFamily="{TemplateBinding TextFamily}"
|
496 |
FontStyle="{TemplateBinding TextStyle}"
|
497 |
FontWeight="{TemplateBinding TextWeight}"
|
498 |
Foreground="{TemplateBinding StrokeColor}"
|
499 |
HorizontalAlignment="Stretch"
|
500 |
TextWrapping="Wrap"
|
501 |
Text="{TemplateBinding ArrowText}"
|
502 |
RenderTransformOrigin="0.5,0.5">
|
503 |
<TextBlock.RenderTransform>
|
504 |
<RotateTransform Angle="{TemplateBinding Angle}"
|
505 |
CenterX="{TemplateBinding CenterX}"
|
506 |
CenterY="{TemplateBinding CenterY}">
|
507 |
</RotateTransform>
|
508 |
</TextBlock.RenderTransform>
|
509 |
</TextBlock>-->
|
510 |
|
511 |
<TextBox x:Name="PART_ArrowTextBox" |
512 |
Margin="0.5" Canvas.ZIndex="4" |
513 |
Background="{TemplateBinding TextBoxBackground}" |
514 |
BorderThickness="{TemplateBinding BorderSize}" |
515 |
BorderBrush="{TemplateBinding StrokeColor}" |
516 |
FontSize="{TemplateBinding TextSize}" |
517 |
FontFamily="{TemplateBinding TextFamily}" |
518 |
FontStyle="{TemplateBinding TextStyle}" |
519 |
FontWeight="{TemplateBinding TextWeight}" |
520 |
TextDecorations="{TemplateBinding UnderLine}" |
521 |
AcceptsReturn="True" |
522 |
Foreground="{TemplateBinding StrokeColor}" |
523 |
HorizontalAlignment="Stretch" |
524 |
TextWrapping="Wrap" |
525 |
Text="{TemplateBinding ArrowText}" |
526 |
RenderTransformOrigin="0.5,0.5"> |
527 |
<TextBox.RenderTransform>
|
528 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
529 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
530 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"> |
531 |
</RotateTransform>
|
532 |
</TextBox.RenderTransform>
|
533 |
</TextBox>
|
534 |
</Canvas>
|
535 |
</ControlTemplate>
|
536 |
</Setter.Value>
|
537 |
</Setter>
|
538 |
</Style>
|
539 |
|
540 |
<Style TargetType="Etc:DateControl"> |
541 |
<Setter Property="Template"> |
542 |
<Setter.Value>
|
543 |
<ControlTemplate TargetType="Etc:DateControl"> |
544 |
<Viewbox x:Name="PART_ViewBox" > |
545 |
<TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" |
546 |
Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5"> |
547 |
<TextBlock.RenderTransform>
|
548 |
<TransformGroup>
|
549 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
550 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
551 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
552 |
</TransformGroup>
|
553 |
</TextBlock.RenderTransform>
|
554 |
</TextBlock>
|
555 |
</Viewbox>
|
556 |
</ControlTemplate>
|
557 |
</Setter.Value>
|
558 |
</Setter>
|
559 |
</Style>
|
560 |
|
561 |
<Style TargetType="Etc:SignControl"> |
562 |
<Setter Property="Template"> |
563 |
<Setter.Value>
|
564 |
<ControlTemplate TargetType="Etc:SignControl"> |
565 |
<Image x:Name="PART_Image" Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
566 |
<Image.RenderTransform>
|
567 |
<TransformGroup>
|
568 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
569 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
570 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
571 |
</TransformGroup>
|
572 |
</Image.RenderTransform>
|
573 |
</Image>
|
574 |
</ControlTemplate>
|
575 |
</Setter.Value>
|
576 |
</Setter>
|
577 |
</Style>
|
578 |
|
579 |
<Style TargetType="Etc:ImgControl"> |
580 |
<Setter Property="Template"> |
581 |
<Setter.Value>
|
582 |
<ControlTemplate TargetType="Etc:ImgControl"> |
583 |
<Image x:Name="PART_Image" Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
584 |
<Image.RenderTransform>
|
585 |
<TransformGroup>
|
586 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
587 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
588 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
589 |
</TransformGroup>
|
590 |
</Image.RenderTransform>
|
591 |
</Image>
|
592 |
</ControlTemplate>
|
593 |
</Setter.Value>
|
594 |
</Setter>
|
595 |
</Style>
|
596 |
|
597 |
<!--강인구 추가-->
|
598 |
<Style TargetType="Etc:SymControl"> |
599 |
<Setter Property="Template"> |
600 |
<Setter.Value>
|
601 |
<ControlTemplate TargetType="Etc:SymControl"> |
602 |
<Viewbox x:Name="PART_ViewBox"> |
603 |
<Path x:Name="PART_SymPath" Stroke="{TemplateBinding StrokeColor}" StrokeThickness="{TemplateBinding LineSize}" |
604 |
Data="{TemplateBinding PathData}" |
605 |
RenderTransformOrigin="0.5,0.5"> |
606 |
<Path.RenderTransform>
|
607 |
<TransformGroup>
|
608 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
609 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
610 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
611 |
</TransformGroup>
|
612 |
</Path.RenderTransform>
|
613 |
</Path>
|
614 |
</Viewbox>
|
615 |
</ControlTemplate>
|
616 |
</Setter.Value>
|
617 |
</Setter>
|
618 |
</Style>
|
619 |
|
620 |
<Style TargetType="Etc:SymControlN"> |
621 |
<Setter Property="Template"> |
622 |
<Setter.Value>
|
623 |
<ControlTemplate TargetType="Etc:SymControlN"> |
624 |
<Viewbox x:Name="PART_ViewBox" RenderTransformOrigin="0.5,0.5"> |
625 |
<Viewbox.RenderTransform>
|
626 |
<TransformGroup>
|
627 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
628 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
629 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
630 |
</TransformGroup>
|
631 |
</Viewbox.RenderTransform>
|
632 |
</Viewbox>
|
633 |
</ControlTemplate>
|
634 |
</Setter.Value>
|
635 |
</Setter>
|
636 |
</Style>
|
637 |
|
638 |
|
639 |
</ResourceDictionary>
|