프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / MarkupToPDF / Themes / generic.xaml @ 74abcf6f

이력 | 보기 | 이력해설 | 다운로드 (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
                              Fill="{TemplateBinding FillColor}"
19 a342d378 taeseongkim
                              RenderTransformOrigin="0.5,0.5" Data="{TemplateBinding PathData}">
20 684ef11c ljiyeon
                    </Path>
21
                </ControlTemplate>
22
            </Setter.Value>
23
        </Setter>
24
    </Style>
25
    <Style TargetType="{x:Type Cad:InsideWhiteControl}">
26
        <Setter Property="Template">
27
            <Setter.Value>
28
                <ControlTemplate TargetType="{x:Type Cad:InsideWhiteControl}">
29 b643fcca taeseongkim
                    <Path x:Name="PART_RectPath"
30 684ef11c ljiyeon
                              Stroke="LightGray"
31
                              StrokeThickness="{TemplateBinding LineSize}"
32
                              Data="{TemplateBinding PathData}"
33
                              Opacity="0.3"
34
                              Fill="LightGray"
35
                              RenderTransformOrigin="0.5,0.5">
36
                    </Path>
37
                </ControlTemplate>
38
            </Setter.Value>
39
        </Setter>
40
    </Style>
41
    <Style TargetType="{x:Type Cad:OverlapWhiteControl}">
42
        <Setter Property="Template">
43
            <Setter.Value>
44
                <ControlTemplate TargetType="{x:Type Cad:OverlapWhiteControl}">
45 b643fcca taeseongkim
                    <Path x:Name="PART_RectPath"
46 684ef11c ljiyeon
                              Stroke="LightGray"
47
                              StrokeThickness="{TemplateBinding LineSize}"
48
                              Data="{TemplateBinding PathData}"
49
                              Opacity="0.3"
50
                              Fill="LightGray"
51
                              RenderTransformOrigin="0.5,0.5">
52
                    </Path>
53
                </ControlTemplate>
54
            </Setter.Value>
55
        </Setter>
56
    </Style>
57
    <Style TargetType="{x:Type Cad:ClipWhiteControl}">
58
        <Setter Property="Template">
59
            <Setter.Value>
60
                <ControlTemplate TargetType="{x:Type Cad:ClipWhiteControl}">
61 b643fcca taeseongkim
                    <Path x:Name="PART_RectPath"
62 684ef11c ljiyeon
                              Stroke="LightGray"
63
                              StrokeThickness="{TemplateBinding LineSize}"
64
                              Data="{TemplateBinding PathData}"
65
                              Opacity="0.3"
66
                              Fill="LightGray"
67
                              RenderTransformOrigin="0.5,0.5">
68
                    </Path>
69
                </ControlTemplate>
70
            </Setter.Value>
71
        </Setter>
72
    </Style>
73 787a4489 KangIngu
    <Style TargetType="Angle:AngleControl">
74
        <Setter Property="Template">
75
            <Setter.Value>
76
                <ControlTemplate TargetType="Angle:AngleControl">
77
                    <Border BorderBrush="#FF051F25" BorderThickness="2" Opacity="0.7" Width="120">
78
                        <Border.Background>
79
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
80 b643fcca taeseongkim
                                <GradientStop Color="#FF00CDFF" Offset="0" />
81
                                <GradientStop Color="#ff4185f3" Offset="1" />
82 787a4489 KangIngu
                            </LinearGradientBrush>
83
                        </Border.Background>
84
                        <Grid>
85
                            <TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}"  Margin="5"
86 b643fcca taeseongkim
                                                                FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center" />
87 787a4489 KangIngu
                            <TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right"
88
                                                                Opacity="0.9"
89 b643fcca taeseongkim
                                                                FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0" />
90 787a4489 KangIngu
                        </Grid>
91
                    </Border>
92
                </ControlTemplate>
93
            </Setter.Value>
94
        </Setter>
95
    </Style>
96
97
    <Style TargetType="{x:Type Line:LineControl}">
98
        <Setter Property="Template">
99
            <Setter.Value>
100
                <ControlTemplate TargetType="{x:Type Line:LineControl}">
