프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ master

이력 | 보기 | 이력해설 | 다운로드 (42.1 KB)

1
<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

    
12
    <Style TargetType="{x:Type Cad:CoordinateControl}">
13
        <Setter Property="Template">
14
            <Setter.Value>
15
                <ControlTemplate TargetType="{x:Type Cad:CoordinateControl}">
16
                    <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
                </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
                    <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
                </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
                    <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
                </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
                    <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
                </ControlTemplate>
72
            </Setter.Value>
73
        </Setter>
74
    </Style>
75
    <Style TargetType="Angle:AngleControl">
76
        <Setter Property="Template">
77
            <Setter.Value>
78
                <ControlTemplate TargetType="Angle:AngleControl">
79
                    <Border
80
                        Width="120"
81
                        BorderBrush="#FF051F25"
82
                        BorderThickness="2"
83
                        Opacity="0.7">
84
                        <Border.Background>
85
                            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
86
                                <GradientStop Offset="0" Color="#FF00CDFF" />
87
                                <GradientStop Offset="1" Color="#ff4185f3" />
88
                            </LinearGradientBrush>
89
                        </Border.Background>
90
                        <Grid>
91
                            <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
                        </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
                    <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
                </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
                    <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
                </ControlTemplate>
142
            </Setter.Value>
143
        </Setter>
144
    </Style>
145
    <Style TargetType="{x:Type Line:ArrowArcControl}">
146
        <Setter Property="Template">
147
            <Setter.Value>
148
                <ControlTemplate TargetType="{x:Type Line:ArrowArcControl}">
149
                    <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
                </ControlTemplate>
157
            </Setter.Value>
158
        </Setter>
159
    </Style>
160
    <Style TargetType="{x:Type Line:ArrowControl_Multi}">
161
        <Setter Property="Template">
162
            <Setter.Value>
163
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
164
                    <Path
165
                        x:Name="PART_ArrowMultiPath"
166
                        Data="{TemplateBinding PathData}"
167
                        Fill="{TemplateBinding StrokeColor}"
168
                        Stroke="{TemplateBinding StrokeColor}"
169
                        StrokeThickness="{TemplateBinding LineSize}" />
170
                </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
                    <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
                        <!--<Path.OpacityMask>
187
                            <RadialGradientBrush>
188
                                <RadialGradientBrush.GradientStops>
189
                                    <GradientStop Offset="0" Color="#FF000000" />
190
                                    <GradientStop Offset="1" Color="#00000000" />
191
                                </RadialGradientBrush.GradientStops>
192
                            </RadialGradientBrush>
193
                        </Path.OpacityMask>-->
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
                    <Path
205
                        x:Name="PART_TriPath"
206
                        Data="{TemplateBinding PathData}"
207
                        Fill="{TemplateBinding FillColor}"
208
                        Stroke="{TemplateBinding StrokeColor}"
209
                        StrokeThickness="{TemplateBinding LineSize}" />
210
                </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
                    <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
                        <Path.RenderTransform>
227
                            <TransformGroup>
228
                                <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
                            </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
                        <Path
243
                            x:Name="PART_CloudPath"
244
                            Data="{TemplateBinding PathData}"
245
                            Fill="{TemplateBinding FillColor}"
246
                            RenderTransformOrigin="0,0"
247
                            Stroke="{TemplateBinding StrokeColor}"
248
                            StrokeLineJoin="Bevel"
249
                            StrokeThickness="{TemplateBinding LineSize}" />
250
                        <Path
251
                            x:Name="PART_CloudSubPath"
252
                            Data="{TemplateBinding PathSubData}"
253
                            Fill="{TemplateBinding FillColor}"
254
                            RenderTransformOrigin="0,0"
255
                            Stroke="Transparent"
256
                            StrokeThickness="{TemplateBinding LineSize}" />
257
                    </Canvas>
258
                </ControlTemplate>
259
            </Setter.Value>
260
        </Setter>
261
    </Style>
262

    
263
    <Style TargetType="{x:Type Shape:RectCloudControl}">
264
        <Setter Property="Template">
265
            <Setter.Value>
266
                <ControlTemplate TargetType="Shape:RectCloudControl">
267
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
268
                        <Path
