프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ fa48eb85

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