101 b643fcca taeseongkim
                    <Path x:Name="PART_LinePath"
102
                          Stroke="{TemplateBinding StrokeColor}"
103 787a4489 KangIngu
                          StrokeThickness="{TemplateBinding LineSize}"
104 b643fcca taeseongkim
                          Data="{TemplateBinding PathData}"
105
                          RenderTransformOrigin="0.5,0.5"
106 787a4489 KangIngu
                          Fill="{TemplateBinding StrokeColor}">
107
                    </Path>
108
                </ControlTemplate>
109
            </Setter.Value>
110
        </Setter>
111
    </Style>
112
113
    <Style TargetType="{x:Type Line:ArcControl}">
114
        <Setter Property="Template">
115
            <Setter.Value>
116
                <ControlTemplate TargetType="{x:Type Line:ArcControl}">
117 b643fcca taeseongkim
                    <Path x:Name="PART_ArcPath"
118
                          Stroke="{TemplateBinding StrokeColor}"
119 787a4489 KangIngu
                          StrokeThickness="{TemplateBinding LineSize}"
120 b643fcca taeseongkim
                          Data="{TemplateBinding PathData}"
121
                          RenderTransformOrigin="0.5,0.5"
122 787a4489 KangIngu
                          Fill="{TemplateBinding StrokeColor}">
123
                    </Path>
124
                </ControlTemplate>
125
            </Setter.Value>
126
        </Setter>
127
    </Style>
128 40b3ce25 ljiyeon
    <Style TargetType="{x:Type Line:ArrowArcControl}">
129
        <Setter Property="Template">
130
            <Setter.Value>
131
                <ControlTemplate TargetType="{x:Type Line:ArrowArcControl}">
132 b643fcca taeseongkim
                    <Path x:Name="PART_ArcPath"
133
                          Stroke="{TemplateBinding StrokeColor}"
134 40b3ce25 ljiyeon
                          StrokeThickness="{TemplateBinding LineSize}"
135 b643fcca taeseongkim
                          Data="{TemplateBinding PathData}"
136
                          RenderTransformOrigin="0.5,0.5"
137 40b3ce25 ljiyeon
                          Fill="{TemplateBinding StrokeColor}">
138
                    </Path>
139
                </ControlTemplate>
140
            </Setter.Value>
141
        </Setter>
142
    </Style>
143 787a4489 KangIngu
    <Style TargetType="{x:Type Line:ArrowControl_Multi}">
144
        <Setter Property="Template">
145
            <Setter.Value>
146
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
147 b643fcca taeseongkim
                    <Path x:Name="PART_ArrowMultiPath"
148
                          Stroke="{TemplateBinding StrokeColor}"
149
                          Fill="{TemplateBinding StrokeColor}"
150
                                                  StrokeThickness="{TemplateBinding LineSize}"
151
                          Data="{TemplateBinding PathData}" />
152 787a4489 KangIngu
                </ControlTemplate>
153
            </Setter.Value>
154
        </Setter>
155
    </Style>
156
157
    <Style TargetType="{x:Type Shape:RectangleControl}">
158
        <Setter Property="Template">
159
            <Setter.Value>
160
                <ControlTemplate TargetType="{x:Type Shape:RectangleControl}">
161 b643fcca taeseongkim
                    <Path x:Name="PART_RectPath"
162 787a4489 KangIngu
                              Stroke="{TemplateBinding StrokeColor}"
163
                              StrokeThickness="{TemplateBinding LineSize}"
164
                              Data="{TemplateBinding PathData}"
165
                              Fill="{TemplateBinding FillColor}"
166
                              RenderTransformOrigin="0.5,0.5">
167
                        <!--<Path.OpacityMask>
168
                            <RadialGradientBrush>
169
                                <RadialGradientBrush.GradientStops>
170 b643fcca taeseongkim
                                    <GradientStop Offset="0" Color="#FF000000" />
171
                                    <GradientStop Offset="1" Color="#00000000" />
172 787a4489 KangIngu
                                </RadialGradientBrush.GradientStops>
173
                            </RadialGradientBrush>