269
                            x:Name="PART_ArcPath"
270
                            Data="{TemplateBinding PathData}"
271
                            Fill="{TemplateBinding FillColor}"
272
                            RenderTransformOrigin="0,0"
273
                            Stroke="{TemplateBinding StrokeColor}"
274
                            StrokeThickness="{TemplateBinding LineSize}" />
275
                        <Path
276
                            x:Name="PART_BodyPath"
277
                            Data="{TemplateBinding PathSubData}"
278
                            Fill="{TemplateBinding FillColor}"
279
                            RenderTransformOrigin="0,0"
280
                            Stroke="Transparent"
281
                            StrokeThickness="{TemplateBinding LineSize}" />
282
                    </Canvas>
283
                </ControlTemplate>
284
            </Setter.Value>
285
        </Setter>
286
    </Style>
287

    
288
    <Style TargetType="{x:Type polygon:PolygonControl}">
289
        <Setter Property="Template">
290
            <Setter.Value>
291
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
292
                    <Path
293
                        x:Name="PART_PolyPath"
294
                        Data="{TemplateBinding PathData}"
295
                        RenderTransformOrigin="0.5,0.5"
296
                        Stroke="{TemplateBinding StrokeColor}"
297
                        StrokeThickness="{TemplateBinding LineSize}" />
298
                </ControlTemplate>
299
            </Setter.Value>
300
        </Setter>
301
    </Style>
302

    
303
    <Style TargetType="{x:Type polygon:InkControl}">
304
        <Setter Property="Template">
305
            <Setter.Value>
306
                <ControlTemplate TargetType="{x:Type polygon:InkControl}">
307
                    <Path
308
                        x:Name="PART_PolyPath"
309
                        Data="{TemplateBinding PathData}"
310
                        RenderTransformOrigin="0.5,0.5"
311
                        Stroke="{TemplateBinding StrokeColor}"
312
                        StrokeThickness="{TemplateBinding LineSize}" />
313
                </ControlTemplate>
314
            </Setter.Value>
315
        </Setter>
316
    </Style>
317

    
318
    <!--<Style TargetType="Text:TextControl">-->
319
    <Style TargetType="{x:Type Text:TextControl}">
320
        <Setter Property="Template">
321
            <Setter.Value>
322
                <!--<ControlTemplate TargetType="Text:TextControl">-->
323
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
324
                    <Canvas x:Name="PART_TextControlCanvas" Background="Red">
325
                        <Grid
326
                            x:Name="PART_Grid"
327
                            HorizontalAlignment="Stretch"
328
                            VerticalAlignment="Stretch"
329
                            Canvas.ZIndex="0"
330
                            RenderTransformOrigin="0,0">
331
                            <Grid.RenderTransform>
332
                                <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}}" />
333

    
334
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
335
                                                    CenterX="{TemplateBinding CenterX}"
336
                                                    CenterY="{TemplateBinding CenterY}">
337
                                </RotateTransform>-->
338
                            </Grid.RenderTransform>
339
                        </Grid>
340
                        <Grid
341
                            HorizontalAlignment="Stretch"
342
                            VerticalAlignment="Stretch"
343
                            Canvas.ZIndex="2"
344
                            RenderTransformOrigin="0,0">
345
                            <Grid.Background>
346
                                <SolidColorBrush Opacity="0.001" Color="{TemplateBinding BackColor}" />
347
                            </Grid.Background>
348
                            <Grid.RenderTransform>
349
                                <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}}" />
350
                            </Grid.RenderTransform>
351
                            <Border
352
                                x:Name="PART_Border"
353
                                Margin="2,5,3,5"
354
                                Background="Transparent"
355
                                IsHitTestVisible="False" />
356
                            <Border
357
                                Margin="2,5,3,5"
358
                                Background="{TemplateBinding BackColor}"
359
                                IsHitTestVisible="False" />
360

    
361
                            <TextBlock
362
                                x:Name="PART_TextPrefix"
363
                                Margin="-30,-30"
364
                                FontFamily="{TemplateBinding TextFamily}"
365
                                FontSize="30"
366
                                FontStyle="{TemplateBinding TextStyle}"
