프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ 64f6713a

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

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

    
66
    <Style TargetType="{x:Type Line:ArrowControl_Multi}">
67
        <Setter Property="Template">
68
            <Setter.Value>
69
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
70
                    <Path x:Name="PART_ArrowMultiPath" 
71
                          Stroke="{TemplateBinding StrokeColor}"  
72
                          Fill="{TemplateBinding StrokeColor}"  
73
                                                  StrokeThickness="{TemplateBinding LineSize}" 
74
                          Data="{TemplateBinding PathData}"/>
75
                </ControlTemplate>
76
            </Setter.Value>
77
        </Setter>
78
    </Style>
79

    
80
    <Style TargetType="{x:Type Shape:RectangleControl}">
81
        <Setter Property="Template">
82
            <Setter.Value>
83
                <ControlTemplate TargetType="{x:Type Shape:RectangleControl}">
84
                    <Path x:Name="PART_RectPath" 
85
                              Stroke="{TemplateBinding StrokeColor}"
86
                              StrokeThickness="{TemplateBinding LineSize}"
87
                              Data="{TemplateBinding PathData}"
88
                              Fill="{TemplateBinding FillColor}"
89
                              RenderTransformOrigin="0.5,0.5">
90
                        <!--<Path.OpacityMask>
91
                            <RadialGradientBrush>
92
                                <RadialGradientBrush.GradientStops>
93
                                    <GradientStop Offset="0" Color="#FF000000"/>
94
                                    <GradientStop Offset="1" Color="#00000000"/>
95
                                </RadialGradientBrush.GradientStops>
96
                            </RadialGradientBrush>
97
                        </Path.OpacityMask>-->
98
                    </Path>
99
                </ControlTemplate>
100
            </Setter.Value>
101
        </Setter>
102
    </Style>
103

    
104
    <Style TargetType="{x:Type Shape:TriControl}">
105
        <Setter Property="Template">
106
            <Setter.Value>
107
                <ControlTemplate TargetType="{x:Type Shape:TriControl}">
108
                    <Path x:Name="PART_TriPath" 
109
                          Stroke="{TemplateBinding StrokeColor}"
110
                          StrokeThickness="{TemplateBinding LineSize}"
111
                          Data="{TemplateBinding PathData}"
112
                          Fill="{TemplateBinding FillColor}">
113
                    </Path>
114
                </ControlTemplate>
115
            </Setter.Value>
116
        </Setter>
117
    </Style>
118

    
119
    <Style TargetType="{x:Type Shape:CircleControl}">
120
        <Setter Property="Template">
121
            <Setter.Value>
122
                <ControlTemplate TargetType="Shape:CircleControl">
123
                    <Path x:Name="PART_CirclePath" 
124
                          Stroke="{TemplateBinding StrokeColor}"  
125
                          StrokeThickness="{TemplateBinding LineSize}" 
126
                                                  Fill="{TemplateBinding FillColor}" 
127
                          Data="{TemplateBinding PathData}" 
128
                          RenderTransformOrigin="0.5,0.5">
129
                        <Path.RenderTransform>
130
                            <TransformGroup>
131
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
132
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
133
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
134
                            </TransformGroup>
135
                        </Path.RenderTransform>
136
                    </Path>
137
                </ControlTemplate>
138
            </Setter.Value>
139
        </Setter>
140
    </Style>
141

    
142
    <Style TargetType="{x:Type polygon:CloudControl}">
143
        <Setter Property="Template">
144
            <Setter.Value>
145
                <ControlTemplate TargetType="polygon:CloudControl">
146
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
147
                        <Path x:Name="PART_CloudPath" 
148
                              Stroke="{TemplateBinding StrokeColor}" 
149
                              Fill="{TemplateBinding FillColor}"  
150
                              StrokeThickness="{TemplateBinding LineSize}" 
151
                              Data="{TemplateBinding PathData}"
152
                              RenderTransformOrigin="0,0"/>
153
                        <Path x:Name="PART_CloudSubPath" 
154
                              Stroke="Transparent" 
155
                              Fill="{TemplateBinding FillColor}"  
156
                              StrokeThickness="{TemplateBinding LineSize}" 
157
                              Data="{TemplateBinding PathSubData}"
158
                              RenderTransformOrigin="0,0"/>
159
                    </Canvas>
160
                </ControlTemplate>
161
            </Setter.Value>
162
        </Setter>
163
    </Style>
164

    
165
    <Style TargetType="{x:Type Shape:RectCloudControl}">
166
        <Setter Property="Template">
167
            <Setter.Value>
168
                <ControlTemplate TargetType="Shape:RectCloudControl">
