프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ 2e35dd78

이력 | 보기 | 이력해설 | 다운로드 (40.7 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
                    xmlns:Cad="clr-namespace:MarkupToPDF.Controls.Cad" xmlns:Themes="clr-namespace:MarkupToPDF.Themes">
10

    
11
    <Themes:ValueBindingTestConverter x:Key="ValueBindingTestConverter"/>
12

    
13
    <Style TargetType="{x:Type Cad:CoordinateControl}">
14
        <Setter Property="Template">
15
            <Setter.Value>
16
                <ControlTemplate TargetType="{x:Type Cad:CoordinateControl}">
17
                    <Path x:Name="PART_RectPath" 
18
                              Stroke="Black"
19
                              StrokeThickness="10"
20
                              Data="{TemplateBinding PathData}"
21
                              Fill="{TemplateBinding FillColor}"
22
                              RenderTransformOrigin="0.5,0.5"/>
23
                </ControlTemplate>
24
            </Setter.Value>
25
        </Setter>
26
    </Style>
27
    <Style TargetType="{x:Type Cad:InsideWhiteControl}">
28
        <Setter Property="Template">
29
            <Setter.Value>
30
                <ControlTemplate TargetType="{x:Type Cad:InsideWhiteControl}">
31
                    <Path x:Name="PART_RectPath" 
32
                              Stroke="LightGray"
33
                              StrokeThickness="{TemplateBinding LineSize}"
34
                              Data="{TemplateBinding PathData}"
35
                              Opacity="0.3"
36
                              Fill="LightGray"
37
                              RenderTransformOrigin="0.5,0.5"/>
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
                </ControlTemplate>
54
            </Setter.Value>
55
        </Setter>
56
    </Style>
57
    <Style TargetType="{x:Type Cad:ClipWhiteControl}">
58
        <Setter Property="Template">
59
            <Setter.Value>
60
                <ControlTemplate TargetType="{x:Type Cad:ClipWhiteControl}">
61
                    <Path x:Name="PART_RectPath" 
62
                              Stroke="LightGray"
63
                              StrokeThickness="{TemplateBinding LineSize}"
64
                              Data="{TemplateBinding PathData}"
65
                              Opacity="0.3"
66
                              Fill="LightGray"
67
                              RenderTransformOrigin="0.5,0.5"/>
68
                </ControlTemplate>
69
            </Setter.Value>
70
        </Setter>
71
    </Style>
72
    <Style TargetType="{x:Type Angle:AngleControl}">
73
        <Setter Property="Template">
74
            <Setter.Value>
75
                <ControlTemplate TargetType="{x:Type Angle:AngleControl}">
76
                    <Border BorderBrush="#FF051F25" BorderThickness="2" Opacity="0.7" Width="120">
77
                        <Border.Background>
78
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
79
                                <GradientStop Color="#FF00CDFF" Offset="0"/>
80
                                <GradientStop Color="#ff4185f3" Offset="1"/>
81
                            </LinearGradientBrush>
82
                        </Border.Background>
83
                        <Grid>
84
                            <TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}"  Margin="5"
85
                                                                FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center"/>
86
                            <TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right"
87
                                                                Opacity="0.9"
88
                                                                FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0"/>
89
                        </Grid>
90
                    </Border>
91
                </ControlTemplate>
92
            </Setter.Value>
93
        </Setter>
94
    </Style>
95

    
96
    <Style TargetType="{x:Type Line:LineControl}">
97
        <Setter Property="Template">
98
            <Setter.Value>
99
                <ControlTemplate TargetType="{x:Type Line:LineControl}">
100
                    <Path x:Name="PART_LinePath" 
101
                          Stroke="{TemplateBinding StrokeColor}"  
102
                          StrokeThickness="{TemplateBinding LineSize}"
103
                          Data="{TemplateBinding PathData}" 
104
                          RenderTransformOrigin="0.5,0.5" 