367
                                FontWeight="{TemplateBinding TextWeight}"
368
                                Foreground="{TemplateBinding StrokeColor}"
369
                                IsHitTestVisible="False"
370
                                RenderTransformOrigin="0, 0"
371
                                Text=""
372
                                TextDecorations="{TemplateBinding UnderLine}"
373
                                TextWrapping="Wrap" />
374
                            <Border Background="Transparent">
375

    
376
                                <TextBlock
377
                                    x:Name="PART_TextBlock"
378
                                    Margin="2,0,0,0"
379
                                    Padding="2"
380
                                    FontFamily="{TemplateBinding TextFamily}"
381
                                    FontSize="{TemplateBinding TextSize}"
382
                                    FontStyle="{TemplateBinding TextStyle}"
383
                                    FontWeight="{TemplateBinding TextWeight}"
384
                                    Foreground="{TemplateBinding StrokeColor}"
385
                                    RenderTransformOrigin="0, 0"
386
                                    Text="{TemplateBinding Text}"
387
                                    TextDecorations="{TemplateBinding UnderLine}"
388
                                    TextWrapping="Wrap"
389
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
390
                            </Border>
391

    
392
                            <TextBox
393
                                x:Name="PART_TextBox"
394
                                Padding="2"
395
                                AcceptsReturn="True"
396
                                AcceptsTab="False"
397
                                Background="{TemplateBinding BackColor}"
398
                                FontFamily="{TemplateBinding TextFamily}"
399
                                FontSize="{TemplateBinding TextSize}"
400
                                FontStyle="{TemplateBinding TextStyle}"
401
                                FontWeight="{TemplateBinding TextWeight}"
402
                                Foreground="{TemplateBinding StrokeColor}"
403
                                IsTabStop="False"
404
                                Text="{TemplateBinding Text}"
405
                                TextDecorations="{TemplateBinding UnderLine}"
406
                                TextWrapping="Wrap"
407
                                Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
408

    
409
                            <Canvas>
410
                                <Border
411
                                    x:Name="Caret"
412
                                    Canvas.Left="0"
413
                                    Canvas.Top="0"
414
                                    Width="3"
415
                                    Height="33"
416
                                    Background="Red"
417
                                    Visibility="Collapsed">
418
                                    <Border.Triggers>
419
                                        <EventTrigger RoutedEvent="Border.Loaded">
420
                                            <BeginStoryboard>
421
                                                <Storyboard x:Name="CaretStoryBoard" RepeatBehavior="Forever">
422
                                                    <ColorAnimationUsingKeyFrames
423
                                                        FillBehavior="HoldEnd"
424
                                                        Storyboard.TargetProperty="Background.Color"
425
                                                        Duration="0:0:0:1">
426
                                                        <ColorAnimationUsingKeyFrames.KeyFrames>
427
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
428
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black" />
429
                                                        </ColorAnimationUsingKeyFrames.KeyFrames>
430
                                                    </ColorAnimationUsingKeyFrames>
431
                                                </Storyboard>
432
                                            </BeginStoryboard>
433
                                        </EventTrigger>
434
                                    </Border.Triggers>
435
                                </Border>
436
                            </Canvas>
437
                        </Grid>
438

    
439
                        <Path
440
                            Canvas.ZIndex="0"
441
                            Data="{TemplateBinding PathDataInner}"
442
                            Fill="{TemplateBinding BackInnerColor}"
443
                            IsHitTestVisible="False"
444
                            RenderTransformOrigin="0,0"
445
                            Stroke="Transparent"
446
                            StrokeLineJoin="Bevel">
447
                            <Path.RenderTransform>
448
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
449
                                                    CenterX="{TemplateBinding CenterX}"
450
                                                    CenterY="{TemplateBinding CenterY}">
451
                                </RotateTransform>-->
452
                                <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}}" />
453
                            </Path.RenderTransform>
454
                        </Path>
455

    
456
                        <Path
457
                            x:Name="PART_TextPath"
458
                            Canvas.ZIndex="1"
459
                            Data="{TemplateBinding PathData}"
460
                            RenderTransformOrigin="0,0"
461
                            Stroke="{TemplateBinding StrokeColor}">
462
                            <Path.Fill>
