프로젝트

일반

사용자정보

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

markus / MarkupToPDF_Old / Themes / generic.xaml @ 5538eb5a

이력 | 보기 | 이력해설 | 다운로드 (18.3 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
                    >
9
    
10

    
11
    <Style TargetType="{x:Type Shape:RectangleControl}">
12
        <Setter Property="Template">
13
            <Setter.Value>
14
                <ControlTemplate TargetType="{x:Type Shape:RectangleControl}">
15
                        <Path x:Name="PART_RectPath" 
16
                              Stroke="{TemplateBinding StrokeColor}"
17
                              StrokeThickness="{TemplateBinding LineSize}"
18
                              Data="{TemplateBinding PathData}"
19
                              Fill="{TemplateBinding FillColor}">
20
                        </Path>
21
                </ControlTemplate>
22
            </Setter.Value>
23
        </Setter>
24
    </Style>
25

    
26

    
27
    <Style TargetType="{x:Type Text:TextControl}">
28
        <Setter Property="Template">
29
            <Setter.Value>
30
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
31
                    <Canvas>
32
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
33
                            <Grid.RenderTransform>
34
                                <!--<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
35
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
36
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>-->
37

    
38
                                <RotateTransform Angle="{TemplateBinding Angle}"
39
                                                    CenterX="{TemplateBinding CenterX}"
40
                                                    CenterY="{TemplateBinding CenterY}">
41
                                </RotateTransform>
42
                            </Grid.RenderTransform>
43
                        </Grid>
44
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
45
                            <Grid.Background>
46
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
47
                            </Grid.Background>
48
                            <Grid.RenderTransform>
49
                                <RotateTransform Angle="{TemplateBinding Angle}"
50
                                                    CenterX="{TemplateBinding CenterX}"
51
                                                    CenterY="{TemplateBinding CenterY}">
52
                                </RotateTransform>
53
                                <!--<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
54
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
55
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>-->
56
                            </Grid.RenderTransform>
57
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
58

    
59
                            </Border>
60
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
61
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
62
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
63
                                RenderTransformOrigin="0, 0" >
64
                            </TextBlock>
65
                            <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
66
                                                                FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
67
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
68
                                Visibility="{TemplateBinding TextBlockVisibility}"
69
                                RenderTransformOrigin="0, 0" >
70
                            </TextBlock>
71
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" 
72
                                     Visibility="{TemplateBinding TextBoxVisibility}"
73
                                                                     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" 
74
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
75
                                     >
76
                            </TextBox>
77
                        </Grid>
78

    
79

    
80
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
81
                                                          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
82
                            <Path.RenderTransform>
83

    
84
                                <RotateTransform Angle="{TemplateBinding Angle}"
85
                                                    CenterX="{TemplateBinding CenterX}"
86
                                                    CenterY="{TemplateBinding CenterY}">
87
                                </RotateTransform>
88
                                
89
                                <!--<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
90
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
91
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
92
                                                 
93
                                                 />-->
94
                            </Path.RenderTransform>
95
                        </Path>
96
                    </Canvas>
97
                </ControlTemplate>
98
            </Setter.Value>
99
        </Setter>
100
    </Style>
101

    
102
    <Style TargetType="{x:Type Text:ArrowTextControl}">
103
        <Setter Property="Template">
104
            <Setter.Value>
105
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
106
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
107
                                <Path x:Name="PART_ArrowPath" 
108
                                  Stroke="{TemplateBinding StrokeColor}"
109
                                                          StrokeThickness="{TemplateBinding LineSize}" 
110
                                  Data="{TemplateBinding PathData}"
111
                                  Fill="{TemplateBinding StrokeColor}"/>
112

    
113
                                <Path x:Name="PART_ArrowSubPath" 
114
                                      Stroke="{TemplateBinding StrokeColor}"
115
                                                              StrokeThickness="{TemplateBinding LineSize}"  
116
                                      Fill="{TemplateBinding SubPathFill}" 
117
                                      Data="{TemplateBinding SubPathData}"
118
                                      RenderTransformOrigin="0,0"/>
119
                       
120
                            <TextBox x:Name="PART_ArrowTextBox"  
121
                                     Margin="0.5"
122
                                     Background="{TemplateBinding TextBoxBackground}"
123
                                     BorderThickness="{TemplateBinding BorderSize}" 
124
                                     BorderBrush="{TemplateBinding StrokeColor}"
125
                                     FontSize="{TemplateBinding TextSize}" 
126
                                     FontFamily="{TemplateBinding TextFamily}"
127
                                     FontStyle="{TemplateBinding TextStyle}"
128
                                                                     FontWeight="{TemplateBinding TextWeight}"
129
                                     AcceptsReturn="True" 
130
                                     Foreground="{TemplateBinding StrokeColor}" 
131
                                     HorizontalAlignment="Stretch"
132
                                     TextWrapping="Wrap" 
133
                                     Text="{TemplateBinding ArrowText}"
134
                                     RenderTransformOrigin="0.5,0.5">
135
                            <TextBox.RenderTransform>
136
                                <RotateTransform Angle="{TemplateBinding Angle}"
137
                                                    CenterX="{TemplateBinding CenterX}"
138
                                                    CenterY="{TemplateBinding CenterY}">
139
                                </RotateTransform>
140
                                <!--<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
141
                                                     CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
142
                                                     CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
143
                                </RotateTransform>-->
144
                            </TextBox.RenderTransform>
145
                        </TextBox>
146
                    </Canvas>
147
                </ControlTemplate>
148
            </Setter.Value>
149
        </Setter>
150
    </Style>
151

    
152
    <!--인구 추가 시작-->
153
    <Style TargetType="{x:Type Shape:RectCloudControl}">
154
        <Setter Property="Template">
155
            <Setter.Value>
156
                <ControlTemplate TargetType="Shape:RectCloudControl">
157
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
158
                        <Path x:Name="PART_ArcPath" Stroke="{TemplateBinding StrokeColor}" Fill="{TemplateBinding FillColor}"  
159
                              StrokeThickness="{TemplateBinding LineSize}" Data="{TemplateBinding PathData}" 
160
                              RenderTransformOrigin="0,0"/>
161
                        <Path x:Name="PART_BodyPath" Stroke="Transparent" Fill="{TemplateBinding FillColor}"  
162
                              StrokeThickness="{TemplateBinding LineSize}" Data="{TemplateBinding PathSubData}"
163
                              RenderTransformOrigin="0,0"/>
164
                    </Canvas>
165
                </ControlTemplate>
166
            </Setter.Value>
167
        </Setter>
168
    </Style>
169

    
170
    <Style TargetType="{x:Type polygon:CloudControl}">
171
        <Setter Property="Template">
172
            <Setter.Value>
173
                <ControlTemplate TargetType="polygon:CloudControl">
174
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
175
                        <Path x:Name="PART_CloudPath" Stroke="{TemplateBinding StrokeColor}" Fill="{TemplateBinding FillColor}"  
176
                              StrokeThickness="{TemplateBinding LineSize}" Data="{TemplateBinding PathData}"
177
                              RenderTransformOrigin="0,0"/>
178
                        <Path x:Name="PART_CloudSubPath" Stroke="Transparent" Fill="{TemplateBinding FillColor}"  
179
                              StrokeThickness="{TemplateBinding LineSize}" Data="{TemplateBinding PathSubData}"
180
                              RenderTransformOrigin="0,0"/>
181
                    </Canvas>
182
                </ControlTemplate>
183
            </Setter.Value>
184
        </Setter>
185
    </Style>
186

    
187
    <Style TargetType="{x:Type Shape:TriControl}">
188
        <Setter Property="Template">
189
            <Setter.Value>
190
                <ControlTemplate TargetType="{x:Type Shape:TriControl}">
191
                    <Path x:Name="PART_TriPath" 
192
                          Stroke="{TemplateBinding StrokeColor}"
193
                          StrokeThickness="{TemplateBinding LineSize}"
194
                          Data="{TemplateBinding PathData}"
195
                          Fill="{TemplateBinding FillColor}">
196
                    </Path>
197
                </ControlTemplate>
198
            </Setter.Value>
199
        </Setter>
200
    </Style>
201
    
202
    <Style TargetType="{x:Type Shape:CircleControl}">
203
        <Setter Property="Template">
204
            <Setter.Value>
205
                <ControlTemplate TargetType="Shape:CircleControl">
206
                    <Path x:Name="PART_CirclePath" Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}" 
