프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ 46b71430

이력 | 보기 | 이력해설 | 다운로드 (33.1 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
                    xmlns:Angle="clr-namespace:MarkupToPDF.Controls.Angle">
9
10
    <Style TargetType="Angle:AngleControl">
11
        <Setter Property="Template">
12
            <Setter.Value>
13
                <ControlTemplate TargetType="Angle:AngleControl">
14
                    <Border BorderBrush="#FF051F25" BorderThickness="2" Opacity="0.7" Width="120">
15
                        <Border.Background>
16
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
17
                                <GradientStop Color="#FF00CDFF" Offset="0"/>
18
                                <GradientStop Color="#ff4185f3" Offset="1"/>
19
                            </LinearGradientBrush>
20
                        </Border.Background>
21
                        <Grid>
22
                            <TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}"  Margin="5"
23
                                                                FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center"/>
24
                            <TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right"
25
                                                                Opacity="0.9"
26
                                                                FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0"/>
27
                        </Grid>
28
                    </Border>
29
                </ControlTemplate>
30
            </Setter.Value>
31
        </Setter>
32
    </Style>
33
34
    <Style TargetType="{x:Type Line:LineControl}">
35
        <Setter Property="Template">
36
            <Setter.Value>
37
                <ControlTemplate TargetType="{x:Type Line:LineControl}">
38
                    <Path x:Name="PART_LinePath" 
39
                          Stroke="{TemplateBinding StrokeColor}"  
40
                          StrokeThickness="{TemplateBinding LineSize}"
41
                          Data="{TemplateBinding PathData}" 
42
                          RenderTransformOrigin="0.5,0.5" 
43
                          Fill="{TemplateBinding StrokeColor}">
44
                    </Path>
45
                </ControlTemplate>
46
            </Setter.Value>
47
        </Setter>
48
    </Style>
49
50
    <Style TargetType="{x:Type Line:ArcControl}">
51
        <Setter Property="Template">
52
            <Setter.Value>
53
                <ControlTemplate TargetType="{x:Type Line:ArcControl}">
54
                    <Path x:Name="PART_ArcPath" 
55
                          Stroke="{TemplateBinding StrokeColor}"  
56
                          StrokeThickness="{TemplateBinding LineSize}"
57
                          Data="{TemplateBinding PathData}" 
58
                          RenderTransformOrigin="0.5,0.5" 
59
                          Fill="{TemplateBinding StrokeColor}">
60
                    </Path>
61
                </ControlTemplate>
62
            </Setter.Value>
63
        </Setter>
64
    </Style>
65 40b3ce25 ljiyeon
    <Style TargetType="{x:Type Line:ArrowArcControl}">
66
        <Setter Property="Template">
67
            <Setter.Value>
68
                <ControlTemplate TargetType="{x:Type Line:ArrowArcControl}">
69
                    <Path x:Name="PART_ArcPath" 
70
                          Stroke="{TemplateBinding StrokeColor}"  
71
                          StrokeThickness="{TemplateBinding LineSize}"
72
                          Data="{TemplateBinding PathData}" 
73
                          RenderTransformOrigin="0.5,0.5" 
74
                          Fill="{TemplateBinding StrokeColor}">
75
                    </Path>
76
                </ControlTemplate>
77
            </Setter.Value>
78
        </Setter>
79
    </Style>
80 787a4489 KangIngu
    <Style TargetType="{x:Type Line:ArrowControl_Multi}">
81
        <Setter Property="Template">
82
            <Setter.Value>
83
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
84
                    <Path x:Name="PART_ArrowMultiPath" 
85
                          Stroke="{TemplateBinding StrokeColor}"  
86
                          Fill="{TemplateBinding StrokeColor}"  
87
                                                  StrokeThickness="{TemplateBinding LineSize}" 
88
                          Data="{TemplateBinding PathData}"/>
89
                </ControlTemplate>
90
            </Setter.Value>
91
        </Setter>
92
    </Style>
93
94
    <Style TargetType="{x:Type Shape:RectangleControl}">
95
        <Setter Property="Template">
96
            <Setter.Value>
97
                <ControlTemplate TargetType="{x:Type Shape:RectangleControl}">
98
                    <Path x:Name="PART_RectPath" 
99
                              Stroke="{TemplateBinding StrokeColor}"
100
                              StrokeThickness="{TemplateBinding LineSize}"
