프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Themes / generic.xaml @ b35682c3

이력 | 보기 | 이력해설 | 다운로드 (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
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Panel.ZIndex="2">
308
                            <Grid.Background>
309
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
310
                            </Grid.Background>
311
                            <Grid.RenderTransform>
312
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
313
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
314
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
315
                            </Grid.RenderTransform>
316
                            <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5"/>
317
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5"/>
318

    
319
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False"
320
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
321
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
322
                                RenderTransformOrigin="0, 0" />
323
                            <Border Background="Transparent">
324

    
325
                                <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"
326
                                                                    FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
327
                                    FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0"
328
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
329
                                    RenderTransformOrigin="0, 0" />
330
                            </Border>
331

    
332

    
333

    
334
                            <Canvas>
335
                                <Border x:Name="Caret" 
336
                                        Visibility="Collapsed"
337
                                        Canvas.Left="0" 
338
                                        Canvas.Top="0" 
339
                                        Width="3" 
340
                                        Height="33">
341
                                    <Border.Background>
342
                                        <SolidColorBrush Color="Red"/>
343
                                    </Border.Background>
344
                                    <Border.Triggers>
345
                                        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
346
                                            <BeginStoryboard>
347
                                                <Storyboard  x:Name="CaretStoryBoard" 
348
                                                                 RepeatBehavior="Forever">
349
                                                    <ColorAnimationUsingKeyFrames 
350
                                                                Storyboard.TargetProperty="Background.Color"
351
                                                                Duration="0:0:0:1"
352
                                                                FillBehavior="HoldEnd">
353
                                                        <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
354
                                                        <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black"/>
355
                                                    </ColorAnimationUsingKeyFrames>
356
                                                </Storyboard>
357
                                            </BeginStoryboard>
358
                                        </EventTrigger>
359
                                    </Border.Triggers>
360
                                </Border>
361
                            </Canvas>
362
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"  IsTabStop="False" AcceptsTab="False"
363
                                        Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"  
364
                                                                        TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" 
365
                                        FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
366
                                        />
367
                        </Grid>
368

    
369
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Panel.ZIndex="0" IsHitTestVisible="False"  
370
                              Fill="{TemplateBinding BackInnerColor}">
371
                            <Path.RenderTransform>
372
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
373
                                                    CenterX="{TemplateBinding CenterX}"
374
                                                    CenterY="{TemplateBinding CenterY}">
375
                                </RotateTransform>-->
376
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
377
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
378
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
379
                                                 
380
                                                 />
381
                            </Path.RenderTransform>
382
                        </Path>
383

    
384
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}"  Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Panel.ZIndex="1">
385
                            <Path.Fill>
386
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/>
387
                            </Path.Fill>
388
                            <Path.RenderTransform>
389
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
390
                                                    CenterX="{TemplateBinding CenterX}"
391
                                                    CenterY="{TemplateBinding CenterY}">
392
                                </RotateTransform>-->
393
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
394
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
395
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
396
                                                 
397
                                                 />
398
                            </Path.RenderTransform>
399
                        </Path>
400

    
401

    
402
                    </Canvas>
403
                </ControlTemplate>
404
            </Setter.Value>
405
        </Setter>
406
    </Style>
407

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

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

450

451
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
452
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
453
                            <Path.RenderTransform>
454
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
455
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
456
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
457
                            </Path.RenderTransform>
458
                        </Path>
459
                    </Canvas>
460
                </ControlTemplate>
461
            </Setter.Value>
462
        </Setter>
463
    </Style>-->
464

    
465
    <Style TargetType="{x:Type Text:ArrowTextControl}">
466
        <Setter Property="Template">
467
            <Setter.Value>
468
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
469
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
470

    
471

    
472
                        <!--<Path x:Name="PART_ArrowPath" 
473
                              Stroke="{TemplateBinding StrokeColor}" 
474
                                                      StrokeThickness="{TemplateBinding LineSize}" 
475
                              Data="{TemplateBinding PathData}" 
476
                              Fill="{TemplateBinding StrokeColor}">
477
                        </Path>-->
478

    
479
                        <Path x:Name="PART_ArrowPath"  Panel.ZIndex="0"
480
                                  Stroke="{TemplateBinding StrokeColor}"
481
                                                          StrokeThickness="{TemplateBinding LineSize}" 
482
                                  Data="{TemplateBinding PathData}"
483
                                  Fill="{TemplateBinding StrokeColor}"/>
484

    
485
                        <!--<Path x:Name="PART_ArrowSubPath" 
486
                                      Stroke="{TemplateBinding StrokeColor}"
487
                                                              StrokeThickness="{TemplateBinding LineSize}"  
488
                                      Fill="{TemplateBinding SubPathFill}" 
489
                                      Data="{TemplateBinding SubPathData}"
490
                                      RenderTransformOrigin="0,0"/>-->
491

    
492
                        <Path x:Name="PART_ArrowSubPath"  Panel.ZIndex="2"
493
                                      Stroke="{TemplateBinding StrokeColor}"
494
                                                              StrokeThickness="{TemplateBinding LineSize}"  
495
                                      Fill="{TemplateBinding SubPathFill}"
496
                                      Data="{TemplateBinding SubPathData}"
497
                                      RenderTransformOrigin="0,0"/>
498

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

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

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

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

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

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

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

    
689

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