105
                          Fill="{TemplateBinding StrokeColor}"/>
106
                </ControlTemplate>
107
            </Setter.Value>
108
        </Setter>
109
    </Style>
110

    
111
    <Style TargetType="{x:Type Line:ArcControl}">
112
        <Setter Property="Template">
113
            <Setter.Value>
114
                <ControlTemplate TargetType="{x:Type Line:ArcControl}">
115
                    <Path x:Name="PART_ArcPath" 
116
                          Stroke="{TemplateBinding StrokeColor}"  
117
                          StrokeThickness="{TemplateBinding LineSize}"
118
                          Data="{TemplateBinding PathData}" 
119
                          RenderTransformOrigin="0.5,0.5" 
120
                          Fill="{TemplateBinding StrokeColor}"/>
121
                </ControlTemplate>
122
            </Setter.Value>
123
        </Setter>
124
    </Style>
125
    <Style TargetType="{x:Type Line:ArrowArcControl}">
126
        <Setter Property="Template">
127
            <Setter.Value>
128
                <ControlTemplate TargetType="{x:Type Line:ArrowArcControl}">
129
                    <Path x:Name="PART_ArcPath" 
130
                          Stroke="{TemplateBinding StrokeColor}"  
131
                          StrokeThickness="{TemplateBinding LineSize}"
132
                          Data="{TemplateBinding PathData}" 
133
                          RenderTransformOrigin="0.5,0.5" 
134
                          Fill="{TemplateBinding StrokeColor}"/>
135
                </ControlTemplate>
136
            </Setter.Value>
137
        </Setter>
138
    </Style>
139
    <Style TargetType="{x:Type Line:ArrowControl_Multi}">
140
        <Setter Property="Template">
141
            <Setter.Value>
142
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
143
                    <Path x:Name="PART_ArrowMultiPath" 
144
                          Stroke="{TemplateBinding StrokeColor}"  
145
                          Fill="{TemplateBinding StrokeColor}"  
146
                                                  StrokeThickness="{TemplateBinding LineSize}" 
147
                          Data="{TemplateBinding PathData}"/>
148
                </ControlTemplate>
149
            </Setter.Value>
150
        </Setter>
151
    </Style>
152

    
153
    <Style TargetType="{x:Type Shape:RectangleControl}">
154
        <Setter Property="Template">
155
            <Setter.Value>
156
                <ControlTemplate TargetType="{x:Type Shape:RectangleControl}">
157
                    <Path x:Name="PART_RectPath" 
158
                              Stroke="{TemplateBinding StrokeColor}"
159
                              StrokeThickness="{TemplateBinding LineSize}"
160
                              Data="{TemplateBinding PathData}"
161
                              Fill="{TemplateBinding FillColor}"
162
                              RenderTransformOrigin="0.5,0.5">
163
                        <!--<Path.OpacityMask>
164
                            <RadialGradientBrush>
165
                                <RadialGradientBrush.GradientStops>
166
                                    <GradientStop Offset="0" Color="#FF000000"/>
167
                                    <GradientStop Offset="1" Color="#00000000"/>
168
                                </RadialGradientBrush.GradientStops>
169
                            </RadialGradientBrush>
170
                        </Path.OpacityMask>-->
171
                    </Path>
172
                </ControlTemplate>
173
            </Setter.Value>
174
        </Setter>
175
    </Style>
176

    
177
    <Style TargetType="{x:Type Shape:TriControl}">
178
        <Setter Property="Template">
179
            <Setter.Value>
180
                <ControlTemplate TargetType="{x:Type Shape:TriControl}">
181
                    <Path x:Name="PART_TriPath" 
182
                          Stroke="{TemplateBinding StrokeColor}"
183
                          StrokeThickness="{TemplateBinding LineSize}"
184
                          Data="{TemplateBinding PathData}"
185
                          Fill="{TemplateBinding FillColor}"/>
186
                </ControlTemplate>