174
                        </Path.OpacityMask>-->
175
                    </Path>
176
                </ControlTemplate>
177
            </Setter.Value>
178
        </Setter>
179
    </Style>
180
181
    <Style TargetType="{x:Type Shape:TriControl}">
182
        <Setter Property="Template">
183
            <Setter.Value>
184
                <ControlTemplate TargetType="{x:Type Shape:TriControl}">
185 b643fcca taeseongkim
                    <Path x:Name="PART_TriPath"
186 787a4489 KangIngu
                          Stroke="{TemplateBinding StrokeColor}"
187
                          StrokeThickness="{TemplateBinding LineSize}"
188
                          Data="{TemplateBinding PathData}"
189
                          Fill="{TemplateBinding FillColor}">
190
                    </Path>
191
                </ControlTemplate>
192
            </Setter.Value>
193
        </Setter>
194
    </Style>
195
196
    <Style TargetType="{x:Type Shape:CircleControl}">
197
        <Setter Property="Template">
198
            <Setter.Value>
199
                <ControlTemplate TargetType="Shape:CircleControl">
200 b643fcca taeseongkim
                    <Path x:Name="PART_CirclePath"
201
                          Stroke="{TemplateBinding StrokeColor}"
202
                          StrokeThickness="{TemplateBinding LineSize}"
203
                                                  Fill="{TemplateBinding FillColor}"
204
                          Data="{TemplateBinding PathData}"
205 787a4489 KangIngu
                          RenderTransformOrigin="0.5,0.5">
206
                        <Path.RenderTransform>
207
                            <TransformGroup>
208
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
209 b643fcca taeseongkim
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
210
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
211 787a4489 KangIngu
                            </TransformGroup>
212
                        </Path.RenderTransform>
213
                    </Path>
214
                </ControlTemplate>
215
            </Setter.Value>
216
        </Setter>
217
    </Style>
218
219
    <Style TargetType="{x:Type polygon:CloudControl}">
220
        <Setter Property="Template">
221
            <Setter.Value>
222
                <ControlTemplate TargetType="polygon:CloudControl">
223
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
224 b643fcca taeseongkim
                        <Path x:Name="PART_CloudPath"
225
                              Stroke="{TemplateBinding StrokeColor}"
226
                              Fill="{TemplateBinding FillColor}"
227
                              StrokeThickness="{TemplateBinding LineSize}"
228 787a4489 KangIngu
                              Data="{TemplateBinding PathData}"
229 b643fcca taeseongkim
                              RenderTransformOrigin="0,0" />
230
                        <Path x:Name="PART_CloudSubPath"
231
                              Stroke="Transparent"
232
                              Fill="{TemplateBinding FillColor}"
233
                              StrokeThickness="{TemplateBinding LineSize}"
234 787a4489 KangIngu
                              Data="{TemplateBinding PathSubData}"
235 b643fcca taeseongkim
                              RenderTransformOrigin="0,0" />
236 787a4489 KangIngu
                    </Canvas>
237
                </ControlTemplate>
238
            </Setter.Value>
239
        </Setter>
240
    </Style>
241
242
    <Style TargetType="{x:Type Shape:RectCloudControl}">
243
        <Setter Property="Template">
244
            <Setter.Value>
245
                <ControlTemplate TargetType="Shape:RectCloudControl">
246 b643fcca taeseongkim
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
247
                        <Path x:Name="PART_ArcPath"
248
                              Stroke="{TemplateBinding StrokeColor}"
249
                              Fill="{TemplateBinding FillColor}"
250
                              StrokeThickness="{TemplateBinding LineSize}"
251
                              Data="{TemplateBinding PathData}"
252
                              RenderTransformOrigin="0,0" />
253
                        <Path x:Name="PART_BodyPath"
254
                              Stroke="Transparent"
255
                              Fill="{TemplateBinding FillColor}"
256
                              StrokeThickness="{TemplateBinding LineSize}"
257 787a4489 KangIngu
                              Data="{TemplateBinding PathSubData}"
258 b643fcca taeseongkim
                              RenderTransformOrigin="0,0" />