169
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
170
                        <Path x:Name="PART_ArcPath" 
171
                              Stroke="{TemplateBinding StrokeColor}" 
172
                              Fill="{TemplateBinding FillColor}"  
173
                              StrokeThickness="{TemplateBinding LineSize}" 
174
                              Data="{TemplateBinding PathData}" 
175
                              RenderTransformOrigin="0,0"/>
176
                        <Path x:Name="PART_BodyPath" 
177
                              Stroke="Transparent" 
178
                              Fill="{TemplateBinding FillColor}"  
179
                              StrokeThickness="{TemplateBinding LineSize}" 
180
                              Data="{TemplateBinding PathSubData}"
181
                              RenderTransformOrigin="0,0"/>
182
                    </Canvas>
183
                </ControlTemplate>
184
            </Setter.Value>
185
        </Setter>
186
    </Style>
187

    
188
    <Style TargetType="{x:Type polygon:PolygonControl}">
189
        <Setter Property="Template">
190
            <Setter.Value>
191
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
192
                    <Path x:Name="PART_PolyPath" 
193
                          Stroke="{TemplateBinding StrokeColor}"
194
                          StrokeThickness="{TemplateBinding LineSize}"
195
                          Data="{TemplateBinding PathData}"
196
                          RenderTransformOrigin="0.5,0.5" >
197
                    </Path>
198
                </ControlTemplate>
199
            </Setter.Value>
200
        </Setter>
201
    </Style>
202

    
203
    <Style TargetType="{x:Type polygon:InkControl}">
204
        <Setter Property="Template">
205
            <Setter.Value>
206
                <ControlTemplate TargetType="{x:Type polygon:InkControl}">
207
                    <Path x:Name="PART_PolyPath" 
208
                          Stroke="{TemplateBinding StrokeColor}"
209
                          StrokeThickness="{TemplateBinding LineSize}"
210
                          Data="{TemplateBinding PathData}"
211
                          RenderTransformOrigin="0.5,0.5" >
212
                    </Path>
213
                </ControlTemplate>
214
            </Setter.Value>
215
        </Setter>
216
    </Style>
217

    
218
    <!--<Style TargetType="Text:TextControl">-->
219
    <Style TargetType="{x:Type Text:TextControl}">
220
        <Setter Property="Template">
221
            <Setter.Value>
222
                <!--<ControlTemplate TargetType="Text:TextControl">-->
223
                    <ControlTemplate TargetType="{x:Type Text:TextControl}">
224
                    <Canvas Background="Red">
225
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
226
                            <Grid.RenderTransform>
227
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
228
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
229
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
230

    
231
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
232
                                                    CenterX="{TemplateBinding CenterX}"
233
                                                    CenterY="{TemplateBinding CenterY}">
234
                                </RotateTransform>-->
235
                            </Grid.RenderTransform>
236
                        </Grid>
237
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
238
                            <Grid.Background>
239
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
240
                            </Grid.Background>
241
                            <Grid.RenderTransform>
242
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
243
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
244
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
245
                            </Grid.RenderTransform>
246
                            <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5">
247

    
248
                            </Border>
249
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
250

    
251
                            </Border>
252

    
253
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
254
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
255
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
256
                                RenderTransformOrigin="0, 0" >
257
                            </TextBlock>
258
                            <Border Background="Transparent">
259

    
260
                                <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
261
                                                                    FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
262
                                    FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0"
263
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
264
                                    RenderTransformOrigin="0, 0" >
265
                                </TextBlock>
266
                            </Border>
267

    
268
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"  IsTabStop="False" AcceptsTab="False"
269
                                     Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"  
270
                                                                      TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" 
271
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
272
                                     >
273
                            </TextBox>
274
                        </Grid>
275

    
276
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False"  
277
                              Fill="{TemplateBinding BackInnerColor}">
278
                            <Path.RenderTransform>
279
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
280
                                                    CenterX="{TemplateBinding CenterX}"
281
                                                    CenterY="{TemplateBinding CenterY}">
282
                                </RotateTransform>-->
283
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
284
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
285
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
286
                                                 
287
                                                 />
288
                            </Path.RenderTransform>
289
                        </Path>
290

    
291
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}"  Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
292
                            <Path.Fill>
293
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/>
294
                            </Path.Fill>
295
                            <Path.RenderTransform>
296
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
297
                                                    CenterX="{TemplateBinding CenterX}"
298
                                                    CenterY="{TemplateBinding CenterY}">
299
                                </RotateTransform>-->
300
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
301
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
302
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
303
                                                 
304
                                                 />
305
                            </Path.RenderTransform>
306
                        </Path>
307

    
308

    
309
                    </Canvas>