187
            </Setter.Value>
188
        </Setter>
189
    </Style>
190

    
191
    <Style TargetType="{x:Type Shape:CircleControl}">
192
        <Setter Property="Template">
193
            <Setter.Value>
194
                <ControlTemplate TargetType="{x:Type Shape:CircleControl}">
195
                    <Path x:Name="PART_CirclePath" 
196
                          Stroke="{TemplateBinding StrokeColor}"  
197
                          StrokeThickness="{TemplateBinding LineSize}" 
198
                                                  Fill="{TemplateBinding FillColor}" 
199
                          Data="{TemplateBinding PathData}" 
200
                          RenderTransformOrigin="0.5,0.5">
201
                        <Path.RenderTransform>
202
                            <TransformGroup>
203
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
204
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
205
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
206
                            </TransformGroup>
207
                        </Path.RenderTransform>
208
                    </Path>
209
                </ControlTemplate>
210
            </Setter.Value>
211
        </Setter>
212
    </Style>
213

    
214
    <Style TargetType="{x:Type polygon:CloudControl}">
215
        <Setter Property="Template">
216
            <Setter.Value>
217
                <ControlTemplate TargetType="{x:Type polygon:CloudControl}">
218
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
219
                        <Path x:Name="PART_CloudPath" 
220
                              Stroke="{TemplateBinding StrokeColor}" 
221
                              Fill="{TemplateBinding FillColor}"  
222
                              StrokeThickness="{TemplateBinding LineSize}" 
223
                              Data="{TemplateBinding PathData}"
224
                              RenderTransformOrigin="0,0"/>
225
                        <Path x:Name="PART_CloudSubPath" 
226
                              Stroke="Transparent" 
227
                              Fill="{TemplateBinding FillColor}"  
228
                              StrokeThickness="{TemplateBinding LineSize}" 
229
                              Data="{TemplateBinding PathSubData}"
230
                              RenderTransformOrigin="0,0"/>
231
                    </Canvas>
232
                </ControlTemplate>
233
            </Setter.Value>
234
        </Setter>
235
    </Style>
236

    
237
    <Style TargetType="{x:Type Shape:RectCloudControl}">
238
        <Setter Property="Template">
239
            <Setter.Value>
240
                <ControlTemplate TargetType="{x:Type Shape:RectCloudControl}">
241
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
242
                        <Path x:Name="PART_ArcPath" 
243
                              Stroke="{TemplateBinding StrokeColor}" 
244
                              Fill="{TemplateBinding FillColor}"  
245
                              StrokeThickness="{TemplateBinding LineSize}" 
246
                              Data="{TemplateBinding PathData}" 
247
                              RenderTransformOrigin="0,0"/>
248
                        <Path x:Name="PART_BodyPath" 
249
                              Stroke="Transparent" 
250
                              Fill="{TemplateBinding FillColor}"  
251
                              StrokeThickness="{TemplateBinding LineSize}" 
252
                              Data="{TemplateBinding PathSubData}"
253
                              RenderTransformOrigin="0,0"/>
254
                    </Canvas>
255
                </ControlTemplate>
256
            </Setter.Value>
257
        </Setter>
258
    </Style>
259

    
260
    <Style TargetType="{x:Type polygon:PolygonControl}">
261
        <Setter Property="Template">
262
            <Setter.Value>
263
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
264
                    <Path x:Name="PART_PolyPath" 
265
                          Stroke="{TemplateBinding StrokeColor}"
266
                          StrokeThickness="{TemplateBinding LineSize}"
267
                          Data="{TemplateBinding PathData}"
268
                          RenderTransformOrigin="0.5,0.5" />
269
                </ControlTemplate>
270
            </Setter.Value>
271
        </Setter>
272
    </Style>
273

    
274
    <Style TargetType="{x:Type polygon:InkControl}">
275
        <Setter Property="Template">
276
            <Setter.Value>
