markus / MarkupToPDF / Themes / generic.xaml @ b643fcca
이력 | 보기 | 이력해설 | 다운로드 (40.7 KB)
1 | 787a4489 | KangIngu | <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 | 684ef11c | ljiyeon | xmlns:Angle="clr-namespace:MarkupToPDF.Controls.Angle" |
9 | xmlns:Cad="clr-namespace:MarkupToPDF.Controls.Cad"> |
||
10 | b643fcca | taeseongkim | |
11 | 684ef11c | ljiyeon | <Style TargetType="{x:Type Cad:CoordinateControl}"> |
12 | <Setter Property="Template"> |
||
13 | <Setter.Value>
|
||
14 | <ControlTemplate TargetType="{x:Type Cad:CoordinateControl}"> |
||
15 | b643fcca | taeseongkim | <Path x:Name="PART_RectPath" |
16 | 684ef11c | ljiyeon | 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 | b643fcca | taeseongkim | <Path x:Name="PART_RectPath" |
31 | 684ef11c | ljiyeon | 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 | b643fcca | taeseongkim | <Path x:Name="PART_RectPath" |
47 | 684ef11c | ljiyeon | 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 | b643fcca | taeseongkim | <Path x:Name="PART_RectPath" |
63 | 684ef11c | ljiyeon | 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 | 787a4489 | KangIngu | <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 | b643fcca | taeseongkim | <GradientStop Color="#FF00CDFF" Offset="0" /> |
82 | <GradientStop Color="#ff4185f3" Offset="1" /> |
||
83 | 787a4489 | KangIngu | </LinearGradientBrush>
|
84 | </Border.Background>
|
||
85 | <Grid>
|
||
86 | <TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}" Margin="5" |
||
87 | b643fcca | taeseongkim | FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center" /> |
88 | 787a4489 | KangIngu | <TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right" |
89 | Opacity="0.9" |
||
90 | b643fcca | taeseongkim | FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0" /> |
91 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <Path x:Name="PART_LinePath" |
103 | Stroke="{TemplateBinding StrokeColor}" |
||
104 | 787a4489 | KangIngu | StrokeThickness="{TemplateBinding LineSize}" |
105 | b643fcca | taeseongkim | Data="{TemplateBinding PathData}" |
106 | RenderTransformOrigin="0.5,0.5" |
||
107 | 787a4489 | KangIngu | 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 | b643fcca | taeseongkim | <Path x:Name="PART_ArcPath" |
119 | Stroke="{TemplateBinding StrokeColor}" |
||
120 | 787a4489 | KangIngu | StrokeThickness="{TemplateBinding LineSize}" |
121 | b643fcca | taeseongkim | Data="{TemplateBinding PathData}" |
122 | RenderTransformOrigin="0.5,0.5" |
||
123 | 787a4489 | KangIngu | Fill="{TemplateBinding StrokeColor}"> |
124 | </Path>
|
||
125 | </ControlTemplate>
|
||
126 | </Setter.Value>
|
||
127 | </Setter>
|
||
128 | </Style>
|
||
129 | 40b3ce25 | ljiyeon | <Style TargetType="{x:Type Line:ArrowArcControl}"> |
130 | <Setter Property="Template"> |
||
131 | <Setter.Value>
|
||
132 | <ControlTemplate TargetType="{x:Type Line:ArrowArcControl}"> |
||
133 | b643fcca | taeseongkim | <Path x:Name="PART_ArcPath" |
134 | Stroke="{TemplateBinding StrokeColor}" |
||
135 | 40b3ce25 | ljiyeon | StrokeThickness="{TemplateBinding LineSize}" |
136 | b643fcca | taeseongkim | Data="{TemplateBinding PathData}" |
137 | RenderTransformOrigin="0.5,0.5" |
||
138 | 40b3ce25 | ljiyeon | Fill="{TemplateBinding StrokeColor}"> |
139 | </Path>
|
||
140 | </ControlTemplate>
|
||
141 | </Setter.Value>
|
||
142 | </Setter>
|
||
143 | </Style>
|
||
144 | 787a4489 | KangIngu | <Style TargetType="{x:Type Line:ArrowControl_Multi}"> |
145 | <Setter Property="Template"> |
||
146 | <Setter.Value>
|
||
147 | <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}"> |
||
148 | b643fcca | taeseongkim | <Path x:Name="PART_ArrowMultiPath" |
149 | Stroke="{TemplateBinding StrokeColor}" |
||
150 | Fill="{TemplateBinding StrokeColor}" |
||
151 | StrokeThickness="{TemplateBinding LineSize}" |
||
152 | Data="{TemplateBinding PathData}" /> |
||
153 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <Path x:Name="PART_RectPath" |
163 | 787a4489 | KangIngu | 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 | b643fcca | taeseongkim | <GradientStop Offset="0" Color="#FF000000" />
|
172 | <GradientStop Offset="1" Color="#00000000" />
|
||
173 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <Path x:Name="PART_TriPath" |
187 | 787a4489 | KangIngu | 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 | b643fcca | taeseongkim | <Path x:Name="PART_CirclePath" |
202 | Stroke="{TemplateBinding StrokeColor}" |
||
203 | StrokeThickness="{TemplateBinding LineSize}" |
||
204 | Fill="{TemplateBinding FillColor}" |
||
205 | Data="{TemplateBinding PathData}" |
||
206 | 787a4489 | KangIngu | RenderTransformOrigin="0.5,0.5"> |
207 | <Path.RenderTransform>
|
||
208 | <TransformGroup>
|
||
209 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||
210 | b643fcca | taeseongkim | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
211 | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||
212 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <Path x:Name="PART_CloudPath" |
226 | Stroke="{TemplateBinding StrokeColor}" |
||
227 | Fill="{TemplateBinding FillColor}" |
||
228 | StrokeThickness="{TemplateBinding LineSize}" |
||
229 | 787a4489 | KangIngu | Data="{TemplateBinding PathData}" |
230 | b643fcca | taeseongkim | RenderTransformOrigin="0,0" /> |
231 | <Path x:Name="PART_CloudSubPath" |
||
232 | Stroke="Transparent" |
||
233 | Fill="{TemplateBinding FillColor}" |
||
234 | StrokeThickness="{TemplateBinding LineSize}" |
||
235 | 787a4489 | KangIngu | Data="{TemplateBinding PathSubData}" |
236 | b643fcca | taeseongkim | RenderTransformOrigin="0,0" /> |
237 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <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 | 787a4489 | KangIngu | Data="{TemplateBinding PathSubData}" |
259 | b643fcca | taeseongkim | RenderTransformOrigin="0,0" /> |
260 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <Path x:Name="PART_PolyPath" |
271 | 787a4489 | KangIngu | Stroke="{TemplateBinding StrokeColor}" |
272 | StrokeThickness="{TemplateBinding LineSize}" |
||
273 | Data="{TemplateBinding PathData}" |
||
274 | b643fcca | taeseongkim | RenderTransformOrigin="0.5,0.5"> |
275 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <Path x:Name="PART_PolyPath" |
286 | 787a4489 | KangIngu | Stroke="{TemplateBinding StrokeColor}" |
287 | StrokeThickness="{TemplateBinding LineSize}" |
||
288 | Data="{TemplateBinding PathData}" |
||
289 | b643fcca | taeseongkim | RenderTransformOrigin="0.5,0.5"> |
290 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | <ControlTemplate TargetType="{x:Type Text:TextControl}"> |
302 | 0d00f9c8 | humkyung | <Canvas Background="Red" x:Name="PART_TextControlCanvas"> |
303 | 787a4489 | KangIngu | <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 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
308 | 787a4489 | KangIngu | |
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 | b643fcca | taeseongkim | <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" /> |
318 | 787a4489 | KangIngu | </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 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
323 | 787a4489 | KangIngu | </Grid.RenderTransform>
|
324 | <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5"> |
||
325 | </Border>
|
||
326 | <Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"> |
||
327 | </Border>
|
||
328 | |||
329 | 05009a0e | ljiyeon | <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False" |
330 | 787a4489 | KangIngu | FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
331 | FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" |
||
332 | b643fcca | taeseongkim | RenderTransformOrigin="0, 0"> |
333 | 787a4489 | KangIngu | </TextBlock>
|
334 | <Border Background="Transparent"> |
||
335 | |||
336 | 05009a0e | ljiyeon | <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}" |
337 | 787a4489 | KangIngu | FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}" |
338 | FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0" |
||
339 | b643fcca | taeseongkim | Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
340 | RenderTransformOrigin="0, 0"> |
||
341 | 787a4489 | KangIngu | </TextBlock>
|
342 | </Border>
|
||
343 | |||
344 | 05009a0e | ljiyeon | <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}" IsTabStop="False" AcceptsTab="False" |
345 | b643fcca | taeseongkim | Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2" |
346 | TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" |
||
347 | FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"> |
||
348 | 787a4489 | KangIngu | </TextBox>
|
349 | 3074202c | 송근호 | |
350 | <Canvas>
|
||
351 | b643fcca | taeseongkim | <Border x:Name="Caret" |
352 | 3074202c | 송근호 | Visibility="Collapsed" |
353 | b643fcca | taeseongkim | Canvas.Left="0" |
354 | Canvas.Top="0" |
||
355 | Width="3" |
||
356 | Height="33" |
||
357 | 3074202c | 송근호 | Background="Red"> |
358 | <Border.Triggers>
|
||
359 | <EventTrigger RoutedEvent="Border.Loaded"> |
||
360 | <BeginStoryboard>
|
||
361 | b643fcca | taeseongkim | <Storyboard x:Name="CaretStoryBoard" |
362 | 3074202c | 송근호 | RepeatBehavior="Forever"> |
363 | b643fcca | taeseongkim | <ColorAnimationUsingKeyFrames
|
364 | 3074202c | 송근호 | Storyboard.TargetProperty="Background.Color" |
365 | Duration="0:0:0:1" |
||
366 | FillBehavior="HoldEnd"> |
||
367 | b643fcca | taeseongkim | <ColorAnimationUsingKeyFrames.KeyFrames>
|
368 | 3074202c | 송근호 | <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" /> |
369 | b643fcca | taeseongkim | <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black" /> |
370 | 3074202c | 송근호 | </ColorAnimationUsingKeyFrames.KeyFrames>
|
371 | </ColorAnimationUsingKeyFrames>
|
||
372 | </Storyboard>
|
||
373 | </BeginStoryboard>
|
||
374 | </EventTrigger>
|
||
375 | </Border.Triggers>
|
||
376 | </Border>
|
||
377 | </Canvas>
|
||
378 | 787a4489 | KangIngu | </Grid>
|
379 | |||
380 | b643fcca | taeseongkim | <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False" |
381 | 787a4489 | KangIngu | Fill="{TemplateBinding BackInnerColor}"> |
382 | <Path.RenderTransform>
|
||
383 | <!--<RotateTransform Angle="{TemplateBinding Angle}"
|
||
384 | CenterX="{TemplateBinding CenterX}"
|
||
385 | CenterY="{TemplateBinding CenterY}">
|
||
386 | </RotateTransform>-->
|
||
387 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
388 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
389 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
390 | 787a4489 | KangIngu | </Path.RenderTransform>
|
391 | </Path>
|
||
392 | |||
393 | 05009a0e | ljiyeon | <Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1"> |
394 | 787a4489 | KangIngu | <Path.Fill>
|
395 | b643fcca | taeseongkim | <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6" /> |
396 | 787a4489 | KangIngu | </Path.Fill>
|
397 | <Path.RenderTransform>
|
||
398 | <!--<RotateTransform Angle="{TemplateBinding Angle}"
|
||
399 | CenterX="{TemplateBinding CenterX}"
|
||
400 | CenterY="{TemplateBinding CenterY}">
|
||
401 | </RotateTransform>-->
|
||
402 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
403 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
404 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" /> |
405 | 787a4489 | KangIngu | </Path.RenderTransform>
|
406 | </Path>
|
||
407 | </Canvas>
|
||
408 | </ControlTemplate>
|
||
409 | </Setter.Value>
|
||
410 | </Setter>
|
||
411 | </Style>
|
||
412 | |||
413 | <!--<Style TargetType="{x:Type Text:TextControl}">
|
||
414 | <Setter Property="Template">
|
||
415 | <Setter.Value>
|
||
416 | <ControlTemplate TargetType="{x:Type Text:TextControl}">
|
||
417 | <Canvas>
|
||
418 | <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
|
||
419 | <Grid.RenderTransform>
|
||
420 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
||
421 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
||
422 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
|
423 | 787a4489 | KangIngu | </Grid.RenderTransform>
|
424 | </Grid>
|
||
425 | <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
|
||
426 | <Grid.Background>
|
||
427 | b643fcca | taeseongkim | <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
|
428 | 787a4489 | KangIngu | </Grid.Background>
|
429 | <Grid.RenderTransform>
|
||
430 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
||
431 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
||
432 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
|
433 | 787a4489 | KangIngu | </Grid.RenderTransform>
|
434 | <Border Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
|
||
435 | </Border>
|
||
436 | <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
|
||
437 | FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}"
|
||
438 | FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
|
||
439 | RenderTransformOrigin="0, 0">
|
||
440 | </TextBlock>
|
||
441 | <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
|
||
442 | FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}" TextDecorations="{TemplateBinding UnderLine}"
|
||
443 | FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
|
||
444 | RenderTransformOrigin="0, 0"
|
||
445 | b643fcca | taeseongkim | Visibility="{TemplateBinding TextBlockVisibility}">
|
446 | 787a4489 | KangIngu | </TextBlock>
|
447 | b643fcca | taeseongkim | <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
|
448 | AcceptsReturn="True" TextWrapping="Wrap" Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}"
|
||
449 | 787a4489 | KangIngu | FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
|
450 | b643fcca | taeseongkim | Visibility="{TemplateBinding TextBoxVisibility}">
|
451 | 787a4489 | KangIngu | </TextBox>
|
452 | </Grid>
|
||
453 | |||
454 | <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
|
||
455 | StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
|
||
456 | <Path.RenderTransform>
|
||
457 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
||
458 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
|
||
459 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
|
460 | 787a4489 | KangIngu | </Path.RenderTransform>
|
461 | </Path>
|
||
462 | </Canvas>
|
||
463 | </ControlTemplate>
|
||
464 | </Setter.Value>
|
||
465 | </Setter>
|
||
466 | </Style>-->
|
||
467 | |||
468 | <Style TargetType="{x:Type Text:ArrowTextControl}"> |
||
469 | <Setter Property="Template"> |
||
470 | <Setter.Value>
|
||
471 | <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}"> |
||
472 | b643fcca | taeseongkim | <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
473 | 787a4489 | KangIngu | |
474 | b643fcca | taeseongkim | <!--<Path x:Name="PART_ArrowPath"
|
475 | Stroke="{TemplateBinding StrokeColor}"
|
||
476 | StrokeThickness="{TemplateBinding LineSize}"
|
||
477 | Data="{TemplateBinding PathData}"
|
||
478 | 787a4489 | KangIngu | Fill="{TemplateBinding StrokeColor}">
|
479 | </Path>-->
|
||
480 | |||
481 | fa48eb85 | taeseongkim | <Path x:Name="PART_ArrowPath" Panel.ZIndex="0" |
482 | 787a4489 | KangIngu | Stroke="{TemplateBinding StrokeColor}" |
483 | b643fcca | taeseongkim | StrokeThickness="{TemplateBinding LineSize}" |
484 | 787a4489 | KangIngu | Data="{TemplateBinding PathData}" |
485 | b643fcca | taeseongkim | Fill="{TemplateBinding StrokeColor}" /> |
486 | 787a4489 | KangIngu | |
487 | b643fcca | taeseongkim | <!--<Path x:Name="PART_ArrowSubPath"
|
488 | 787a4489 | KangIngu | Stroke="{TemplateBinding StrokeColor}"
|
489 | b643fcca | taeseongkim | StrokeThickness="{TemplateBinding LineSize}"
|
490 | Fill="{TemplateBinding SubPathFill}"
|
||
491 | 787a4489 | KangIngu | Data="{TemplateBinding SubPathData}"
|
492 | b643fcca | taeseongkim | RenderTransformOrigin="0,0" />-->
|
493 | 787a4489 | KangIngu | |
494 | fa48eb85 | taeseongkim | <Path x:Name="PART_ArrowSubPath" Panel.ZIndex="2" |
495 | 787a4489 | KangIngu | Stroke="{TemplateBinding StrokeColor}" |
496 | b643fcca | taeseongkim | StrokeThickness="{TemplateBinding LineSize}" |
497 | fa48eb85 | taeseongkim | Fill="{TemplateBinding SubPathFill}" |
498 | 787a4489 | KangIngu | Data="{TemplateBinding SubPathData}" |
499 | b643fcca | taeseongkim | RenderTransformOrigin="0,0" /> |
500 | 787a4489 | KangIngu | |
501 | b643fcca | taeseongkim | <Path x:Name="PART_TextBoxBackBorder" |
502 | Stroke="Transparent" |
||
503 | fa48eb85 | taeseongkim | Fill="{TemplateBinding BackInnerColor}" Panel.ZIndex="1" |
504 | 787a4489 | KangIngu | Data="{TemplateBinding PathDataInner}" |
505 | b643fcca | taeseongkim | RenderTransformOrigin="0,0" /> |
506 | <!--<TextBlock x:Name="PART_ArrowTextBlock"
|
||
507 | 787a4489 | KangIngu | Margin="0.5"
|
508 | Background="{TemplateBinding TextBoxBackground}"
|
||
509 | b643fcca | taeseongkim | FontSize="{TemplateBinding TextSize}"
|
510 | 787a4489 | KangIngu | FontFamily="{TemplateBinding TextFamily}"
|
511 | FontStyle="{TemplateBinding TextStyle}"
|
||
512 | FontWeight="{TemplateBinding TextWeight}"
|
||
513 | b643fcca | taeseongkim | Foreground="{TemplateBinding StrokeColor}"
|
514 | 787a4489 | KangIngu | HorizontalAlignment="Stretch"
|
515 | b643fcca | taeseongkim | TextWrapping="Wrap"
|
516 | 787a4489 | KangIngu | Text="{TemplateBinding ArrowText}"
|
517 | RenderTransformOrigin="0.5,0.5">
|
||
518 | <TextBlock.RenderTransform>
|
||
519 | <RotateTransform Angle="{TemplateBinding Angle}"
|
||
520 | CenterX="{TemplateBinding CenterX}"
|
||
521 | CenterY="{TemplateBinding CenterY}">
|
||
522 | </RotateTransform>
|
||
523 | </TextBlock.RenderTransform>
|
||
524 | </TextBlock>-->
|
||
525 | |||
526 | fa48eb85 | taeseongkim | <Canvas Panel.ZIndex="4"> |
527 | b643fcca | taeseongkim | <Border x:Name="Caret" |
528 | fa48eb85 | taeseongkim | Visibility="Collapsed" |
529 | b643fcca | taeseongkim | Canvas.Left="0" |
530 | Canvas.Top="0" |
||
531 | fa48eb85 | taeseongkim | Width="5" |
532 | RenderTransformOrigin="0.5,0.5" |
||
533 | Height="{Binding ActualHeight,ElementName=CaretHeightTextBlock}"> |
||
534 | <Border.Background>
|
||
535 | b643fcca | taeseongkim | <SolidColorBrush Color="#B2930909" /> |
536 | fa48eb85 | taeseongkim | </Border.Background>
|
537 | b643fcca | taeseongkim | <TextBlock Text="A" x:Name="CaretHeightTextBlock" Foreground="Transparent" FontSize="{TemplateBinding TextSize}" |
538 | fa48eb85 | taeseongkim | FontFamily="{TemplateBinding TextFamily}" TextWrapping="NoWrap" |
539 | b643fcca | taeseongkim | FontStyle="{TemplateBinding TextStyle}" /> |
540 | fa48eb85 | taeseongkim | <!--<Border.RenderTransform>
|
541 | <RotateTransform Angle="{Binding VisualPageAngle, Converter={StaticResource ValueBindingTestConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||
542 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||
543 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
544 | fa48eb85 | taeseongkim | </Border.RenderTransform>-->
|
545 | <Border.Triggers>
|
||
546 | <EventTrigger RoutedEvent="FrameworkElement.Loaded"> |
||
547 | <BeginStoryboard>
|
||
548 | b643fcca | taeseongkim | <Storyboard x:Name="CaretStoryBoard" |
549 | fa48eb85 | taeseongkim | RepeatBehavior="Forever"> |
550 | b643fcca | taeseongkim | <ColorAnimationUsingKeyFrames
|
551 | fa48eb85 | taeseongkim | Storyboard.TargetProperty="Background.Color" |
552 | Duration="0:0:0:1" |
||
553 | FillBehavior="HoldEnd"> |
||
554 | <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" /> |
||
555 | b643fcca | taeseongkim | <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="#B2930909" /> |
556 | fa48eb85 | taeseongkim | </ColorAnimationUsingKeyFrames>
|
557 | </Storyboard>
|
||
558 | </BeginStoryboard>
|
||
559 | </EventTrigger>
|
||
560 | </Border.Triggers>
|
||
561 | </Border>
|
||
562 | </Canvas>
|
||
563 | b643fcca | taeseongkim | <TextBox x:Name="PART_ArrowTextBox" |
564 | fa48eb85 | taeseongkim | Margin="0.5" Panel.ZIndex="5" |
565 | 3074202c | 송근호 | Background="{TemplateBinding TextBoxBackground}" |
566 | b643fcca | taeseongkim | BorderThickness="{TemplateBinding BorderSize}" |
567 | 3074202c | 송근호 | BorderBrush="{TemplateBinding StrokeColor}" |
568 | b643fcca | taeseongkim | FontSize="{TemplateBinding TextSize}" |
569 | 3074202c | 송근호 | FontFamily="{TemplateBinding TextFamily}" |
570 | FontStyle="{TemplateBinding TextStyle}" |
||
571 | FontWeight="{TemplateBinding TextWeight}" |
||
572 | TextDecorations="{TemplateBinding UnderLine}" |
||
573 | b643fcca | taeseongkim | AcceptsReturn="True" |
574 | Foreground="{TemplateBinding StrokeColor}" |
||
575 | 3074202c | 송근호 | HorizontalAlignment="Stretch" |
576 | fa48eb85 | taeseongkim | TextWrapping="Wrap" |
577 | CaretBrush="DarkBlue" |
||
578 | 3074202c | 송근호 | Text="{TemplateBinding ArrowText}" |
579 | RenderTransformOrigin="0.5,0.5"> |
||
580 | fa48eb85 | taeseongkim | <!--<TextBox.RenderTransform>
|
581 | <RotateTransform Angle="{Binding VisualPageAngle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||
582 | 3074202c | 송근호 | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
583 | b643fcca | taeseongkim | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
584 | fa48eb85 | taeseongkim | </TextBox.RenderTransform>-->
|
585 | </TextBox>
|
||
586 | 787a4489 | KangIngu | </Canvas>
|
587 | </ControlTemplate>
|
||
588 | </Setter.Value>
|
||
589 | </Setter>
|
||
590 | </Style>
|
||
591 | |||
592 | <Style TargetType="Etc:DateControl"> |
||
593 | <Setter Property="Template"> |
||
594 | <Setter.Value>
|
||
595 | <ControlTemplate TargetType="Etc:DateControl"> |
||
596 | b643fcca | taeseongkim | <Viewbox x:Name="PART_ViewBox"> |
597 | <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" |
||
598 | 787a4489 | KangIngu | Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5"> |
599 | <TextBlock.RenderTransform>
|
||
600 | <TransformGroup>
|
||
601 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
602 | b643fcca | taeseongkim | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
603 | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||
604 | 787a4489 | KangIngu | </TransformGroup>
|
605 | </TextBlock.RenderTransform>
|
||
606 | </TextBlock>
|
||
607 | </Viewbox>
|
||
608 | </ControlTemplate>
|
||
609 | </Setter.Value>
|
||
610 | </Setter>
|
||
611 | </Style>
|
||
612 | |||
613 | <Style TargetType="Etc:SignControl"> |
||
614 | <Setter Property="Template"> |
||
615 | <Setter.Value>
|
||
616 | <ControlTemplate TargetType="Etc:SignControl"> |
||
617 | <Image x:Name="PART_Image" Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
||
618 | <Image.RenderTransform>
|
||
619 | <TransformGroup>
|
||
620 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||
621 | b643fcca | taeseongkim | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
622 | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||
623 | 787a4489 | KangIngu | </TransformGroup>
|
624 | </Image.RenderTransform>
|
||
625 | </Image>
|
||
626 | </ControlTemplate>
|
||
627 | </Setter.Value>
|
||
628 | </Setter>
|
||
629 | </Style>
|
||
630 | |||
631 | <Style TargetType="Etc:ImgControl"> |
||
632 | <Setter Property="Template"> |
||
633 | <Setter.Value>
|
||
634 | <ControlTemplate TargetType="Etc:ImgControl"> |
||
635 | <Image x:Name="PART_Image" Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"> |
||
636 | <Image.RenderTransform>
|
||
637 | <TransformGroup>
|
||
638 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||
639 | b643fcca | taeseongkim | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
640 | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||
641 | 787a4489 | KangIngu | </TransformGroup>
|
642 | </Image.RenderTransform>
|
||
643 | </Image>
|
||
644 | </ControlTemplate>
|
||
645 | </Setter.Value>
|
||
646 | </Setter>
|
||
647 | </Style>
|
||
648 | |||
649 | <!--강인구 추가-->
|
||
650 | <Style TargetType="Etc:SymControl"> |
||
651 | <Setter Property="Template"> |
||
652 | <Setter.Value>
|
||
653 | <ControlTemplate TargetType="Etc:SymControl"> |
||
654 | <Viewbox x:Name="PART_ViewBox"> |
||
655 | <Path x:Name="PART_SymPath" Stroke="{TemplateBinding StrokeColor}" StrokeThickness="{TemplateBinding LineSize}" |
||
656 | b643fcca | taeseongkim | Data="{TemplateBinding PathData}" |
657 | 787a4489 | KangIngu | RenderTransformOrigin="0.5,0.5"> |
658 | <Path.RenderTransform>
|
||
659 | <TransformGroup>
|
||
660 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
661 | b643fcca | taeseongkim | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
662 | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||
663 | 787a4489 | KangIngu | </TransformGroup>
|
664 | </Path.RenderTransform>
|
||
665 | </Path>
|
||
666 | </Viewbox>
|
||
667 | </ControlTemplate>
|
||
668 | </Setter.Value>
|
||
669 | </Setter>
|
||
670 | </Style>
|
||
671 | |||
672 | <Style TargetType="Etc:SymControlN"> |
||
673 | <Setter Property="Template"> |
||
674 | <Setter.Value>
|
||
675 | <ControlTemplate TargetType="Etc:SymControlN"> |
||
676 | <Viewbox x:Name="PART_ViewBox" RenderTransformOrigin="0.5,0.5"> |
||
677 | <Viewbox.RenderTransform>
|
||
678 | <TransformGroup>
|
||
679 | <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" |
||
680 | b643fcca | taeseongkim | CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
681 | CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||
682 | 787a4489 | KangIngu | </TransformGroup>
|
683 | </Viewbox.RenderTransform>
|
||
684 | </Viewbox>
|
||
685 | </ControlTemplate>
|
||
686 | </Setter.Value>
|
||
687 | </Setter>
|
||
688 | </Style>
|
||
689 | </ResourceDictionary> |