259 787a4489 KangIngu
                    </Canvas>
260
                </ControlTemplate>
261
            </Setter.Value>
262
        </Setter>
263
    </Style>
264
265
    <Style TargetType="{x:Type polygon:PolygonControl}">
266
        <Setter Property="Template">
267
            <Setter.Value>
268
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
269 b643fcca taeseongkim
                    <Path x:Name="PART_PolyPath"
270 787a4489 KangIngu
                          Stroke="{TemplateBinding StrokeColor}"
271
                          StrokeThickness="{TemplateBinding LineSize}"
272
                          Data="{TemplateBinding PathData}"
273 b643fcca taeseongkim
                          RenderTransformOrigin="0.5,0.5">
274 787a4489 KangIngu
                    </Path>
275
                </ControlTemplate>
276
            </Setter.Value>
277
        </Setter>
278
    </Style>
279
280
    <Style TargetType="{x:Type polygon:InkControl}">
281
        <Setter Property="Template">
282
            <Setter.Value>
283
                <ControlTemplate TargetType="{x:Type polygon:InkControl}">
284 b643fcca taeseongkim
                    <Path x:Name="PART_PolyPath"
285 787a4489 KangIngu
                          Stroke="{TemplateBinding StrokeColor}"
286
                          StrokeThickness="{TemplateBinding LineSize}"
287
                          Data="{TemplateBinding PathData}"
288 b643fcca taeseongkim
                          RenderTransformOrigin="0.5,0.5">
289 787a4489 KangIngu
                    </Path>
290
                </ControlTemplate>
291
            </Setter.Value>
292
        </Setter>
293
    </Style>
294
295
    <!--<Style TargetType="Text:TextControl">-->
296
    <Style TargetType="{x:Type Text:TextControl}">
297
        <Setter Property="Template">
298
            <Setter.Value>
299
                <!--<ControlTemplate TargetType="Text:TextControl">-->
300 b643fcca taeseongkim
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
301 0d00f9c8 humkyung
                    <Canvas Background="Red" x:Name="PART_TextControlCanvas">
302 787a4489 KangIngu
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
303
                            <Grid.RenderTransform>
304
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
305
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
306 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
307 787a4489 KangIngu
308
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
309
                                                    CenterX="{TemplateBinding CenterX}"
310
                                                    CenterY="{TemplateBinding CenterY}">
311
                                </RotateTransform>-->
312
                            </Grid.RenderTransform>
313
                        </Grid>
314
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
315
                            <Grid.Background>
316 b643fcca taeseongkim
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
317 787a4489 KangIngu
                            </Grid.Background>
318
                            <Grid.RenderTransform>
319
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
320
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
321 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
322 787a4489 KangIngu
                            </Grid.RenderTransform>
323
                            <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5">
324
                            </Border>
325
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
326
                            </Border>
327
328 05009a0e ljiyeon
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False"
329 787a4489 KangIngu
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
330
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
331 b643fcca taeseongkim
                                RenderTransformOrigin="0, 0">
332 787a4489 KangIngu
                            </TextBlock>
333
                            <Border Background="Transparent">
334
335 05009a0e ljiyeon
                                <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"
336 787a4489 KangIngu
                                                                    FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
337
                                    FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0"
338 b643fcca taeseongkim
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
339
                                    RenderTransformOrigin="0, 0">
340 787a4489 KangIngu
                                </TextBlock>
341
                            </Border>
342
343 05009a0e ljiyeon
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"  IsTabStop="False" AcceptsTab="False"
344 b643fcca taeseongkim
                                        Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"
345
                                                                        TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True"
346 24c5e56c taeseongkim
                                        FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}"   TextDecorations="{TemplateBinding UnderLine}" FontWeight="{TemplateBinding TextWeight}">
347 787a4489 KangIngu
                            </TextBox>
348 3074202c 송근호
349
                            <Canvas>
350 b643fcca taeseongkim
                                <Border x:Name="Caret"
351 3074202c 송근호
                                        Visibility="Collapsed"
352 b643fcca taeseongkim
                                        Canvas.Left="0"
353
                                        Canvas.Top="0"
354
                                        Width="3"