277
                <ControlTemplate TargetType="{x:Type polygon:InkControl}">
278
                    <Path x:Name="PART_PolyPath" 
279
                          Stroke="{TemplateBinding StrokeColor}"
280
                          StrokeThickness="{TemplateBinding LineSize}"
281
                          Data="{TemplateBinding PathData}"
282
                          RenderTransformOrigin="0.5,0.5" />
283
                </ControlTemplate>
284
            </Setter.Value>
285
        </Setter>
286
    </Style>
287

    
288
    <!--<Style TargetType="Text:TextControl">-->
289
    <Style TargetType="{x:Type Text:TextControl}">
290
        <Setter Property="Template">
291
            <Setter.Value>
292
                <!--<ControlTemplate TargetType="Text:TextControl">-->
293
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
294
                    <Canvas Background="Red" x:Name="PART_TextControlCanvas">
295
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Panel.ZIndex="0">
296
                            <Grid.RenderTransform>
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
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
302
                                                    CenterX="{TemplateBinding CenterX}"
303
                                                    CenterY="{TemplateBinding CenterY}">
304
                                </RotateTransform>-->
305
                            </Grid.RenderTransform>
306
                        </Grid>
307

    
308
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Panel.ZIndex="0" IsHitTestVisible="False"  
309
                              Fill="{TemplateBinding BackInnerColor}">
310
                            <Path.RenderTransform>
311
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
312
                                                    CenterX="{TemplateBinding CenterX}"
313
                                                    CenterY="{TemplateBinding CenterY}">
314
                                </RotateTransform>-->
315
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
316
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
317
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
318
                                                 
319
                                                 />
320
                            </Path.RenderTransform>
321
                        </Path>
322

    
323
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}"  Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Panel.ZIndex="1">
324
                            <Path.Fill>
325
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/>
326
                            </Path.Fill>
327
                            <Path.RenderTransform>
328
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
329
                                                    CenterX="{TemplateBinding CenterX}"
330
                                                    CenterY="{TemplateBinding CenterY}">
331
                                </RotateTransform>-->
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
                                                 
336
                                                 />
337
                            </Path.RenderTransform>
338
                        </Path>
339

    
340
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Panel.ZIndex="2">
341
                            <Grid.Background>
342
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
343
                            </Grid.Background>
344
                            <Grid.RenderTransform>
345
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
346
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
347
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
348
                            </Grid.RenderTransform>
349
                            <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5"/>
350
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"/>
351

    
352
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False"
353
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
354
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
355
                                RenderTransformOrigin="0, 0" />
356
                            <Border Background="Transparent">
357

    
358
                                <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"
359
                                                                    FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
360
                                    FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0"
361
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
362
                                    RenderTransformOrigin="0, 0" />
363
                            </Border>
364
                            <Canvas>
365
                                <Border x:Name="Caret" 
366
                                        Visibility="Collapsed"
367
                                        Canvas.Left="0" 
368
                                        Canvas.Top="0" 
369
                                        Width="3" 
370
                                        Height="33">
371
                                    <Border.Background>
372
                                        <SolidColorBrush Color="Red"/>
373
                                    </Border.Background>
374
                                    <Border.Triggers>
375
                                        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
376
                                            <BeginStoryboard>
377
                                                <Storyboard  x:Name="CaretStoryBoard" 
378
                                                                 RepeatBehavior="Forever">
379
                                                    <ColorAnimationUsingKeyFrames 
380
                                                                Storyboard.TargetProperty="Background.Color"
381
                                                                Duration="0:0:0:1"
382
                                                                FillBehavior="HoldEnd">
383
                                                        <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
384
                                                        <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black"/>
385
                                                    </ColorAnimationUsingKeyFrames>
386
                                                </Storyboard>
387
                                            </BeginStoryboard>
388
                                        </EventTrigger>
389
                                    </Border.Triggers>
390
                                </Border>
391
                            </Canvas>