463
                                <SolidColorBrush Opacity="0.6" Color="{TemplateBinding BackInnerColor}" />
464
                            </Path.Fill>
465
                            <Path.RenderTransform>
466
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
467
                                                    CenterX="{TemplateBinding CenterX}"
468
                                                    CenterY="{TemplateBinding CenterY}">
469
                                </RotateTransform>-->
470
                                <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}}" />
471
                            </Path.RenderTransform>
472
                        </Path>
473
                    </Canvas>
474
                </ControlTemplate>
475
            </Setter.Value>
476
        </Setter>
477
    </Style>
478

    
479
    <!--<Style TargetType="{x:Type Text:TextControl}">
480
        <Setter Property="Template">
481
            <Setter.Value>
482
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
483
                    <Canvas>
484
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
485
                            <Grid.RenderTransform>
486
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
487
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
488
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
489
                            </Grid.RenderTransform>
490
                        </Grid>
491
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
492
                            <Grid.Background>
493
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
494
                            </Grid.Background>
495
                            <Grid.RenderTransform>
496
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
497
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
498
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
499
                            </Grid.RenderTransform>
500
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
501
                            </Border>
502
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
503
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
504
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
505
                                RenderTransformOrigin="0, 0">
506
                            </TextBlock>
507
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
508
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
509
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
510
                                RenderTransformOrigin="0, 0"
511
                                Visibility="{TemplateBinding TextBlockVisibility}">
512
                            </TextBlock>
513
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
514
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}"
515
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
516
                                     Visibility="{TemplateBinding TextBoxVisibility}">
517
                            </TextBox>
518
                        </Grid>
519

520
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
521
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
522
                            <Path.RenderTransform>
523
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
524
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
525
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
526
                            </Path.RenderTransform>
527
                        </Path>
528
                    </Canvas>
529
                </ControlTemplate>
530
            </Setter.Value>
531
        </Setter>
532
    </Style>-->
533

    
534
    <Style TargetType="{x:Type Text:ArrowTextControl}">
535
        <Setter Property="Template">
536
            <Setter.Value>
537
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
538
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
539

    
540
                        <!--<Path x:Name="PART_ArrowPath"
541
                              Stroke="{TemplateBinding StrokeColor}"
542
                                                      StrokeThickness="{TemplateBinding LineSize}"
543
                              Data="{TemplateBinding PathData}"
544
                              Fill="{TemplateBinding StrokeColor}">
545
                        </Path>-->
546

    
547
                        <Path
548
                            x:Name="PART_ArrowPath"
549
                            Panel.ZIndex="0"
550
                            Data="{TemplateBinding PathData}"
551
                            Fill="{TemplateBinding StrokeColor}"
552
                            Stroke="{TemplateBinding StrokeColor}"
553
                            StrokeLineJoin="Bevel"
554
                            StrokeThickness="{TemplateBinding LineSize}" />
555

    
556
                        <!--<Path x:Name="PART_ArrowSubPath"
557
                                      Stroke="{TemplateBinding StrokeColor}"
558
                                                              StrokeThickness="{TemplateBinding LineSize}"
559
                                      Fill="{TemplateBinding SubPathFill}"
560
                                      Data="{TemplateBinding SubPathData}"
561
                                      RenderTransformOrigin="0,0" />-->
562

    
563
                        <Path
564
                            x:Name="PART_ArrowSubPath"
565
                            Panel.ZIndex="2"
566
                            Data="{TemplateBinding SubPathData}"
567
                            Fill="{TemplateBinding SubPathFill}"
568
                            RenderTransformOrigin="0,0"
569
                            Stroke="{TemplateBinding StrokeColor}"
570
                            StrokeThickness="{TemplateBinding LineSize}" />
571

    
572
                        <Path
573
                            x:Name="PART_TextBoxBackBorder"
574
                            Panel.ZIndex="1"
575
                            Data="{TemplateBinding PathDataInner}"
576
                            Fill="{TemplateBinding BackInnerColor}"
577
                            RenderTransformOrigin="0,0"
578
                            Stroke="Transparent" />
579
                        <!--<TextBlock x:Name="PART_ArrowTextBlock"
580
                                     Margin="0.5"