355
                                        Height="33"
356 3074202c 송근호
                                        Background="Red">
357
                                    <Border.Triggers>
358
                                        <EventTrigger RoutedEvent="Border.Loaded">
359
                                            <BeginStoryboard>
360 b643fcca taeseongkim
                                                <Storyboard  x:Name="CaretStoryBoard"
361 3074202c 송근호
                                                                 RepeatBehavior="Forever">
362 b643fcca taeseongkim
                                                    <ColorAnimationUsingKeyFrames
363 3074202c 송근호
                                                                Storyboard.TargetProperty="Background.Color"
364
                                                                Duration="0:0:0:1"
365
                                                                FillBehavior="HoldEnd">
366 b643fcca taeseongkim
                                                        <ColorAnimationUsingKeyFrames.KeyFrames>
367 3074202c 송근호
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
368 b643fcca taeseongkim
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black" />
369 3074202c 송근호
                                                        </ColorAnimationUsingKeyFrames.KeyFrames>
370
                                                    </ColorAnimationUsingKeyFrames>
371
                                                </Storyboard>
372
                                            </BeginStoryboard>
373
                                        </EventTrigger>
374
                                    </Border.Triggers>
375
                                </Border>
376
                            </Canvas>
377 787a4489 KangIngu
                        </Grid>
378
379 b643fcca taeseongkim
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False"
380 787a4489 KangIngu
                              Fill="{TemplateBinding BackInnerColor}">
381
                            <Path.RenderTransform>
382
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
383
                                                    CenterX="{TemplateBinding CenterX}"
384
                                                    CenterY="{TemplateBinding CenterY}">
385
                                </RotateTransform>-->
386
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
387
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
388 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
389 787a4489 KangIngu
                            </Path.RenderTransform>
390
                        </Path>
391
392 05009a0e ljiyeon
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}"  Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
393 787a4489 KangIngu
                            <Path.Fill>
394 b643fcca taeseongkim
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6" />
395 787a4489 KangIngu
                            </Path.Fill>
396
                            <Path.RenderTransform>
397
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
398
                                                    CenterX="{TemplateBinding CenterX}"
399
                                                    CenterY="{TemplateBinding CenterY}">
400
                                </RotateTransform>-->
401
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
402
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
403 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
404 787a4489 KangIngu
                            </Path.RenderTransform>
405
                        </Path>
406
                    </Canvas>
407
                </ControlTemplate>
408
            </Setter.Value>
409
        </Setter>
410
    </Style>
411
412
    <!--<Style TargetType="{x:Type Text:TextControl}">
413
        <Setter Property="Template">
414
            <Setter.Value>
415
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
416
                    <Canvas>
417
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
418
                            <Grid.RenderTransform>
419
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
420
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
421 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
422 787a4489 KangIngu
                            </Grid.RenderTransform>
423
                        </Grid>
424
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
425
                            <Grid.Background>
426 b643fcca taeseongkim
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
427 787a4489 KangIngu
                            </Grid.Background>
428
                            <Grid.RenderTransform>
429
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
430
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
431 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
432 787a4489 KangIngu
                            </Grid.RenderTransform>
433
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
434
                            </Border>
435
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
436
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
437
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
438
                                RenderTransformOrigin="0, 0">
439
                            </TextBlock>
440
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
441
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
442
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
443
                                RenderTransformOrigin="0, 0"
444 b643fcca taeseongkim
                                Visibility="{TemplateBinding TextBlockVisibility}">
445 787a4489 KangIngu
                            </TextBlock>
446 b643fcca taeseongkim
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
447
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}"
448 787a4489 KangIngu
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
449 b643fcca taeseongkim
                                     Visibility="{TemplateBinding TextBoxVisibility}">
450 787a4489 KangIngu
                            </TextBox>
451
                        </Grid>
452

453
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
454
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
455
                            <Path.RenderTransform>
456
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
457
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
458 b643fcca taeseongkim
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
459 787a4489 KangIngu
                            </Path.RenderTransform>
460
                        </Path>
461
                    </Canvas>
462
                </ControlTemplate>
463
            </Setter.Value>