392
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"  IsTabStop="False" AcceptsTab="False"
393
                                        Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"  
394
                                                                        TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" 
395
                                        FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
396
                                        />
397
                        </Grid>
398
                    </Canvas>
399
                </ControlTemplate>
400
            </Setter.Value>
401
        </Setter>
402
    </Style>
403

    
404
    <!--<Style TargetType="{x:Type Text:TextControl}">
405
        <Setter Property="Template">
406
            <Setter.Value>
407
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
408
                    <Canvas>
409
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
410
                            <Grid.RenderTransform>
411
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
412
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
413
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
414
                            </Grid.RenderTransform>
415
                        </Grid>
416
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
417
                            <Grid.Background>
418
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
419
                            </Grid.Background>
420
                            <Grid.RenderTransform>
421
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
422
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
423
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
424
                            </Grid.RenderTransform>
425
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
426

427
                            </Border>
428
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
429
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
430
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
431
                                RenderTransformOrigin="0, 0">
432
                            </TextBlock>
433
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
434
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
435
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
436
                                RenderTransformOrigin="0, 0"
437
                                Visibility="{TemplateBinding TextBlockVisibility}" >
438
                            </TextBlock>
439
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" 
440
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" 
441
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
442
                                     Visibility="{TemplateBinding TextBoxVisibility}" >
443
                            </TextBox>
444
                        </Grid>
445

446

447
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
448
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
449
                            <Path.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
                            </Path.RenderTransform>
454
                        </Path>
455
                    </Canvas>
456
                </ControlTemplate>
457
            </Setter.Value>
458
        </Setter>
459
    </Style>-->
460

    
461
    <Style TargetType="{x:Type Text:ArrowTextControl}">
462
        <Setter Property="Template">
463
            <Setter.Value>
464
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
465
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
466

    
467

    
468
                        <!--<Path x:Name="PART_ArrowPath" 
469
                              Stroke="{TemplateBinding StrokeColor}" 
470
                                                      StrokeThickness="{TemplateBinding LineSize}" 
471
                              Data="{TemplateBinding PathData}" 
472
                              Fill="{TemplateBinding StrokeColor}">
473
                        </Path>-->
474

    
475
                        <Path x:Name="PART_ArrowPath"  Panel.ZIndex="0"
476
                                  Stroke="{TemplateBinding StrokeColor}"
477
                                                          StrokeThickness="{TemplateBinding LineSize}" 
478
                                  Data="{TemplateBinding PathData}"
479
                                  Fill="{TemplateBinding StrokeColor}"/>
480

    
481
                        <!--<Path x:Name="PART_ArrowSubPath" 
482
                                      Stroke="{TemplateBinding StrokeColor}"
483
                                                              StrokeThickness="{TemplateBinding LineSize}"  
484
                                      Fill="{TemplateBinding SubPathFill}" 
485
                                      Data="{TemplateBinding SubPathData}"
486
                                      RenderTransformOrigin="0,0"/>-->
487

    
488
                        <Path x:Name="PART_ArrowSubPath"  Panel.ZIndex="2"
489
                                      Stroke="{TemplateBinding StrokeColor}"
490
                                                              StrokeThickness="{TemplateBinding LineSize}"  
491
                                      Fill="{TemplateBinding SubPathFill}"
492
                                      Data="{TemplateBinding SubPathData}"
493
                                      RenderTransformOrigin="0,0"/>
494

    
495
                        <Path  x:Name="PART_TextBoxBackBorder"  
496
                                      Stroke="Transparent" 
497
                                      Fill="{TemplateBinding BackInnerColor}" Panel.ZIndex="1"
498
                                      Data="{TemplateBinding PathDataInner}"
499
                                      RenderTransformOrigin="0,0"/>
500
                        <!--<TextBlock x:Name="PART_ArrowTextBlock" 
501
                                     Margin="0.5"
502
                                     Background="{TemplateBinding TextBoxBackground}"