581
                                     Background="{TemplateBinding TextBoxBackground}"
582
                                     FontSize="{TemplateBinding TextSize}"
583
                                     FontFamily="{TemplateBinding TextFamily}"
584
                                     FontStyle="{TemplateBinding TextStyle}"
585
                                                                     FontWeight="{TemplateBinding TextWeight}"
586
                                     Foreground="{TemplateBinding StrokeColor}"
587
                                     HorizontalAlignment="Stretch"
588
                                     TextWrapping="Wrap"
589
                                     Text="{TemplateBinding ArrowText}"
590
                                     RenderTransformOrigin="0.5,0.5">
591
                            <TextBlock.RenderTransform>
592
                                <RotateTransform Angle="{TemplateBinding Angle}"
593
                                                    CenterX="{TemplateBinding CenterX}"
594
                                                    CenterY="{TemplateBinding CenterY}">
595
                                </RotateTransform>
596
                            </TextBlock.RenderTransform>
597
                        </TextBlock>-->
598

    
599
                        <Canvas Panel.ZIndex="4">
600
                            <Border
601
                                x:Name="Caret"
602
                                Canvas.Left="0"
603
                                Canvas.Top="0"
604
                                Width="5"
605
                                Height="{Binding ActualHeight, ElementName=CaretHeightTextBlock}"
606
                                RenderTransformOrigin="0.5,0.5"
607
                                Visibility="Collapsed">
608
                                <Border.Background>
609
                                    <SolidColorBrush Color="#B2930909" />
610
                                </Border.Background>
611
                                <TextBlock
612
                                    x:Name="CaretHeightTextBlock"
613
                                    FontFamily="{TemplateBinding TextFamily}"
614
                                    FontSize="{TemplateBinding TextSize}"
615
                                    FontStyle="{TemplateBinding TextStyle}"
616
                                    Foreground="Transparent"
617
                                    Text="A"
618
                                    TextWrapping="NoWrap" />
619
                                <!--<Border.RenderTransform>
620
                                    <RotateTransform  Angle="{Binding VisualPageAngle, Converter={StaticResource ValueBindingTestConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
621
                                                                CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
622
                                                                CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
623
                                </Border.RenderTransform>-->
624
                                <Border.Triggers>
625
                                    <EventTrigger RoutedEvent="FrameworkElement.Loaded">
626
                                        <BeginStoryboard>
627
                                            <Storyboard x:Name="CaretStoryBoard" RepeatBehavior="Forever">
628
                                                <ColorAnimationUsingKeyFrames
629
                                                    FillBehavior="HoldEnd"
630
                                                    Storyboard.TargetProperty="Background.Color"
631
                                                    Duration="0:0:0:1">
632
                                                    <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
633
                                                    <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="#B2930909" />
634
                                                </ColorAnimationUsingKeyFrames>
635
                                            </Storyboard>
636
                                        </BeginStoryboard>
637
                                    </EventTrigger>
638
                                </Border.Triggers>
639
                            </Border>
640
                        </Canvas>
641
                        <TextBox
642
                            x:Name="PART_ArrowTextBox"
643
                            Margin="0.5"
644
                            HorizontalAlignment="Stretch"
645
                            Panel.ZIndex="5"
646
                            AcceptsReturn="True"
647
                            Background="{TemplateBinding TextBoxBackground}"
648
                            BorderBrush="{TemplateBinding StrokeColor}"
649
                            BorderThickness="{TemplateBinding BorderSize}"
650
                            CaretBrush="DarkBlue"
651
                            FontFamily="{TemplateBinding TextFamily}"
652
                            FontSize="{TemplateBinding TextSize}"
653
                            FontStyle="{TemplateBinding TextStyle}"
654
                            FontWeight="{TemplateBinding TextWeight}"
655
                            Foreground="{TemplateBinding StrokeColor}"
656
                            RenderTransformOrigin="0.5,0.5"
657
                            Text="{TemplateBinding ArrowText}"
658
                            TextDecorations="{TemplateBinding UnderLine}"
659
                            TextWrapping="Wrap">
660
                            <!--<TextBox.RenderTransform>
661
                                <RotateTransform  Angle="{Binding VisualPageAngle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