464
        </Setter>
465
    </Style>-->
466
467
    <Style TargetType="{x:Type Text:ArrowTextControl}">
468
        <Setter Property="Template">
469
            <Setter.Value>
470
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
471 b643fcca taeseongkim
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
472 787a4489 KangIngu
473 b643fcca taeseongkim
                        <!--<Path x:Name="PART_ArrowPath"
474
                              Stroke="{TemplateBinding StrokeColor}"
475
                                                      StrokeThickness="{TemplateBinding LineSize}"
476
                              Data="{TemplateBinding PathData}"
477 787a4489 KangIngu
                              Fill="{TemplateBinding StrokeColor}">
478
                        </Path>-->
479
480 fa48eb85 taeseongkim
                        <Path x:Name="PART_ArrowPath"  Panel.ZIndex="0"
481 787a4489 KangIngu
                                  Stroke="{TemplateBinding StrokeColor}"
482 b643fcca taeseongkim
                                                          StrokeThickness="{TemplateBinding LineSize}"
483 787a4489 KangIngu
                                  Data="{TemplateBinding PathData}"
484 b643fcca taeseongkim
                                  Fill="{TemplateBinding StrokeColor}" />
485 787a4489 KangIngu
486 b643fcca taeseongkim
                        <!--<Path x:Name="PART_ArrowSubPath"
487 787a4489 KangIngu
                                      Stroke="{TemplateBinding StrokeColor}"
488 b643fcca taeseongkim
                                                              StrokeThickness="{TemplateBinding LineSize}"
489
                                      Fill="{TemplateBinding SubPathFill}"
490 787a4489 KangIngu
                                      Data="{TemplateBinding SubPathData}"
491 b643fcca taeseongkim
                                      RenderTransformOrigin="0,0" />-->
492 787a4489 KangIngu
493 fa48eb85 taeseongkim
                        <Path x:Name="PART_ArrowSubPath"  Panel.ZIndex="2"
494 787a4489 KangIngu
                                      Stroke="{TemplateBinding StrokeColor}"
495 b643fcca taeseongkim
                                                              StrokeThickness="{TemplateBinding LineSize}"
496 fa48eb85 taeseongkim
                                      Fill="{TemplateBinding SubPathFill}"
497 787a4489 KangIngu
                                      Data="{TemplateBinding SubPathData}"
498 b643fcca taeseongkim
                                      RenderTransformOrigin="0,0" />
499 787a4489 KangIngu
500 b643fcca taeseongkim
                        <Path  x:Name="PART_TextBoxBackBorder"
501
                                      Stroke="Transparent"
502 fa48eb85 taeseongkim
                                      Fill="{TemplateBinding BackInnerColor}" Panel.ZIndex="1"
503 787a4489 KangIngu
                                      Data="{TemplateBinding PathDataInner}"
504 b643fcca taeseongkim
                                      RenderTransformOrigin="0,0" />
505
                        <!--<TextBlock x:Name="PART_ArrowTextBlock"
506 787a4489 KangIngu
                                     Margin="0.5"
507
                                     Background="{TemplateBinding TextBoxBackground}"
508 b643fcca taeseongkim
                                     FontSize="{TemplateBinding TextSize}"
509 787a4489 KangIngu
                                     FontFamily="{TemplateBinding TextFamily}"
510
                                     FontStyle="{TemplateBinding TextStyle}"
511
                                                                     FontWeight="{TemplateBinding TextWeight}"
512 b643fcca taeseongkim
                                     Foreground="{TemplateBinding StrokeColor}"
513 787a4489 KangIngu
                                     HorizontalAlignment="Stretch"
514 b643fcca taeseongkim
                                     TextWrapping="Wrap"
515 787a4489 KangIngu
                                     Text="{TemplateBinding ArrowText}"
516
                                     RenderTransformOrigin="0.5,0.5">
517
                            <TextBlock.RenderTransform>
518
                                <RotateTransform Angle="{TemplateBinding Angle}"
519
                                                    CenterX="{TemplateBinding CenterX}"
520
                                                    CenterY="{TemplateBinding CenterY}">