207
                                                Fill="{TemplateBinding FillColor}" Data="{TemplateBinding PathData}" RenderTransformOrigin="0.5,0.5">
208
                        <Path.RenderTransform>
209
                            <TransformGroup>
210

    
211
                                <RotateTransform Angle="{TemplateBinding Angle}"
212
                                                    CenterX="{TemplateBinding CenterX}"
213
                                                    CenterY="{TemplateBinding CenterY}">
214
                                </RotateTransform>
215
                                
216
                                <!--<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
217
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
218
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->
219
                            </TransformGroup>
220
                        </Path.RenderTransform>
221
                    </Path>
222
                </ControlTemplate>
223
            </Setter.Value>
224
        </Setter>
225
    </Style>
226

    
227
    <Style TargetType="{x:Type Line:LineControl}">
228
        <Setter Property="Template">
229
            <Setter.Value>
230
                <ControlTemplate TargetType="{x:Type Line:LineControl}">
231
                    <Path x:Name="PART_LinePath" Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
232
                          Data="{TemplateBinding PathData}" RenderTransformOrigin="0.5,0.5" Fill="{TemplateBinding StrokeColor}">
233
                    </Path>
234
                </ControlTemplate>
235
            </Setter.Value>
236
        </Setter>
237
    </Style>
238

    
239
    <Style TargetType="{x:Type Line:ArrowControl_Multi}">
