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