프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ 5b2924ff

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

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

447
                            </Border>
448
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
449
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
450
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
451
                                RenderTransformOrigin="0, 0">
452
                            </TextBlock>
453
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
454
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
455
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
456
                                RenderTransformOrigin="0, 0"
457
                                Visibility="{TemplateBinding TextBlockVisibility}" >
458
                            </TextBlock>
459
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" 
460
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" 
461
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
462
                                     Visibility="{TemplateBinding TextBoxVisibility}" >
463
                            </TextBox>
464
                        </Grid>
465

466

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