101
                              Data="{TemplateBinding PathData}"
102
                              Fill="{TemplateBinding FillColor}"
103
                              RenderTransformOrigin="0.5,0.5">
104
                        <!--<Path.OpacityMask>
105
                            <RadialGradientBrush>
106
                                <RadialGradientBrush.GradientStops>
107
                                    <GradientStop Offset="0" Color="#FF000000"/>
108
                                    <GradientStop Offset="1" Color="#00000000"/>
109
                                </RadialGradientBrush.GradientStops>
110
                            </RadialGradientBrush>
111
                        </Path.OpacityMask>-->
112
                    </Path>
113
                </ControlTemplate>
114
            </Setter.Value>
115
        </Setter>
116
    </Style>
117
118
    <Style TargetType="{x:Type Shape:TriControl}">
119
        <Setter Property="Template">
120
            <Setter.Value>
121
                <ControlTemplate TargetType="{x:Type Shape:TriControl}">
122
                    <Path x:Name="PART_TriPath" 
123
                          Stroke="{TemplateBinding StrokeColor}"
124
                          StrokeThickness="{TemplateBinding LineSize}"
125
                          Data="{TemplateBinding PathData}"
126
                          Fill="{TemplateBinding FillColor}">
127
                    </Path>
128
                </ControlTemplate>
129
            </Setter.Value>
130
        </Setter>
131
    </Style>
132
133
    <Style TargetType="{x:Type Shape:CircleControl}">
134
        <Setter Property="Template">
135
            <Setter.Value>
136
                <ControlTemplate TargetType="Shape:CircleControl">
137
                    <Path x:Name="PART_CirclePath" 
138
                          Stroke="{TemplateBinding StrokeColor}"  
139
                          StrokeThickness="{TemplateBinding LineSize}" 
140
                                                  Fill="{TemplateBinding FillColor}" 
141
                          Data="{TemplateBinding PathData}" 
142
                          RenderTransformOrigin="0.5,0.5">
143
                        <Path.RenderTransform>
144
                            <TransformGroup>
145
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
146
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
147
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
148
                            </TransformGroup>
149
                        </Path.RenderTransform>
150
                    </Path>
151
                </ControlTemplate>
152
            </Setter.Value>
153
        </Setter>
154
    </Style>
155
156
    <Style TargetType="{x:Type polygon:CloudControl}">
157
        <Setter Property="Template">
158
            <Setter.Value>
159
                <ControlTemplate TargetType="polygon:CloudControl">
160
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
161
                        <Path x:Name="PART_CloudPath" 
162
                              Stroke="{TemplateBinding StrokeColor}" 
163
                              Fill="{TemplateBinding FillColor}"  
164
                              StrokeThickness="{TemplateBinding LineSize}" 
165
                              Data="{TemplateBinding PathData}"
166
                              RenderTransformOrigin="0,0"/>
167
                        <Path x:Name="PART_CloudSubPath" 
168
                              Stroke="Transparent" 
169
                              Fill="{TemplateBinding FillColor}"  
170
                              StrokeThickness="{TemplateBinding LineSize}" 
171
                              Data="{TemplateBinding PathSubData}"
172
                              RenderTransformOrigin="0,0"/>
173
                    </Canvas>
174
                </ControlTemplate>
175
            </Setter.Value>
176
        </Setter>
177
    </Style>
178
179
    <Style TargetType="{x:Type Shape:RectCloudControl}">
180
        <Setter Property="Template">
181
            <Setter.Value>
182
                <ControlTemplate TargetType="Shape:RectCloudControl">
183
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
184
                        <Path x:Name="PART_ArcPath" 
185
                              Stroke="{TemplateBinding StrokeColor}" 
186
                              Fill="{TemplateBinding FillColor}"  
187
                              StrokeThickness="{TemplateBinding LineSize}" 
188
                              Data="{TemplateBinding PathData}" 
189
                              RenderTransformOrigin="0,0"/>
190
                        <Path x:Name="PART_BodyPath" 
191
                              Stroke="Transparent" 
192
                              Fill="{TemplateBinding FillColor}"  
193
                              StrokeThickness="{TemplateBinding LineSize}" 
194
                              Data="{TemplateBinding PathSubData}"
195
                              RenderTransformOrigin="0,0"/>
196
                    </Canvas>
197
                </ControlTemplate>
198
            </Setter.Value>