310
                </ControlTemplate>
311
            </Setter.Value>
312
        </Setter>
313
    </Style>
314

    
315
    <!--<Style TargetType="{x:Type Text:TextControl}">
316
        <Setter Property="Template">
317
            <Setter.Value>
318
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
319
                    <Canvas>
320
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
321
                            <Grid.RenderTransform>
322
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
323
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
324
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
325
                            </Grid.RenderTransform>
326
                        </Grid>
327
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
328
                            <Grid.Background>
329
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
330
                            </Grid.Background>
331
                            <Grid.RenderTransform>
332
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
333
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
334
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
335
                            </Grid.RenderTransform>
336
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
337

338
                            </Border>
339
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
340
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
341
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
342
                                RenderTransformOrigin="0, 0">
343
                            </TextBlock>
344
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
345
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
346
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
347
                                RenderTransformOrigin="0, 0"
348
                                Visibility="{TemplateBinding TextBlockVisibility}" >
349
                            </TextBlock>
350
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" 
351
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" 
352
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
353
                                     Visibility="{TemplateBinding TextBoxVisibility}" >
354
                            </TextBox>
355
                        </Grid>
356

357

358
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
359
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
360
                            <Path.RenderTransform>
361
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
362
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
363
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
364
                            </Path.RenderTransform>
365
                        </Path>
366
                    </Canvas>
367
                </ControlTemplate>
368
            </Setter.Value>
369
        </Setter>
370
    </Style>-->
371

    
372
    <Style TargetType="{x:Type Text:ArrowTextControl}">
373
        <Setter Property="Template">
374
            <Setter.Value>
375
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
376
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
377

    
378

    
379
                        <!--<Path x:Name="PART_ArrowPath" 
380
                              Stroke="{TemplateBinding StrokeColor}" 
381
                                                      StrokeThickness="{TemplateBinding LineSize}" 
382
                              Data="{TemplateBinding PathData}" 
383
                              Fill="{TemplateBinding StrokeColor}">
384
                        </Path>-->
385

    
386
                        <Path x:Name="PART_ArrowPath"  Canvas.ZIndex="0"
387
                                  Stroke="{TemplateBinding StrokeColor}"
388
                                                          StrokeThickness="{TemplateBinding LineSize}" 
389
                                  Data="{TemplateBinding PathData}"
390
                                  Fill="{TemplateBinding StrokeColor}"/>
391

    
392
                        <!--<Path x:Name="PART_ArrowSubPath" 
393
                                      Stroke="{TemplateBinding StrokeColor}"
394
                                                              StrokeThickness="{TemplateBinding LineSize}"  
395
                                      Fill="{TemplateBinding SubPathFill}" 
396
                                      Data="{TemplateBinding SubPathData}"
397
                                      RenderTransformOrigin="0,0"/>-->
398

    
399
                        <Path x:Name="PART_ArrowSubPath"  Canvas.ZIndex="2"
400
                                      Stroke="{TemplateBinding StrokeColor}"
401
                                                              StrokeThickness="{TemplateBinding LineSize}"  
402
                                      Fill="{TemplateBinding SubPathFill }"
403
                                      Data="{TemplateBinding SubPathData}"
404
                                      RenderTransformOrigin="0,0"/>
405

    
406
                        <Path 
407
                                      Stroke="Transparent"
408
                                      Fill="{TemplateBinding BackInnerColor }" Canvas.ZIndex="1"
409
                                      Data="{TemplateBinding PathDataInner}"
410
                                      RenderTransformOrigin="0,0"/>
411

    
412

    
413
                        <!--<TextBlock x:Name="PART_ArrowTextBlock" 
414
                                     Margin="0.5"
415
                                     Background="{TemplateBinding TextBoxBackground}"
416
                                     FontSize="{TemplateBinding TextSize}" 
417
                                     FontFamily="{TemplateBinding TextFamily}"
418
                                     FontStyle="{TemplateBinding TextStyle}"
419
                                                                     FontWeight="{TemplateBinding TextWeight}"
420
                                     Foreground="{TemplateBinding StrokeColor}" 
421
                                     HorizontalAlignment="Stretch"
422
                                     TextWrapping="Wrap" 
423
                                     Text="{TemplateBinding ArrowText}"
424
                                     RenderTransformOrigin="0.5,0.5">
425
                            <TextBlock.RenderTransform>
426
                                <RotateTransform Angle="{TemplateBinding Angle}"
427
                                                    CenterX="{TemplateBinding CenterX}"
428
                                                    CenterY="{TemplateBinding CenterY}">
429
                                </RotateTransform>
430
                            </TextBlock.RenderTransform>
