프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ 4fcb686a

이력 | 보기 | 이력해설 | 다운로드 (42 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
                            StrokeThickness="{TemplateBinding LineSize}" />
249
                        <Path
250
                            x:Name="PART_CloudSubPath"
251
                            Data="{TemplateBinding PathSubData}"
252
                            Fill="{TemplateBinding FillColor}"
253
                            RenderTransformOrigin="0,0"
254
                            Stroke="Transparent"
255
                            StrokeThickness="{TemplateBinding LineSize}" />
256
                    </Canvas>
257
                </ControlTemplate>
258
            </Setter.Value>
259
        </Setter>
260
    </Style>
261

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

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

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

    
317
    <!--<Style TargetType="Text:TextControl">-->
318
    <Style TargetType="{x:Type Text:TextControl}">
319
        <Setter Property="Template">
320
            <Setter.Value>
321
                <!--<ControlTemplate TargetType="Text:TextControl">-->
322
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
323
                    <Canvas x:Name="PART_TextControlCanvas" Background="Red">
324
                        <Grid
325
                            x:Name="PART_Grid"
326
                            HorizontalAlignment="Stretch"
327
                            VerticalAlignment="Stretch"
328
                            Canvas.ZIndex="0"
329
                            RenderTransformOrigin="0,0">
330
                            <Grid.RenderTransform>
331
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
332

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

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

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

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

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

    
438
                        <Path
439
                            Canvas.ZIndex="0"
440
                            Data="{TemplateBinding PathDataInner}"
441
                            Fill="{TemplateBinding BackInnerColor}"
442
                            IsHitTestVisible="False"
443
                            RenderTransformOrigin="0,0"
444
                            Stroke="Transparent">
445
                            <Path.RenderTransform>
446
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
447
                                                    CenterX="{TemplateBinding CenterX}"
448
                                                    CenterY="{TemplateBinding CenterY}">
449
                                </RotateTransform>-->
450
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
451
                            </Path.RenderTransform>
452
                        </Path>
453

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

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

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

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

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

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

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

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

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

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

    
669
    <Style TargetType="Etc:DateControl">
670
        <Setter Property="Template">
671
            <Setter.Value>
672
                <ControlTemplate TargetType="Etc:DateControl">
673
                    <Viewbox x:Name="PART_ViewBox">
674
                        <TextBlock
675
                            x:Name="PART_TextBox"
676
                            Foreground="{TemplateBinding FontColor}"
677
                            RenderTransformOrigin="0.5,0.5"
678
                            Text="{TemplateBinding Text}">
679
                            <TextBlock.RenderTransform>
680
                                <TransformGroup>
681
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
682
                                </TransformGroup>
683
                            </TextBlock.RenderTransform>
684
                        </TextBlock>
685
                    </Viewbox>
686
                </ControlTemplate>
687
            </Setter.Value>
688
        </Setter>
689
    </Style>
690

    
691
    <Style TargetType="Etc:SignControl">
692
        <Setter Property="Template">
693
            <Setter.Value>
694
                <ControlTemplate TargetType="Etc:SignControl">
695
                    <Image
696
                        x:Name="PART_Image"
697
                        RenderTransformOrigin="0.5,0.5"
698
                        Source="{TemplateBinding SignImage}"
699
                        Stretch="Fill">
700
                        <Image.RenderTransform>
701
                            <TransformGroup>
702
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
703
                            </TransformGroup>
704
                        </Image.RenderTransform>
705
                    </Image>
706
                </ControlTemplate>
707
            </Setter.Value>
708
        </Setter>
709
    </Style>
710

    
711
    <Style TargetType="Etc:ImgControl">
712
        <Setter Property="Template">
713
            <Setter.Value>
714
                <ControlTemplate TargetType="Etc:ImgControl">
715
                    <Image
716
                        x:Name="PART_Image"
717
                        RenderTransformOrigin="0.5,0.5"
718
                        Source="{TemplateBinding ImageData}"
719
                        Stretch="Fill">
720
                        <Image.RenderTransform>
721
                            <TransformGroup>
722
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
723
                            </TransformGroup>
724
                        </Image.RenderTransform>
725
                    </Image>
726
                </ControlTemplate>
727
            </Setter.Value>
728
        </Setter>
729
    </Style>
730

    
731
    <!--  강인구 추가  -->
732
    <Style TargetType="Etc:SymControl">
733
        <Setter Property="Template">
734
            <Setter.Value>
735
                <ControlTemplate TargetType="Etc:SymControl">
736
                    <Viewbox x:Name="PART_ViewBox">
737
                        <Path
738
                            x:Name="PART_SymPath"
739
                            Data="{TemplateBinding PathData}"
740
                            RenderTransformOrigin="0.5,0.5"
741
                            Stroke="{TemplateBinding StrokeColor}"
742
                            StrokeThickness="{TemplateBinding LineSize}">
743
                            <Path.RenderTransform>
744
                                <TransformGroup>
745
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
746
                                </TransformGroup>
747
                            </Path.RenderTransform>
748
                        </Path>
749
                    </Viewbox>
750
                </ControlTemplate>
751
            </Setter.Value>
752
        </Setter>
753
    </Style>
754

    
755
    <Style TargetType="Etc:SymControlN">
756
        <Setter Property="Template">
757
            <Setter.Value>
758
                <ControlTemplate TargetType="Etc:SymControlN">
759
                    <Viewbox
760
                        x:Name="PART_ViewBox"
761
                        RenderTransformOrigin="0.5,0.5"
762
                        Stretch="Fill">
763
                        <Viewbox.RenderTransform>
764
                            <TransformGroup>
765
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
766
                            </TransformGroup>
767
                        </Viewbox.RenderTransform>
768
                    </Viewbox>
769
                </ControlTemplate>
770
            </Setter.Value>
771
        </Setter>
772
    </Style>
773
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)