199
        </Setter>
200
    </Style>
201
202
    <Style TargetType="{x:Type polygon:PolygonControl}">
203
        <Setter Property="Template">
204
            <Setter.Value>
205
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
206
                    <Path x:Name="PART_PolyPath" 
207
                          Stroke="{TemplateBinding StrokeColor}"
208
                          StrokeThickness="{TemplateBinding LineSize}"
209
                          Data="{TemplateBinding PathData}"
210
                          RenderTransformOrigin="0.5,0.5" >
211
                    </Path>
212
                </ControlTemplate>
213
            </Setter.Value>
214
        </Setter>
215
    </Style>
216
217
    <Style TargetType="{x:Type polygon:InkControl}">
218
        <Setter Property="Template">
219
            <Setter.Value>
220
                <ControlTemplate TargetType="{x:Type polygon:InkControl}">
221
                    <Path x:Name="PART_PolyPath" 
222
                          Stroke="{TemplateBinding StrokeColor}"
223
                          StrokeThickness="{TemplateBinding LineSize}"
224
                          Data="{TemplateBinding PathData}"
225
                          RenderTransformOrigin="0.5,0.5" >
226
                    </Path>
227
                </ControlTemplate>
228
            </Setter.Value>
229
        </Setter>
230
    </Style>
231
232
    <!--<Style TargetType="Text:TextControl">-->
233
    <Style TargetType="{x:Type Text:TextControl}">
234
        <Setter Property="Template">
235
            <Setter.Value>
236
                <!--<ControlTemplate TargetType="Text:TextControl">-->
237
                    <ControlTemplate TargetType="{x:Type Text:TextControl}">
238
                    <Canvas Background="Red">
239
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
240
                            <Grid.RenderTransform>
241
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
242
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
243
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
244
245
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
246
                                                    CenterX="{TemplateBinding CenterX}"
247
                                                    CenterY="{TemplateBinding CenterY}">
248
                                </RotateTransform>-->
249
                            </Grid.RenderTransform>
250
                        </Grid>
251
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
252
                            <Grid.Background>
253
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
254
                            </Grid.Background>
255
                            <Grid.RenderTransform>
256
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
257
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
258
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
259
                            </Grid.RenderTransform>
260
                            <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5">
261
262
                            </Border>
263
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
264
265
                            </Border>
266
267
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
268
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
269
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
270
                                RenderTransformOrigin="0, 0" >
271
                            </TextBlock>
272
                            <Border Background="Transparent">
273
274
                                <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
275
                                                                    FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
276
                                    FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0"
277
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
278
                                    RenderTransformOrigin="0, 0" >
279
                                </TextBlock>
280
                            </Border>
281
282
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"  IsTabStop="False" AcceptsTab="False"
283
                                     Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"  
284
                                                                      TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" 
285
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
286
                                     >
287
                            </TextBox>
288
                        </Grid>
289
290
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False"  
291
                              Fill="{TemplateBinding BackInnerColor}">
292
                            <Path.RenderTransform>
293
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
294
                                                    CenterX="{TemplateBinding CenterX}"
295
                                                    CenterY="{TemplateBinding CenterY}">
296
                                </RotateTransform>-->
297
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
298
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
299
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
300
                                                 
301
                                                 />
302
                            </Path.RenderTransform>
303
                        </Path>
304
305
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}"  Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
306
                            <Path.Fill>
307
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/>
308
                            </Path.Fill>
309
                            <Path.RenderTransform>
310
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
311
                                                    CenterX="{TemplateBinding CenterX}"
312
                                                    CenterY="{TemplateBinding CenterY}">
313
                                </RotateTransform>-->
314
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
315
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
316
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
317
                                                 
318
                                                 />
319
                            </Path.RenderTransform>
320
                        </Path>
321
322
323
                    </Canvas>
324
                </ControlTemplate>
325
            </Setter.Value>
326
        </Setter>
327
    </Style>
328
329
    <!--<Style TargetType="{x:Type Text:TextControl}">
330
        <Setter Property="Template">
331
            <Setter.Value>
332
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
333
                    <Canvas>
334
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
335
                            <Grid.RenderTransform>
336
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
337
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
338
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
339
                            </Grid.RenderTransform>
340
                        </Grid>
341
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
342
                            <Grid.Background>
343
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
344
                            </Grid.Background>
345
                            <Grid.RenderTransform>