521
                                </RotateTransform>
522
                            </TextBlock.RenderTransform>
523
                        </TextBlock>-->
524
525 fa48eb85 taeseongkim
                        <Canvas Panel.ZIndex="4">
526 b643fcca taeseongkim
                            <Border x:Name="Caret"
527 fa48eb85 taeseongkim
                                            Visibility="Collapsed"
528 b643fcca taeseongkim
                                            Canvas.Left="0"
529
                                            Canvas.Top="0"
530 fa48eb85 taeseongkim
                                            Width="5"
531
                                            RenderTransformOrigin="0.5,0.5"
532
                                            Height="{Binding ActualHeight,ElementName=CaretHeightTextBlock}">
533
                                <Border.Background>
534 b643fcca taeseongkim
                                    <SolidColorBrush Color="#B2930909" />
535 fa48eb85 taeseongkim
                                </Border.Background>
536 b643fcca taeseongkim
                                <TextBlock Text="A" x:Name="CaretHeightTextBlock" Foreground="Transparent" FontSize="{TemplateBinding TextSize}"
537 fa48eb85 taeseongkim
                                         FontFamily="{TemplateBinding TextFamily}" TextWrapping="NoWrap"
538 b643fcca taeseongkim
                                         FontStyle="{TemplateBinding TextStyle}" />
539 fa48eb85 taeseongkim
                                <!--<Border.RenderTransform>
540
                                    <RotateTransform  Angle="{Binding VisualPageAngle, Converter={StaticResource ValueBindingTestConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
541
                                                                CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
542 b643fcca taeseongkim
                                                                CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
543 fa48eb85 taeseongkim
                                </Border.RenderTransform>-->
544
                                <Border.Triggers>
545
                                    <EventTrigger RoutedEvent="FrameworkElement.Loaded">
546
                                        <BeginStoryboard>
547 b643fcca taeseongkim
                                            <Storyboard  x:Name="CaretStoryBoard"
548 fa48eb85 taeseongkim
                                                                     RepeatBehavior="Forever">
549 b643fcca taeseongkim
                                                <ColorAnimationUsingKeyFrames
550 fa48eb85 taeseongkim
                                                                    Storyboard.TargetProperty="Background.Color"
551
                                                                Duration="0:0:0:1"
552
                                                                FillBehavior="HoldEnd">
553
                                                    <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
554 b643fcca taeseongkim
                                                    <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="#B2930909" />
555 fa48eb85 taeseongkim
                                                </ColorAnimationUsingKeyFrames>
556
                                            </Storyboard>
557
                                        </BeginStoryboard>
558
                                    </EventTrigger>
559
                                </Border.Triggers>
560
                            </Border>
561
                        </Canvas>
562 b643fcca taeseongkim
                        <TextBox x:Name="PART_ArrowTextBox"
563 fa48eb85 taeseongkim
                                         Margin="0.5" Panel.ZIndex="5"
564 3074202c 송근호
                                         Background="{TemplateBinding TextBoxBackground}"
565 b643fcca taeseongkim
                                         BorderThickness="{TemplateBinding BorderSize}"
566 3074202c 송근호
                                         BorderBrush="{TemplateBinding StrokeColor}"
567 b643fcca taeseongkim
                                         FontSize="{TemplateBinding TextSize}"
568 3074202c 송근호
                                         FontFamily="{TemplateBinding TextFamily}"
569
                                         FontStyle="{TemplateBinding TextStyle}"
570
                                                                         FontWeight="{TemplateBinding TextWeight}"
571
                                         TextDecorations="{TemplateBinding UnderLine}"
572 b643fcca taeseongkim
                                         AcceptsReturn="True"
573
                                         Foreground="{TemplateBinding StrokeColor}"
574 3074202c 송근호
                                         HorizontalAlignment="Stretch"
575 fa48eb85 taeseongkim
                                         TextWrapping="Wrap"
576
                                          CaretBrush="DarkBlue"
577 3074202c 송근호
                                         Text="{TemplateBinding ArrowText}"
578
                                         RenderTransformOrigin="0.5,0.5">