240
        <Setter Property="Template">
241
            <Setter.Value>
242
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
243
                    <Path x:Name="PART_ArrowMultiPath" Stroke="{TemplateBinding StrokeColor}"  Fill="{TemplateBinding StrokeColor}"  
244
                                                    StrokeThickness="{TemplateBinding LineSize}" Data="{TemplateBinding PathData}"/>
245
                </ControlTemplate>
246
            </Setter.Value>
247
        </Setter>
248
    </Style>
249

    
250
    <Style TargetType="{x:Type Line:ArcControl}">
251
        <Setter Property="Template">
252
            <Setter.Value>
253
                <ControlTemplate TargetType="{x:Type Line:ArcControl}">
254
                    <Path x:Name="PART_ArcPath" Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
255
                          Data="{TemplateBinding PathData}" RenderTransformOrigin="0.5,0.5" Fill="{TemplateBinding StrokeColor}">
256
                    </Path>
257
                </ControlTemplate>
258
            </Setter.Value>
259
        </Setter>
260
    </Style>
261

    
262
    <Style TargetType="Etc:ImgControl">
263
        <Setter Property="Template">
264
            <Setter.Value>
265
                <ControlTemplate TargetType="Etc:ImgControl">
266
                    <Image x:Name="PART_Image"  Source="{TemplateBinding ImageData}" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
267
                        <Image.RenderTransform>
268
                            <TransformGroup>
269
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
270
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
271
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
272
                            </TransformGroup>
273
                        </Image.RenderTransform>
274
                    </Image>
275
                </ControlTemplate>
276
            </Setter.Value>
277
        </Setter>
278
    </Style>
279

    
280
    <Style TargetType="Etc:DateControl">
281
        <Setter Property="Template">
282
            <Setter.Value>
283
                <ControlTemplate TargetType="Etc:DateControl">
284
                    <Viewbox x:Name="PART_ViewBox" >
285
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" 
286
                                 Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5">
287
                            <TextBlock.RenderTransform>
288
                                <TransformGroup>
289
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
290
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
291
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
292
                                </TransformGroup>
293
                            </TextBlock.RenderTransform>
294
                        </TextBlock>
295
                    </Viewbox>
296
                </ControlTemplate>
297
            </Setter.Value>
298
        </Setter>
299
    </Style>
300

    
301
    <!--인구 추가 끝-->
302

    
303
    <Style TargetType="{x:Type polygon:PolygonControl}">
304
        <Setter Property="Template">
305
            <Setter.Value>
306
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
307
                    <Path x:Name="PART_PolyPath" 
308
                          Stroke="{TemplateBinding StrokeColor}"
309
                          StrokeThickness="{TemplateBinding LineSize}"
310
                          Data="{TemplateBinding PathData}"
311
                          RenderTransformOrigin="0.5,0.5" >
312
                    </Path>
313
                </ControlTemplate>
314
            </Setter.Value>
315
        </Setter>
316
    </Style>
317
</ResourceDictionary>
클립보드 이미지 추가 (최대 크기: 500 MB)