503
                                     FontSize="{TemplateBinding TextSize}" 
504
                                     FontFamily="{TemplateBinding TextFamily}"
505
                                     FontStyle="{TemplateBinding TextStyle}"
506
                                                                     FontWeight="{TemplateBinding TextWeight}"
507
                                     Foreground="{TemplateBinding StrokeColor}" 
508
                                     HorizontalAlignment="Stretch"
509
                                     TextWrapping="Wrap" 
510
                                     Text="{TemplateBinding ArrowText}"
511
                                     RenderTransformOrigin="0.5,0.5">
512
                            <TextBlock.RenderTransform>
513
                                <RotateTransform Angle="{TemplateBinding Angle}"
514
                                                    CenterX="{TemplateBinding CenterX}"
515
                                                    CenterY="{TemplateBinding CenterY}">
516
                                </RotateTransform>
517
                            </TextBlock.RenderTransform>
518
                        </TextBlock>-->
519

    
520
                        <Canvas Panel.ZIndex="4">
521
                            <Border x:Name="Caret" 
522
                                            Visibility="Collapsed"
523
                                            Canvas.Left="0" 
524
                                            Canvas.Top="0" 
525
                                            Width="5"
526
                                            RenderTransformOrigin="0.5,0.5"
527
                                            Height="{Binding ActualHeight,ElementName=CaretHeightTextBlock}">
528
                                <Border.Background>
529
                                    <SolidColorBrush Color="#B2930909"/>
530
                                </Border.Background>
531
                                <TextBlock Text="A" x:Name="CaretHeightTextBlock" Foreground="Transparent" FontSize="{TemplateBinding TextSize}" 
532
                                         FontFamily="{TemplateBinding TextFamily}" TextWrapping="NoWrap"
533
                                         FontStyle="{TemplateBinding TextStyle}"/>
534
                                <!--<Border.RenderTransform>
535
                                    <RotateTransform  Angle="{Binding VisualPageAngle, Converter={StaticResource ValueBindingTestConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
536
                                                                CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
537
                                                                CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
538
                                </Border.RenderTransform>-->
539
                                <Border.Triggers>
540
                                    <EventTrigger RoutedEvent="FrameworkElement.Loaded">
541
                                        <BeginStoryboard>
542
                                            <Storyboard  x:Name="CaretStoryBoard" 
543
                                                                     RepeatBehavior="Forever">
544
                                                <ColorAnimationUsingKeyFrames 
545
                                                                    Storyboard.TargetProperty="Background.Color"
546
                                                                Duration="0:0:0:1"
547
                                                                FillBehavior="HoldEnd">
548
                                                    <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
549
                                                    <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="#B2930909"/>
550
                                                </ColorAnimationUsingKeyFrames>
551
                                            </Storyboard>
552
                                        </BeginStoryboard>
553
                                    </EventTrigger>
554
                                </Border.Triggers>
555
                            </Border>
556
                        </Canvas>
557
                        <TextBox x:Name="PART_ArrowTextBox"  
558
                                         Margin="0.5" Panel.ZIndex="5"
559
                                         Background="{TemplateBinding TextBoxBackground}"
560
                                         BorderThickness="{TemplateBinding BorderSize}" 
561
                                         BorderBrush="{TemplateBinding StrokeColor}"
562
                                         FontSize="{TemplateBinding TextSize}" 
563
                                         FontFamily="{TemplateBinding TextFamily}"
564
                                         FontStyle="{TemplateBinding TextStyle}"
565
                                                                         FontWeight="{TemplateBinding TextWeight}"
566
                                         TextDecorations="{TemplateBinding UnderLine}"
567
                                         AcceptsReturn="True" 
568
                                         Foreground="{TemplateBinding StrokeColor}" 
569
                                         HorizontalAlignment="Stretch"
570
                                         TextWrapping="Wrap"
571
                                          CaretBrush="DarkBlue"
572
                                         Text="{TemplateBinding ArrowText}"
