markus / FinalService / FinalServiceBase / MarkupToPDF / Themes / generic.xaml.bak @ 42d49521
이력 | 보기 | 이력해설 | 다운로드 (30.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 |
|
10 |
<Style TargetType="Angle:AngleControl"> |
11 |
<Setter Property="Template"> |
12 |
<Setter.Value> |
13 |
<ControlTemplate TargetType="Angle:AngleControl"> |
14 |
<Border BorderBrush="#FF051F25" BorderThickness="2" Opacity="0.7" Width="120"> |
15 |
<Border.Background> |
16 |
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
17 |
<GradientStop Color="#FF00CDFF" Offset="0"/> |
18 |
<GradientStop Color="#ff4185f3" Offset="1"/> |
19 |
</LinearGradientBrush> |
20 |
</Border.Background> |
21 |
<Grid> |
22 |
<TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}" Margin="5" |
23 |
FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
24 |
<TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right" |
25 |
Opacity="0.9" |
26 |
FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0"/> |
27 |
</Grid> |
28 |
</Border> |
29 |
</ControlTemplate> |
30 |
</Setter.Value> |
31 |
</Setter> |
32 |
</Style> |
33 |
|
34 |
<Style TargetType="{x:Type Line:LineControl}"> |
35 |
<Setter Property="Template"> |
36 |
<Setter.Value> |
37 |
<ControlTemplate TargetType="{x:Type Line:LineControl}"> |
38 |
<Path x:Name="PART_LinePath" |
39 |
Stroke="{TemplateBinding StrokeColor}" |
40 |
StrokeThickness="{TemplateBinding LineSize}" |
41 |
Data="{TemplateBinding PathData}" |
42 |
RenderTransformOrigin="0.5,0.5" |
43 |
Fill="{TemplateBinding StrokeColor}"> |
44 |
</Path> |
45 |
</ControlTemplate> |
46 |
</Setter.Value> |
47 |
</Setter> |
48 |
</Style> |
49 |
|
50 |
<Style TargetType="{x:Type Line:ArcControl}"> |
51 |
<Setter Property="Template"> |
52 |
<Setter.Value> |
53 |
<ControlTemplate TargetType="{x:Type Line:ArcControl}"> |
54 |
<Path x:Name="PART_ArcPath" |
55 |
Stroke="{TemplateBinding StrokeColor}" |
56 |
StrokeThickness="{TemplateBinding LineSize}" |
57 |
Data="{TemplateBinding PathData}" |
58 |
RenderTransformOrigin="0.5,0.5" |
59 |
Fill="{TemplateBinding StrokeColor}"> |
60 |
</Path> |
61 |
</ControlTemplate> |
62 |
</Setter.Value> |
63 |
</Setter> |
64 |
</Style> |
65 |
|
66 |
<Style TargetType="{x:Type Line:ArrowControl_Multi}"> |
67 |
<Setter Property="Template"> |
68 |
<Setter.Value> |
69 |
<ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}"> |
70 |
<Path x:Name="PART_ArrowMultiPath" |
71 |
Stroke="{TemplateBinding StrokeColor}" |
72 |
Fill="{TemplateBinding StrokeColor}" |
73 |
StrokeThickness="{TemplateBinding LineSize}" |
74 |
Data="{TemplateBinding PathData}"/> |
75 |
</ControlTemplate> |
76 |
</Setter.Value> |
77 |
</Setter> |
78 |
</Style> |
79 |
|
80 |
<Style TargetType="{x:Type Shape:RectangleControl}"> |
81 |
<Setter Property="Template"> |
82 |
<Setter.Value> |
83 |
<ControlTemplate TargetType="{x:Type Shape:RectangleControl}"> |
84 |
<Path x:Name="PART_RectPath" |
85 |
Stroke="{TemplateBinding StrokeColor}" |
86 |
StrokeThickness="{TemplateBinding LineSize}" |
87 |
Data="{TemplateBinding PathData}" |
88 |
Fill="{TemplateBinding FillColor}" |
89 |
RenderTransformOrigin="0.5,0.5"> |
90 |
<!--<Path.OpacityMask> |
91 |
<RadialGradientBrush> |
92 |
<RadialGradientBrush.GradientStops> |
93 |
<GradientStop Offset="0" Color="#FF000000"/> |
94 |
<GradientStop Offset="1" Color="#00000000"/> |
95 |
</RadialGradientBrush.GradientStops> |
96 |
</RadialGradientBrush> |
97 |
</Path.OpacityMask>--> |
98 |
</Path> |
99 |
</ControlTemplate> |
100 |
</Setter.Value> |
101 |
</Setter> |
102 |
</Style> |
103 |
|
104 |
<Style TargetType="{x:Type Shape:TriControl}"> |
105 |
<Setter Property="Template"> |
106 |
<Setter.Value> |
107 |
<ControlTemplate TargetType="{x:Type Shape:TriControl}"> |
108 |
<Path x:Name="PART_TriPath" |
109 |
Stroke="{TemplateBinding StrokeColor}" |
110 |
StrokeThickness="{TemplateBinding LineSize}" |
111 |
Data="{TemplateBinding PathData}" |
112 |
Fill="{TemplateBinding FillColor}"> |
113 |
</Path> |
114 |
</ControlTemplate> |
115 |
</Setter.Value> |
116 |
</Setter> |
117 |
</Style> |
118 |
|
119 |
<Style TargetType="{x:Type Shape:CircleControl}"> |
120 |
<Setter Property="Template"> |
121 |
<Setter.Value> |
122 |
<ControlTemplate TargetType="Shape:CircleControl"> |
123 |
<Path x:Name="PART_CirclePath" |
124 |
Stroke="{TemplateBinding StrokeColor}" |
125 |
StrokeThickness="{TemplateBinding LineSize}" |
126 |
Fill="{TemplateBinding FillColor}" |
127 |
Data="{TemplateBinding PathData}" |
128 |
RenderTransformOrigin="0.5,0.5"> |
129 |
<Path.RenderTransform> |
130 |
<TransformGroup> |
131 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
132 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
133 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
134 |
</TransformGroup> |
135 |
</Path.RenderTransform> |
136 |
</Path> |
137 |
</ControlTemplate> |
138 |
</Setter.Value> |
139 |
</Setter> |
140 |
</Style> |
141 |
|
142 |
<Style TargetType="{x:Type polygon:CloudControl}"> |
143 |
<Setter Property="Template"> |
144 |
<Setter.Value> |
145 |
<ControlTemplate TargetType="polygon:CloudControl"> |
146 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
147 |
<Path x:Name="PART_CloudPath" |
148 |
Stroke="{TemplateBinding StrokeColor}" |
149 |
Fill="{TemplateBinding FillColor}" |
150 |
StrokeThickness="{TemplateBinding LineSize}" |
151 |
Data="{TemplateBinding PathData}" |
152 |
RenderTransformOrigin="0,0"/> |
153 |
<Path x:Name="PART_CloudSubPath" |
154 |
Stroke="Transparent" |
155 |
Fill="{TemplateBinding FillColor}" |
156 |
StrokeThickness="{TemplateBinding LineSize}" |
157 |
Data="{TemplateBinding PathSubData}" |
158 |
RenderTransformOrigin="0,0"/> |
159 |
</Canvas> |
160 |
</ControlTemplate> |
161 |
</Setter.Value> |
162 |
</Setter> |
163 |
</Style> |
164 |
|
165 |
<Style TargetType="{x:Type Shape:RectCloudControl}"> |
166 |
<Setter Property="Template"> |
167 |
<Setter.Value> |
168 |
<ControlTemplate TargetType="Shape:RectCloudControl"> |
169 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
170 |
<Path x:Name="PART_ArcPath" |
171 |
Stroke="{TemplateBinding StrokeColor}" |
172 |
Fill="{TemplateBinding FillColor}" |
173 |
StrokeThickness="{TemplateBinding LineSize}" |
174 |
Data="{TemplateBinding PathData}" |
175 |
RenderTransformOrigin="0,0"/> |
176 |
<Path x:Name="PART_BodyPath" |
177 |
Stroke="Transparent" |
178 |
Fill="{TemplateBinding FillColor}" |
179 |
StrokeThickness="{TemplateBinding LineSize}" |
180 |
Data="{TemplateBinding PathSubData}" |
181 |
RenderTransformOrigin="0,0"/> |
182 |
</Canvas> |
183 |
</ControlTemplate> |
184 |
</Setter.Value> |
185 |
</Setter> |
186 |
</Style> |
187 |
|
188 |
<Style TargetType="{x:Type polygon:PolygonControl}"> |
189 |
<Setter Property="Template"> |
190 |
<Setter.Value> |
191 |
<ControlTemplate TargetType="{x:Type polygon:PolygonControl}"> |
192 |
<Path x:Name="PART_PolyPath" |
193 |
Stroke="{TemplateBinding StrokeColor}" |
194 |
StrokeThickness="{TemplateBinding LineSize}" |
195 |
Data="{TemplateBinding PathData}" |
196 |
RenderTransformOrigin="0.5,0.5" > |
197 |
</Path> |
198 |
</ControlTemplate> |
199 |
</Setter.Value> |
200 |
</Setter> |
201 |
</Style> |
202 |
|
203 |
<Style TargetType="{x:Type Text:TextControl}"> |
204 |
<Setter Property="Template"> |
205 |
<Setter.Value> |
206 |
<ControlTemplate TargetType="{x:Type Text:TextControl}"> |
207 |
<Canvas Background="Red"> |
208 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0"> |
209 |
<Grid.RenderTransform> |
210 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
211 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
212 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/> |
213 |
|
214 |
<!--<RotateTransform Angle="{TemplateBinding Angle}" |
215 |
CenterX="{TemplateBinding CenterX}" |
216 |
CenterY="{TemplateBinding CenterY}"> |
217 |
</RotateTransform>--> |
218 |
</Grid.RenderTransform> |
219 |
</Grid> |
220 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2"> |
221 |
<Grid.Background> |
222 |
<SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/> |
223 |
</Grid.Background> |
224 |
<Grid.RenderTransform> |
225 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
226 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
227 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/> |
228 |
</Grid.RenderTransform> |
229 |
<Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5"> |
230 |
|
231 |
</Border> |
232 |
<Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"> |
233 |
|
234 |
</Border> |
235 |
|
236 |
<TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False" |
237 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
238 |
FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" |
239 |
RenderTransformOrigin="0, 0" > |
240 |
</TextBlock> |
241 |
<Border Background="Transparent"> |
242 |
|
243 |
<TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" |
244 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
245 |
FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0" |
246 |
Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
247 |
RenderTransformOrigin="0, 0" > |
248 |
</TextBlock> |
249 |
</Border> |
250 |
|
251 |
<TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" IsTabStop="False" AcceptsTab="False" |
252 |
Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2" |
253 |
TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" |
254 |
FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" |
255 |
> |
256 |
</TextBox> |
257 |
</Grid> |
258 |
|
259 |
<Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False" |
260 |
Fill="{TemplateBinding BackInnerColor}"> |
261 |
<Path.RenderTransform> |
262 |
<!--<RotateTransform Angle="{TemplateBinding Angle}" |
263 |
CenterX="{TemplateBinding CenterX}" |
264 |
CenterY="{TemplateBinding CenterY}"> |
265 |
</RotateTransform>--> |
266 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
267 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
268 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
269 |
|
270 |
/> |
271 |
</Path.RenderTransform> |
272 |
</Path> |
273 |
|
274 |
<Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1"> |
275 |
<Path.Fill> |
276 |
<SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/> |
277 |
</Path.Fill> |
278 |
<Path.RenderTransform> |
279 |
<!--<RotateTransform Angle="{TemplateBinding Angle}" |
280 |
CenterX="{TemplateBinding CenterX}" |
281 |
CenterY="{TemplateBinding CenterY}"> |
282 |
</RotateTransform>--> |
283 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
284 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
285 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
286 |
|
287 |
/> |
288 |
</Path.RenderTransform> |
289 |
</Path> |
290 |
|
291 |
|
292 |
</Canvas> |
293 |
</ControlTemplate> |
294 |
</Setter.Value> |
295 |
</Setter> |
296 |
</Style> |
297 |
|
298 |
<!--<Style TargetType="{x:Type Text:TextControl}"> |
299 |
<Setter Property="Template"> |
300 |
<Setter.Value> |
301 |
<ControlTemplate TargetType="{x:Type Text:TextControl}"> |
302 |
<Canvas> |
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 |
</Grid.RenderTransform> |
309 |
</Grid> |
310 |
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2"> |
311 |
<Grid.Background> |
312 |
<SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/> |
313 |
</Grid.Background> |
314 |
<Grid.RenderTransform> |
315 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
316 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
317 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/> |
318 |
</Grid.RenderTransform> |
319 |
<Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"> |
320 |
|
321 |
</Border> |
322 |
<TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False" |
323 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
324 |
FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" |
325 |
RenderTransformOrigin="0, 0"> |
326 |
</TextBlock> |
327 |
<TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" |
328 |
FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
329 |
FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" |
330 |
RenderTransformOrigin="0, 0" |
331 |
Visibility="{TemplateBinding TextBlockVisibility}" > |
332 |
</TextBlock> |
333 |
<TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" |
334 |
AcceptsReturn="True" TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" |
335 |
FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" |
336 |
Visibility="{TemplateBinding TextBoxVisibility}" > |
337 |
</TextBox> |
338 |
</Grid> |
339 |
|
340 |
|
341 |
<Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}" |
342 |
StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1"> |
343 |
<Path.RenderTransform> |
344 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
345 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
346 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/> |
347 |
</Path.RenderTransform> |
348 |
</Path> |
349 |
</Canvas> |
350 |
</ControlTemplate> |
351 |
</Setter.Value> |
352 |
</Setter> |
353 |
</Style>--> |
354 |
|
355 |
<Style TargetType="{x:Type Text:ArrowTextControl}"> |
356 |
<Setter Property="Template"> |
357 |
<Setter.Value> |
358 |
<ControlTemplate TargetType="{x:Type Text:ArrowTextControl}"> |
359 |
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
360 |
|
361 |
|
362 |
<!--<Path x:Name="PART_ArrowPath" |
363 |
Stroke="{TemplateBinding StrokeColor}" |
364 |
StrokeThickness="{TemplateBinding LineSize}" |
365 |
Data="{TemplateBinding PathData}" |
366 |
Fill="{TemplateBinding StrokeColor}"> |
367 |
</Path>--> |
368 |
|
369 |
<Path x:Name="PART_ArrowPath" Canvas.ZIndex="0" |
370 |
Stroke="{TemplateBinding StrokeColor}" |
371 |
StrokeThickness="{TemplateBinding LineSize}" |
372 |
Data="{TemplateBinding PathData}" |
373 |
Fill="{TemplateBinding StrokeColor}"/> |
374 |
|
375 |
<!--<Path x:Name="PART_ArrowSubPath" |
376 |
Stroke="{TemplateBinding StrokeColor}" |
377 |
StrokeThickness="{TemplateBinding LineSize}" |
378 |
Fill="{TemplateBinding SubPathFill}" |
379 |
Data="{TemplateBinding SubPathData}" |
380 |
RenderTransformOrigin="0,0"/>--> |
381 |
|
382 |
<Path x:Name="PART_ArrowSubPath" Canvas.ZIndex="2" |
383 |
Stroke="{TemplateBinding StrokeColor}" |
384 |
StrokeThickness="{TemplateBinding LineSize}" |
385 |
Fill="{TemplateBinding SubPathFill }" |
386 |
Data="{TemplateBinding SubPathData}" |
387 |
RenderTransformOrigin="0,0"/> |
388 |
|
389 |
<Path |
390 |
Stroke="Transparent" |
391 |
Fill="{TemplateBinding BackInnerColor }" Canvas.ZIndex="1" |
392 |
Data="{TemplateBinding PathDataInner}" |
393 |
RenderTransformOrigin="0,0"/> |
394 |
|
395 |
|
396 |
<!--<TextBlock x:Name="PART_ArrowTextBlock" |
397 |
Margin="0.5" |
398 |
Background="{TemplateBinding TextBoxBackground}" |
399 |
FontSize="{TemplateBinding TextSize}" |
400 |
FontFamily="{TemplateBinding TextFamily}" |
401 |
FontStyle="{TemplateBinding TextStyle}" |
402 |
FontWeight="{TemplateBinding TextWeight}" |
403 |
Foreground="{TemplateBinding StrokeColor}" |
404 |
HorizontalAlignment="Stretch" |
405 |
TextWrapping="Wrap" |
406 |
Text="{TemplateBinding ArrowText}" |
407 |
RenderTransformOrigin="0.5,0.5"> |
408 |
<TextBlock.RenderTransform> |
409 |
<RotateTransform Angle="{TemplateBinding Angle}" |
410 |
CenterX="{TemplateBinding CenterX}" |
411 |
CenterY="{TemplateBinding CenterY}"> |
412 |
</RotateTransform> |
413 |
</TextBlock.RenderTransform> |
414 |
</TextBlock>--> |
415 |
|
416 |
<TextBox x:Name="PART_ArrowTextBox" |
417 |
Margin="0.5" Canvas.ZIndex="4" |
418 |
Background="{TemplateBinding TextBoxBackground}" |
419 |
BorderThickness="{TemplateBinding BorderSize}" |
420 |
BorderBrush="{TemplateBinding StrokeColor}" |
421 |
FontSize="{TemplateBinding TextSize}" |
422 |
FontFamily="{TemplateBinding TextFamily}" |
423 |
FontStyle="{TemplateBinding TextStyle}" |
424 |
FontWeight="{TemplateBinding TextWeight}" |
425 |
AcceptsReturn="True" |
426 |
Foreground="{TemplateBinding StrokeColor}" |
427 |
HorizontalAlignment="Stretch" |
428 |
TextWrapping="Wrap" |
429 |
Text="{TemplateBinding ArrowText}" |
430 |
RenderTransformOrigin="0.5,0.5"> |
431 |
<TextBox.RenderTransform> |
432 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
433 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
434 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"> |
435 |
</RotateTransform> |
436 |
</TextBox.RenderTransform> |
437 |
</TextBox> |
438 |
</Canvas> |
439 |
</ControlTemplate> |
440 |
</Setter.Value> |
441 |
</Setter> |
442 |
</Style> |
443 |
|
444 |
<Style TargetType="Etc:DateControl"> |
445 |
<Setter Property="Template"> |
446 |
<Setter.Value> |
447 |
<ControlTemplate TargetType="Etc:DateControl"> |
448 |
<Viewbox x:Name="PART_ViewBox" > |
449 |
<TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" |
450 |
Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5"> |
451 |
<TextBlock.RenderTransform> |
452 |
<TransformGroup> |
453 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
454 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
455 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
456 |
</TransformGroup> |
457 |
</TextBlock.RenderTransform> |
458 |
</TextBlock> |
459 |
</Viewbox> |
460 |
</ControlTemplate> |
461 |
</Setter.Value> |
462 |
</Setter> |
463 |
</Style> |
464 |
|
465 |
<Style TargetType="Etc:SignControl"> |
466 |
<Setter Property="Template"> |
467 |
<Setter.Value> |
468 |
<ControlTemplate TargetType="Etc:SignControl"> |
469 |
<Image x:Name="PART_Image" Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
470 |
<Image.RenderTransform> |
471 |
<TransformGroup> |
472 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
473 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
474 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
475 |
</TransformGroup> |
476 |
</Image.RenderTransform> |
477 |
</Image> |
478 |
</ControlTemplate> |
479 |
</Setter.Value> |
480 |
</Setter> |
481 |
</Style> |
482 |
|
483 |
<Style TargetType="Etc:ImgControl"> |
484 |
<Setter Property="Template"> |
485 |
<Setter.Value> |
486 |
<ControlTemplate TargetType="Etc:ImgControl"> |
487 |
<Image x:Name="PART_Image" Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
488 |
<Image.RenderTransform> |
489 |
<TransformGroup> |
490 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
491 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
492 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
493 |
</TransformGroup> |
494 |
</Image.RenderTransform> |
495 |
</Image> |
496 |
</ControlTemplate> |
497 |
</Setter.Value> |
498 |
</Setter> |
499 |
</Style> |
500 |
|
501 |
<!--강인구 추가--> |
502 |
<Style TargetType="Etc:SymControl"> |
503 |
<Setter Property="Template"> |
504 |
<Setter.Value> |
505 |
<ControlTemplate TargetType="Etc:SymControl"> |
506 |
<Viewbox x:Name="PART_ViewBox"> |
507 |
<Path x:Name="PART_SymPath" Stroke="{TemplateBinding StrokeColor}" StrokeThickness="{TemplateBinding LineSize}" |
508 |
Data="{TemplateBinding PathData}" |
509 |
RenderTransformOrigin="0.5,0.5"> |
510 |
<Path.RenderTransform> |
511 |
<TransformGroup> |
512 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
513 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
514 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
515 |
</TransformGroup> |
516 |
</Path.RenderTransform> |
517 |
</Path> |
518 |
</Viewbox> |
519 |
</ControlTemplate> |
520 |
</Setter.Value> |
521 |
</Setter> |
522 |
</Style> |
523 |
|
524 |
|
525 |
|
526 |
</ResourceDictionary> |