579 fa48eb85 taeseongkim
                            <!--<TextBox.RenderTransform>
580
                                <RotateTransform  Angle="{Binding VisualPageAngle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
581 3074202c 송근호
                                                        CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
582 b643fcca taeseongkim
                                                        CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
583 fa48eb85 taeseongkim
                            </TextBox.RenderTransform>-->
584
                        </TextBox>
585 787a4489 KangIngu
                    </Canvas>
586
                </ControlTemplate>
587
            </Setter.Value>
588
        </Setter>
589
    </Style>
590
591
    <Style TargetType="Etc:DateControl">
592
        <Setter Property="Template">
593
            <Setter.Value>
594
                <ControlTemplate TargetType="Etc:DateControl">
595 b643fcca taeseongkim
                    <Viewbox x:Name="PART_ViewBox">
596
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}"
597 787a4489 KangIngu
                                 Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5">
598
                            <TextBlock.RenderTransform>
599
                                <TransformGroup>
600
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
601 b643fcca taeseongkim
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
602
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
603 787a4489 KangIngu
                                </TransformGroup>
604
                            </TextBlock.RenderTransform>
605
                        </TextBlock>
606
                    </Viewbox>
607
                </ControlTemplate>
608
            </Setter.Value>
609
        </Setter>
610
    </Style>
611
612
    <Style TargetType="Etc:SignControl">
613
        <Setter Property="Template">
614
            <Setter.Value>
615
                <ControlTemplate TargetType="Etc:SignControl">
616
                    <Image x:Name="PART_Image"  Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
617
                        <Image.RenderTransform>
618
                            <TransformGroup>
619
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
620 b643fcca taeseongkim
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
621
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
622 787a4489 KangIngu
                            </TransformGroup>
623
                        </Image.RenderTransform>
624
                    </Image>
625
                </ControlTemplate>
626
            </Setter.Value>
627
        </Setter>
628
    </Style>
629
630
    <Style TargetType="Etc:ImgControl">
631
        <Setter Property="Template">
632
            <Setter.Value>
633
                <ControlTemplate TargetType="Etc:ImgControl">
634
                    <Image x:Name="PART_Image"  Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
635
                        <Image.RenderTransform>
636
                            <TransformGroup>
637
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
638 b643fcca taeseongkim
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
639
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
640 787a4489 KangIngu
                            </TransformGroup>
641
                        </Image.RenderTransform>
642
                    </Image>
643
                </ControlTemplate>
644
            </Setter.Value>
645
        </Setter>
646
    </Style>
647
648
    <!--강인구 추가-->
649
    <Style TargetType="Etc:SymControl">
650
        <Setter Property="Template">
651
            <Setter.Value>
652
                <ControlTemplate TargetType="Etc:SymControl">
653
                    <Viewbox x:Name="PART_ViewBox">
654
                        <Path x:Name="PART_SymPath"  Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
655 b643fcca taeseongkim
                          Data="{TemplateBinding PathData}"
656 787a4489 KangIngu
                              RenderTransformOrigin="0.5,0.5">
657
                            <Path.RenderTransform>
658
                                <TransformGroup>
659
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
660 b643fcca taeseongkim
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
661
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
662 787a4489 KangIngu
                                </TransformGroup>
663
                            </Path.RenderTransform>
664
                        </Path>
665
                    </Viewbox>
666
                </ControlTemplate>
667
            </Setter.Value>
668
        </Setter>
669
    </Style>
670
671
    <Style TargetType="Etc:SymControlN">
672
        <Setter Property="Template">
673
            <Setter.Value>
674
                <ControlTemplate TargetType="Etc:SymControlN">
675 c206d293 taeseongkim
                    <Viewbox x:Name="PART_ViewBox" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
676 787a4489 KangIngu
                        <Viewbox.RenderTransform>
677
                            <TransformGroup>
678
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
679 b643fcca taeseongkim
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
680
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
681 787a4489 KangIngu
                            </TransformGroup>
682
                        </Viewbox.RenderTransform>
683
                    </Viewbox>
684
                </ControlTemplate>
685
            </Setter.Value>
686
        </Setter>
687
    </Style>
688
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)