346
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
347
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
348
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
349
                            </Grid.RenderTransform>
350
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
351

352
                            </Border>
353
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
354
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
355
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
356
                                RenderTransformOrigin="0, 0">
357
                            </TextBlock>
358
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
359
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
360
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
361
                                RenderTransformOrigin="0, 0"
362
                                Visibility="{TemplateBinding TextBlockVisibility}" >
363
                            </TextBlock>
364
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" 
365
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" 
366
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
367
                                     Visibility="{TemplateBinding TextBoxVisibility}" >
368
                            </TextBox>
369
                        </Grid>
370

371

372
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
373
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
374
                            <Path.RenderTransform>
375
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
376
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
377
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
378
                            </Path.RenderTransform>
379
                        </Path>
380
                    </Canvas>
381
                </ControlTemplate>
382
            </Setter.Value>
383
        </Setter>
384
    </Style>-->
385
386
    <Style TargetType="{x:Type Text:ArrowTextControl}">
387
        <Setter Property="Template">
388
            <Setter.Value>
389
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
390
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
391
392
393
                        <!--<Path x:Name="PART_ArrowPath" 
394
                              Stroke="{TemplateBinding StrokeColor}" 
395
                                                      StrokeThickness="{TemplateBinding LineSize}" 
396
                              Data="{TemplateBinding PathData}" 
397
                              Fill="{TemplateBinding StrokeColor}">
398
                        </Path>-->
399
400
                        <Path x:Name="PART_ArrowPath"  Canvas.ZIndex="0"
401
                                  Stroke="{TemplateBinding StrokeColor}"
402
                                                          StrokeThickness="{TemplateBinding LineSize}" 
403
                                  Data="{TemplateBinding PathData}"
404
                                  Fill="{TemplateBinding StrokeColor}"/>
405
406
                        <!--<Path x:Name="PART_ArrowSubPath" 
407
                                      Stroke="{TemplateBinding StrokeColor}"
408
                                                              StrokeThickness="{TemplateBinding LineSize}"  
409
                                      Fill="{TemplateBinding SubPathFill}" 
410
                                      Data="{TemplateBinding SubPathData}"
411
                                      RenderTransformOrigin="0,0"/>-->
412
413
                        <Path x:Name="PART_ArrowSubPath"  Canvas.ZIndex="2"
414
                                      Stroke="{TemplateBinding StrokeColor}"
415
                                                              StrokeThickness="{TemplateBinding LineSize}"  
416
                                      Fill="{TemplateBinding SubPathFill }"
417
                                      Data="{TemplateBinding SubPathData}"
418
                                      RenderTransformOrigin="0,0"/>
419
420
                        <Path 
421
                                      Stroke="Transparent"
422
                                      Fill="{TemplateBinding BackInnerColor }" Canvas.ZIndex="1"
423
                                      Data="{TemplateBinding PathDataInner}"
424
                                      RenderTransformOrigin="0,0"/>
425
426
427
                        <!--<TextBlock x:Name="PART_ArrowTextBlock" 
428
                                     Margin="0.5"
429
                                     Background="{TemplateBinding TextBoxBackground}"
430
                                     FontSize="{TemplateBinding TextSize}" 
431
                                     FontFamily="{TemplateBinding TextFamily}"
432
                                     FontStyle="{TemplateBinding TextStyle}"
433
                                                                     FontWeight="{TemplateBinding TextWeight}"
434
                                     Foreground="{TemplateBinding StrokeColor}" 
435
                                     HorizontalAlignment="Stretch"
436
                                     TextWrapping="Wrap" 
437
                                     Text="{TemplateBinding ArrowText}"
438
                                     RenderTransformOrigin="0.5,0.5">
439
                            <TextBlock.RenderTransform>
440
                                <RotateTransform Angle="{TemplateBinding Angle}"
441
                                                    CenterX="{TemplateBinding CenterX}"
442
                                                    CenterY="{TemplateBinding CenterY}">
443
                                </RotateTransform>
444
                            </TextBlock.RenderTransform>
445
                        </TextBlock>-->
446
447
                        <TextBox x:Name="PART_ArrowTextBox"  
448
                                     Margin="0.5" Canvas.ZIndex="4"
449
                                     Background="{TemplateBinding TextBoxBackground}"
450
                                     BorderThickness="{TemplateBinding BorderSize}" 