573
                                         RenderTransformOrigin="0.5,0.5">
574
                            <!--<TextBox.RenderTransform>
575
                                <RotateTransform  Angle="{Binding VisualPageAngle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
576
                                                        CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
577
                                                        CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
578
                            </TextBox.RenderTransform>-->
579
                        </TextBox>
580
                        
581
                    </Canvas>
582
                </ControlTemplate>
583
            </Setter.Value>
584
        </Setter>
585
    </Style>
586

    
587
    <Style TargetType="{x:Type Etc:DateControl}">
588
        <Setter Property="Template">
589
            <Setter.Value>
590
                <ControlTemplate TargetType="{x:Type Etc:DateControl}">
591
                    <Viewbox x:Name="PART_ViewBox" >
592
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" 
593
                                 Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5">
594
                            <TextBlock.RenderTransform>
595
                                <TransformGroup>
596
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
597
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
598
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
599
                                </TransformGroup>
600
                            </TextBlock.RenderTransform>
601
                        </TextBlock>
602
                    </Viewbox>
603
                </ControlTemplate>
604
            </Setter.Value>
605
        </Setter>
606
    </Style>
607

    
608
    <Style TargetType="{x:Type Etc:SignControl}">
609
        <Setter Property="Template">
610
            <Setter.Value>
611
                <ControlTemplate TargetType="{x:Type Etc:SignControl}">
612
                    <Image x:Name="PART_Image"  Source="{TemplateBinding SignImage}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
613
                        <Image.RenderTransform>
614
                            <TransformGroup>
615
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
616
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
617
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
618
                            </TransformGroup>
619
                        </Image.RenderTransform>
620
                    </Image>
621
                </ControlTemplate>
622
            </Setter.Value>
623
        </Setter>
624
    </Style>
625

    
626
    <Style TargetType="{x:Type Etc:ImgControl}">
627
        <Setter Property="Template">
628
            <Setter.Value>
629
                <ControlTemplate TargetType="{x:Type Etc:ImgControl}">
630
                    <Image x:Name="PART_Image"  Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
631
                        <Image.RenderTransform>
632
                            <TransformGroup>
633
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
634
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
635
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
636
                            </TransformGroup>
637
                        </Image.RenderTransform>
638
                    </Image>
639
                </ControlTemplate>
640
            </Setter.Value>
641
        </Setter>
642
    </Style>
643

    
644
    <!--강인구 추가-->
645
    <Style TargetType="{x:Type Etc:SymControl}">
646
        <Setter Property="Template">
647
            <Setter.Value>
648
                <ControlTemplate TargetType="{x:Type Etc:SymControl}">
649
                    <Viewbox x:Name="PART_ViewBox">
650
                        <Path x:Name="PART_SymPath"  Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
651
                          Data="{TemplateBinding PathData}" 
652
                              RenderTransformOrigin="0.5,0.5">
653
                            <Path.RenderTransform>
654
                                <TransformGroup>
655
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
656
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
657
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
658
                                </TransformGroup>
659
                            </Path.RenderTransform>
660
                        </Path>
661
                    </Viewbox>
662
                </ControlTemplate>
663
            </Setter.Value>
664
        </Setter>
665
    </Style>
666

    
667
    <Style TargetType="{x:Type Etc:SymControlN}">
668
        <Setter Property="Template">
669
            <Setter.Value>
670
                <ControlTemplate TargetType="{x:Type Etc:SymControlN}">
671
                    <Viewbox x:Name="PART_ViewBox" RenderTransformOrigin="0.5,0.5">
672
                        <Viewbox.RenderTransform>
673
                            <TransformGroup>
674
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
675
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
676
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
677
                            </TransformGroup>
678
                        </Viewbox.RenderTransform>
679
                    </Viewbox>
680
                </ControlTemplate>
681
            </Setter.Value>
682
        </Setter>
683
    </Style>
684

    
685

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