662
                                                        CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
663
                                                        CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
664
                            </TextBox.RenderTransform>-->
665
                        </TextBox>
666
                    </Canvas>
667
                </ControlTemplate>
668
            </Setter.Value>
669
        </Setter>
670
    </Style>
671

    
672
    <Style TargetType="Etc:DateControl">
673
        <Setter Property="Template">
674
            <Setter.Value>
675
                <ControlTemplate TargetType="Etc:DateControl">
676
                    <Viewbox x:Name="PART_ViewBox">
677
                        <TextBlock
678
                            x:Name="PART_TextBox"
679
                            Foreground="{TemplateBinding FontColor}"
680
                            RenderTransformOrigin="0.5,0.5"
681
                            Text="{TemplateBinding Text}">
682
                            <TextBlock.RenderTransform>
683
                                <TransformGroup>
684
                                    <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}}" />
685
                                </TransformGroup>
686
                            </TextBlock.RenderTransform>
687
                        </TextBlock>
688
                    </Viewbox>
689
                </ControlTemplate>
690
            </Setter.Value>
691
        </Setter>
692
    </Style>
693

    
694
    <Style TargetType="Etc:SignControl">
695
        <Setter Property="Template">
696
            <Setter.Value>
697
                <ControlTemplate TargetType="Etc:SignControl">
698
                    <Image
699
                        x:Name="PART_Image"
700
                        RenderTransformOrigin="0.5,0.5"
701
                        Source="{TemplateBinding SignImage}"
702
                        Stretch="Fill">
703
                        <Image.RenderTransform>
704
                            <TransformGroup>
705
                                <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}}" />
706
                            </TransformGroup>
707
                        </Image.RenderTransform>
708
                    </Image>
709
                </ControlTemplate>
710
            </Setter.Value>
711
        </Setter>
712
    </Style>
713

    
714
    <Style TargetType="Etc:ImgControl">
715
        <Setter Property="Template">
716
            <Setter.Value>
717
                <ControlTemplate TargetType="Etc:ImgControl">
718
                    <Image
719
                        x:Name="PART_Image"
720
                        RenderTransformOrigin="0.5,0.5"
721
                        Source="{TemplateBinding ImageData}"
722
                        Stretch="Fill">
723
                        <Image.RenderTransform>
724
                            <TransformGroup>
725
                                <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}}" />
726
                            </TransformGroup>
727
                        </Image.RenderTransform>
728
                    </Image>
729
                </ControlTemplate>
730
            </Setter.Value>
731
        </Setter>
732
    </Style>
733

    
734
    <!--  강인구 추가  -->
735
    <Style TargetType="Etc:SymControl">
736
        <Setter Property="Template">
737
            <Setter.Value>
738
                <ControlTemplate TargetType="Etc:SymControl">
739
                    <Viewbox x:Name="PART_ViewBox">
740
                        <Path
741
                            x:Name="PART_SymPath"
742
                            Data="{TemplateBinding PathData}"
743
                            RenderTransformOrigin="0.5,0.5"
744
                            Stroke="{TemplateBinding StrokeColor}"
745
                            StrokeThickness="{TemplateBinding LineSize}">
746
                            <Path.RenderTransform>
747
                                <TransformGroup>
748
                                    <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}}" />
749
                                </TransformGroup>
750
                            </Path.RenderTransform>
751
                        </Path>
752
                    </Viewbox>
753
                </ControlTemplate>
754
            </Setter.Value>
755
        </Setter>
756
    </Style>
757

    
758
    <Style TargetType="Etc:SymControlN">
759
        <Setter Property="Template">
760
            <Setter.Value>
761
                <ControlTemplate TargetType="Etc:SymControlN">
762
                    <Viewbox
763
                        x:Name="PART_ViewBox"
764
                        RenderTransformOrigin="0.5,0.5"
765
                        Stretch="Fill">
766
                        <Viewbox.RenderTransform>
767
                            <TransformGroup>
768
                                <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}}" />
769
                            </TransformGroup>
770
                        </Viewbox.RenderTransform>
771
                    </Viewbox>
772
                </ControlTemplate>
773
            </Setter.Value>
774
        </Setter>
775
    </Style>
776
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)