451
                                     BorderBrush="{TemplateBinding StrokeColor}"
452
                                     FontSize="{TemplateBinding TextSize}" 
453
                                     FontFamily="{TemplateBinding TextFamily}"
454
                                     FontStyle="{TemplateBinding TextStyle}"
455
                                                                     FontWeight="{TemplateBinding TextWeight}"
456 e17af42b KangIngu
                                     TextDecorations="{TemplateBinding UnderLine}"
457 787a4489 KangIngu
                                     AcceptsReturn="True" 
458
                                     Foreground="{TemplateBinding StrokeColor}" 
459
                                     HorizontalAlignment="Stretch"
460
                                     TextWrapping="Wrap" 
461
                                     Text="{TemplateBinding ArrowText}"
462
                                     RenderTransformOrigin="0.5,0.5">
463
                            <TextBox.RenderTransform>
464
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
465
                                                    CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
466
                                                    CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
467
                                </RotateTransform>
468
                            </TextBox.RenderTransform>
469
                        </TextBox>
470
                    </Canvas>
471
                </ControlTemplate>
472
            </Setter.Value>
473
        </Setter>
474
    </Style>
475
476
    <Style TargetType="Etc:DateControl">
477
        <Setter Property="Template">
478
            <Setter.Value>
479
                <ControlTemplate TargetType="Etc:DateControl">
480
                    <Viewbox x:Name="PART_ViewBox" >
481
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" 
482
                                 Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5">
483
                            <TextBlock.RenderTransform>
484
                                <TransformGroup>
485
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
486
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
487
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
488
                                </TransformGroup>
489
                            </TextBlock.RenderTransform>
490
                        </TextBlock>
491
                    </Viewbox>
492
                </ControlTemplate>
493
            </Setter.Value>
494
        </Setter>
495
    </Style>
496
497
    <Style TargetType="Etc:SignControl">
498
        <Setter Property="Template">
499
            <Setter.Value>
500
                <ControlTemplate TargetType="Etc:SignControl">
501
                    <Image x:Name="PART_Image"  Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
502
                        <Image.RenderTransform>
503
                            <TransformGroup>
504
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
505
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
506
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
507
                            </TransformGroup>
508
                        </Image.RenderTransform>
509
                    </Image>
510
                </ControlTemplate>
511
            </Setter.Value>
512
        </Setter>
513
    </Style>
514
515
    <Style TargetType="Etc:ImgControl">
516
        <Setter Property="Template">
517
            <Setter.Value>
518
                <ControlTemplate TargetType="Etc:ImgControl">
519
                    <Image x:Name="PART_Image"  Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
520
                        <Image.RenderTransform>
521
                            <TransformGroup>
522
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
523
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
524
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
525
                            </TransformGroup>
526
                        </Image.RenderTransform>
527
                    </Image>
528
                </ControlTemplate>
529
            </Setter.Value>
530
        </Setter>
531
    </Style>
532
533
    <!--강인구 추가-->
534
    <Style TargetType="Etc:SymControl">
535
        <Setter Property="Template">
536
            <Setter.Value>
537
                <ControlTemplate TargetType="Etc:SymControl">
538
                    <Viewbox x:Name="PART_ViewBox">
539
                        <Path x:Name="PART_SymPath"  Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
540
                          Data="{TemplateBinding PathData}" 
541
                              RenderTransformOrigin="0.5,0.5">
542
                            <Path.RenderTransform>
543
                                <TransformGroup>
544
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
545
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
546
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
547
                                </TransformGroup>
548
                            </Path.RenderTransform>
549
                        </Path>
550
                    </Viewbox>
551
                </ControlTemplate>
552
            </Setter.Value>
553
        </Setter>
554
    </Style>
555
556
    <Style TargetType="Etc:SymControlN">
557
        <Setter Property="Template">
558
            <Setter.Value>
559
                <ControlTemplate TargetType="Etc:SymControlN">
560
                    <Viewbox x:Name="PART_ViewBox" RenderTransformOrigin="0.5,0.5">
561
                        <Viewbox.RenderTransform>
562
                            <TransformGroup>
563
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
564
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
565
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
566
                            </TransformGroup>
567
                        </Viewbox.RenderTransform>
568
                    </Viewbox>
569
                </ControlTemplate>
570
            </Setter.Value>
571
        </Setter>
572
    </Style>
573
574
575
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)