431
                        </TextBlock>-->
432

    
433
                        <TextBox x:Name="PART_ArrowTextBox"  
434
                                     Margin="0.5" Canvas.ZIndex="4"
435
                                     Background="{TemplateBinding TextBoxBackground}"
436
                                     BorderThickness="{TemplateBinding BorderSize}" 
437
                                     BorderBrush="{TemplateBinding StrokeColor}"
438
                                     FontSize="{TemplateBinding TextSize}" 
439
                                     FontFamily="{TemplateBinding TextFamily}"
440
                                     FontStyle="{TemplateBinding TextStyle}"
441
                                                                     FontWeight="{TemplateBinding TextWeight}"
442
                                     TextDecorations="{TemplateBinding UnderLine}"
443
                                     AcceptsReturn="True" 
444
                                     Foreground="{TemplateBinding StrokeColor}" 
445
                                     HorizontalAlignment="Stretch"
446
                                     TextWrapping="Wrap" 
447
                                     Text="{TemplateBinding ArrowText}"
448
                                     RenderTransformOrigin="0.5,0.5">
449
                            <TextBox.RenderTransform>
450
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
451
                                                    CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
452
                                                    CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
453
                                </RotateTransform>
454
                            </TextBox.RenderTransform>
455
                        </TextBox>
456
                    </Canvas>
457
                </ControlTemplate>
458
            </Setter.Value>
459
        </Setter>
460
    </Style>
461

    
462
    <Style TargetType="Etc:DateControl">
463
        <Setter Property="Template">
464
            <Setter.Value>
465
                <ControlTemplate TargetType="Etc:DateControl">
466
                    <Viewbox x:Name="PART_ViewBox" >
467
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" 
468
                                 Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5">
469
                            <TextBlock.RenderTransform>
470
                                <TransformGroup>
471
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
472
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
473
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
474
                                </TransformGroup>
475
                            </TextBlock.RenderTransform>
476
                        </TextBlock>
477
                    </Viewbox>
478
                </ControlTemplate>
479
            </Setter.Value>
480
        </Setter>
481
    </Style>
482

    
483
    <Style TargetType="Etc:SignControl">
484
        <Setter Property="Template">
485
            <Setter.Value>
486
                <ControlTemplate TargetType="Etc:SignControl">
487
                    <Image x:Name="PART_Image"  Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
488
                        <Image.RenderTransform>
489
                            <TransformGroup>
490
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
491
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
492
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
493
                            </TransformGroup>
494
                        </Image.RenderTransform>
495
                    </Image>
496
                </ControlTemplate>
497
            </Setter.Value>
498
        </Setter>
499
    </Style>
500

    
501
    <Style TargetType="Etc:ImgControl">
502
        <Setter Property="Template">
503
            <Setter.Value>
504
                <ControlTemplate TargetType="Etc:ImgControl">
505
                    <Image x:Name="PART_Image"  Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
506
                        <Image.RenderTransform>
507
                            <TransformGroup>
508
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
509
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
510
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
511
                            </TransformGroup>
512
                        </Image.RenderTransform>
513
                    </Image>
514
                </ControlTemplate>
515
            </Setter.Value>
516
        </Setter>
517
    </Style>
518

    
519
    <!--강인구 추가-->
520
    <Style TargetType="Etc:SymControl">
521
        <Setter Property="Template">
522
            <Setter.Value>
523
                <ControlTemplate TargetType="Etc:SymControl">
524
                    <Viewbox x:Name="PART_ViewBox">
525
                        <Path x:Name="PART_SymPath"  Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
526
                          Data="{TemplateBinding PathData}" 
527
                              RenderTransformOrigin="0.5,0.5">
528
                            <Path.RenderTransform>
529
                                <TransformGroup>
530
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
531
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
532
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
533
                                </TransformGroup>
534
                            </Path.RenderTransform>
535
                        </Path>
536
                    </Viewbox>
537
                </ControlTemplate>
538
            </Setter.Value>
539
        </Setter>
540
    </Style>
541

    
542
    <Style TargetType="Etc:SymControlN">
543
        <Setter Property="Template">
544
            <Setter.Value>
545
                <ControlTemplate TargetType="Etc:SymControlN">
546
                    <Viewbox x:Name="PART_ViewBox" RenderTransformOrigin="0.5,0.5">
547
                        <Viewbox.RenderTransform>
548
                            <TransformGroup>
549
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
550
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
551
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
552
                            </TransformGroup>
553
                        </Viewbox.RenderTransform>
554
                    </Viewbox>
555
                </ControlTemplate>
556
            </Setter.Value>
557
        </Setter>
558
    </Style>
559

    
560

    
561
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)