프로젝트

일반

사용자정보

개정판 b643fcca

IDb643fcca31ab2f12169c198f014a9ebed9232dd0
상위 68302e9d
하위 233ef333

김태성이(가) 4년 이상 전에 추가함

- angle event 수정
- select에서 shift키 이벤트 안됨

Change-Id: I17decc4b6ab1f91e7b6ae18751acf74811e5d7a7

차이점 보기:

MarkupToPDF/Themes/generic.xaml
7 7
                    xmlns:Etc="clr-namespace:MarkupToPDF.Controls.Etc"
8 8
                    xmlns:Angle="clr-namespace:MarkupToPDF.Controls.Angle"
9 9
                    xmlns:Cad="clr-namespace:MarkupToPDF.Controls.Cad">
10
    
10

  
11 11
    <Style TargetType="{x:Type Cad:CoordinateControl}">
12 12
        <Setter Property="Template">
13 13
            <Setter.Value>
14 14
                <ControlTemplate TargetType="{x:Type Cad:CoordinateControl}">
15
                    <Path x:Name="PART_RectPath" 
15
                    <Path x:Name="PART_RectPath"
16 16
                              Stroke="Black"
17 17
                              StrokeThickness="10"
18 18
                              Data="{TemplateBinding PathData}"
......
27 27
        <Setter Property="Template">
28 28
            <Setter.Value>
29 29
                <ControlTemplate TargetType="{x:Type Cad:InsideWhiteControl}">
30
                    <Path x:Name="PART_RectPath" 
30
                    <Path x:Name="PART_RectPath"
31 31
                              Stroke="LightGray"
32 32
                              StrokeThickness="{TemplateBinding LineSize}"
33 33
                              Data="{TemplateBinding PathData}"
......
43 43
        <Setter Property="Template">
44 44
            <Setter.Value>
45 45
                <ControlTemplate TargetType="{x:Type Cad:OverlapWhiteControl}">
46
                    <Path x:Name="PART_RectPath" 
46
                    <Path x:Name="PART_RectPath"
47 47
                              Stroke="LightGray"
48 48
                              StrokeThickness="{TemplateBinding LineSize}"
49 49
                              Data="{TemplateBinding PathData}"
......
59 59
        <Setter Property="Template">
60 60
            <Setter.Value>
61 61
                <ControlTemplate TargetType="{x:Type Cad:ClipWhiteControl}">
62
                    <Path x:Name="PART_RectPath" 
62
                    <Path x:Name="PART_RectPath"
63 63
                              Stroke="LightGray"
64 64
                              StrokeThickness="{TemplateBinding LineSize}"
65 65
                              Data="{TemplateBinding PathData}"
......
78 78
                    <Border BorderBrush="#FF051F25" BorderThickness="2" Opacity="0.7" Width="120">
79 79
                        <Border.Background>
80 80
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
81
                                <GradientStop Color="#FF00CDFF" Offset="0"/>
82
                                <GradientStop Color="#ff4185f3" Offset="1"/>
81
                                <GradientStop Color="#FF00CDFF" Offset="0" />
82
                                <GradientStop Color="#ff4185f3" Offset="1" />
83 83
                            </LinearGradientBrush>
84 84
                        </Border.Background>
85 85
                        <Grid>
86 86
                            <TextBlock x:Name="PART_AngleText" Text="{TemplateBinding AngleValue}"  Margin="5"
87
								FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center"/>
87
								FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center" />
88 88
                            <TextBlock Text="Angle" VerticalAlignment="Bottom" HorizontalAlignment="Right"
89 89
								Opacity="0.9"
90
								FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0"/>
90
								FontSize="10" Foreground="White" FontWeight="Bold" Margin="3,3,3,0" />
91 91
                        </Grid>
92 92
                    </Border>
93 93
                </ControlTemplate>
......
99 99
        <Setter Property="Template">
100 100
            <Setter.Value>
101 101
                <ControlTemplate TargetType="{x:Type Line:LineControl}">
102
                    <Path x:Name="PART_LinePath" 
103
                          Stroke="{TemplateBinding StrokeColor}"  
102
                    <Path x:Name="PART_LinePath"
103
                          Stroke="{TemplateBinding StrokeColor}"
104 104
                          StrokeThickness="{TemplateBinding LineSize}"
105
                          Data="{TemplateBinding PathData}" 
106
                          RenderTransformOrigin="0.5,0.5" 
105
                          Data="{TemplateBinding PathData}"
106
                          RenderTransformOrigin="0.5,0.5"
107 107
                          Fill="{TemplateBinding StrokeColor}">
108 108
                    </Path>
109 109
                </ControlTemplate>
......
115 115
        <Setter Property="Template">
116 116
            <Setter.Value>
117 117
                <ControlTemplate TargetType="{x:Type Line:ArcControl}">
118
                    <Path x:Name="PART_ArcPath" 
119
                          Stroke="{TemplateBinding StrokeColor}"  
118
                    <Path x:Name="PART_ArcPath"
119
                          Stroke="{TemplateBinding StrokeColor}"
120 120
                          StrokeThickness="{TemplateBinding LineSize}"
121
                          Data="{TemplateBinding PathData}" 
122
                          RenderTransformOrigin="0.5,0.5" 
121
                          Data="{TemplateBinding PathData}"
122
                          RenderTransformOrigin="0.5,0.5"
123 123
                          Fill="{TemplateBinding StrokeColor}">
124 124
                    </Path>
125 125
                </ControlTemplate>
......
130 130
        <Setter Property="Template">
131 131
            <Setter.Value>
132 132
                <ControlTemplate TargetType="{x:Type Line:ArrowArcControl}">
133
                    <Path x:Name="PART_ArcPath" 
134
                          Stroke="{TemplateBinding StrokeColor}"  
133
                    <Path x:Name="PART_ArcPath"
134
                          Stroke="{TemplateBinding StrokeColor}"
135 135
                          StrokeThickness="{TemplateBinding LineSize}"
136
                          Data="{TemplateBinding PathData}" 
137
                          RenderTransformOrigin="0.5,0.5" 
136
                          Data="{TemplateBinding PathData}"
137
                          RenderTransformOrigin="0.5,0.5"
138 138
                          Fill="{TemplateBinding StrokeColor}">
139 139
                    </Path>
140 140
                </ControlTemplate>
......
145 145
        <Setter Property="Template">
146 146
            <Setter.Value>
147 147
                <ControlTemplate TargetType="{x:Type Line:ArrowControl_Multi}">
148
                    <Path x:Name="PART_ArrowMultiPath" 
149
                          Stroke="{TemplateBinding StrokeColor}"  
150
                          Fill="{TemplateBinding StrokeColor}"  
151
						  StrokeThickness="{TemplateBinding LineSize}" 
152
                          Data="{TemplateBinding PathData}"/>
148
                    <Path x:Name="PART_ArrowMultiPath"
149
                          Stroke="{TemplateBinding StrokeColor}"
150
                          Fill="{TemplateBinding StrokeColor}"
151
						  StrokeThickness="{TemplateBinding LineSize}"
152
                          Data="{TemplateBinding PathData}" />
153 153
                </ControlTemplate>
154 154
            </Setter.Value>
155 155
        </Setter>
......
159 159
        <Setter Property="Template">
160 160
            <Setter.Value>
161 161
                <ControlTemplate TargetType="{x:Type Shape:RectangleControl}">
162
                    <Path x:Name="PART_RectPath" 
162
                    <Path x:Name="PART_RectPath"
163 163
                              Stroke="{TemplateBinding StrokeColor}"
164 164
                              StrokeThickness="{TemplateBinding LineSize}"
165 165
                              Data="{TemplateBinding PathData}"
......
168 168
                        <!--<Path.OpacityMask>
169 169
                            <RadialGradientBrush>
170 170
                                <RadialGradientBrush.GradientStops>
171
                                    <GradientStop Offset="0" Color="#FF000000"/>
172
                                    <GradientStop Offset="1" Color="#00000000"/>
171
                                    <GradientStop Offset="0" Color="#FF000000" />
172
                                    <GradientStop Offset="1" Color="#00000000" />
173 173
                                </RadialGradientBrush.GradientStops>
174 174
                            </RadialGradientBrush>
175 175
                        </Path.OpacityMask>-->
......
183 183
        <Setter Property="Template">
184 184
            <Setter.Value>
185 185
                <ControlTemplate TargetType="{x:Type Shape:TriControl}">
186
                    <Path x:Name="PART_TriPath" 
186
                    <Path x:Name="PART_TriPath"
187 187
                          Stroke="{TemplateBinding StrokeColor}"
188 188
                          StrokeThickness="{TemplateBinding LineSize}"
189 189
                          Data="{TemplateBinding PathData}"
......
198 198
        <Setter Property="Template">
199 199
            <Setter.Value>
200 200
                <ControlTemplate TargetType="Shape:CircleControl">
201
                    <Path x:Name="PART_CirclePath" 
202
                          Stroke="{TemplateBinding StrokeColor}"  
203
                          StrokeThickness="{TemplateBinding LineSize}" 
204
						  Fill="{TemplateBinding FillColor}" 
205
                          Data="{TemplateBinding PathData}" 
201
                    <Path x:Name="PART_CirclePath"
202
                          Stroke="{TemplateBinding StrokeColor}"
203
                          StrokeThickness="{TemplateBinding LineSize}"
204
						  Fill="{TemplateBinding FillColor}"
205
                          Data="{TemplateBinding PathData}"
206 206
                          RenderTransformOrigin="0.5,0.5">
207 207
                        <Path.RenderTransform>
208 208
                            <TransformGroup>
209 209
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
210
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
211
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
210
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
211
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
212 212
                            </TransformGroup>
213 213
                        </Path.RenderTransform>
214 214
                    </Path>
......
222 222
            <Setter.Value>
223 223
                <ControlTemplate TargetType="polygon:CloudControl">
224 224
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
225
                        <Path x:Name="PART_CloudPath" 
226
                              Stroke="{TemplateBinding StrokeColor}" 
227
                              Fill="{TemplateBinding FillColor}"  
228
                              StrokeThickness="{TemplateBinding LineSize}" 
225
                        <Path x:Name="PART_CloudPath"
226
                              Stroke="{TemplateBinding StrokeColor}"
227
                              Fill="{TemplateBinding FillColor}"
228
                              StrokeThickness="{TemplateBinding LineSize}"
229 229
                              Data="{TemplateBinding PathData}"
230
                              RenderTransformOrigin="0,0"/>
231
                        <Path x:Name="PART_CloudSubPath" 
232
                              Stroke="Transparent" 
233
                              Fill="{TemplateBinding FillColor}"  
234
                              StrokeThickness="{TemplateBinding LineSize}" 
230
                              RenderTransformOrigin="0,0" />
231
                        <Path x:Name="PART_CloudSubPath"
232
                              Stroke="Transparent"
233
                              Fill="{TemplateBinding FillColor}"
234
                              StrokeThickness="{TemplateBinding LineSize}"
235 235
                              Data="{TemplateBinding PathSubData}"
236
                              RenderTransformOrigin="0,0"/>
236
                              RenderTransformOrigin="0,0" />
237 237
                    </Canvas>
238 238
                </ControlTemplate>
239 239
            </Setter.Value>
......
244 244
        <Setter Property="Template">
245 245
            <Setter.Value>
246 246
                <ControlTemplate TargetType="Shape:RectCloudControl">
247
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
248
                        <Path x:Name="PART_ArcPath" 
249
                              Stroke="{TemplateBinding StrokeColor}" 
250
                              Fill="{TemplateBinding FillColor}"  
251
                              StrokeThickness="{TemplateBinding LineSize}" 
252
                              Data="{TemplateBinding PathData}" 
253
                              RenderTransformOrigin="0,0"/>
254
                        <Path x:Name="PART_BodyPath" 
255
                              Stroke="Transparent" 
256
                              Fill="{TemplateBinding FillColor}"  
257
                              StrokeThickness="{TemplateBinding LineSize}" 
247
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
248
                        <Path x:Name="PART_ArcPath"
249
                              Stroke="{TemplateBinding StrokeColor}"
250
                              Fill="{TemplateBinding FillColor}"
251
                              StrokeThickness="{TemplateBinding LineSize}"
252
                              Data="{TemplateBinding PathData}"
253
                              RenderTransformOrigin="0,0" />
254
                        <Path x:Name="PART_BodyPath"
255
                              Stroke="Transparent"
256
                              Fill="{TemplateBinding FillColor}"
257
                              StrokeThickness="{TemplateBinding LineSize}"
258 258
                              Data="{TemplateBinding PathSubData}"
259
                              RenderTransformOrigin="0,0"/>
259
                              RenderTransformOrigin="0,0" />
260 260
                    </Canvas>
261 261
                </ControlTemplate>
262 262
            </Setter.Value>
......
267 267
        <Setter Property="Template">
268 268
            <Setter.Value>
269 269
                <ControlTemplate TargetType="{x:Type polygon:PolygonControl}">
270
                    <Path x:Name="PART_PolyPath" 
270
                    <Path x:Name="PART_PolyPath"
271 271
                          Stroke="{TemplateBinding StrokeColor}"
272 272
                          StrokeThickness="{TemplateBinding LineSize}"
273 273
                          Data="{TemplateBinding PathData}"
274
                          RenderTransformOrigin="0.5,0.5" >
274
                          RenderTransformOrigin="0.5,0.5">
275 275
                    </Path>
276 276
                </ControlTemplate>
277 277
            </Setter.Value>
......
282 282
        <Setter Property="Template">
283 283
            <Setter.Value>
284 284
                <ControlTemplate TargetType="{x:Type polygon:InkControl}">
285
                    <Path x:Name="PART_PolyPath" 
285
                    <Path x:Name="PART_PolyPath"
286 286
                          Stroke="{TemplateBinding StrokeColor}"
287 287
                          StrokeThickness="{TemplateBinding LineSize}"
288 288
                          Data="{TemplateBinding PathData}"
289
                          RenderTransformOrigin="0.5,0.5" >
289
                          RenderTransformOrigin="0.5,0.5">
290 290
                    </Path>
291 291
                </ControlTemplate>
292 292
            </Setter.Value>
......
298 298
        <Setter Property="Template">
299 299
            <Setter.Value>
300 300
                <!--<ControlTemplate TargetType="Text:TextControl">-->
301
                    <ControlTemplate TargetType="{x:Type Text:TextControl}">
301
                <ControlTemplate TargetType="{x:Type Text:TextControl}">
302 302
                    <Canvas Background="Red" x:Name="PART_TextControlCanvas">
303 303
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" x:Name="PART_Grid" RenderTransformOrigin="0,0" Canvas.ZIndex="0">
304 304
                            <Grid.RenderTransform>
305 305
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
306 306
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
307
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
307
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
308 308

  
309 309
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
310 310
                                                    CenterX="{TemplateBinding CenterX}"
......
314 314
                        </Grid>
315 315
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
316 316
                            <Grid.Background>
317
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
317
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
318 318
                            </Grid.Background>
319 319
                            <Grid.RenderTransform>
320 320
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
321 321
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
322
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
322
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
323 323
                            </Grid.RenderTransform>
324 324
                            <Border x:Name="PART_Border" Background="Transparent" IsHitTestVisible="False" Margin="2,5,3,5">
325

  
326 325
                            </Border>
327 326
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
328

  
329 327
                            </Border>
330 328

  
331 329
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding StrokeColor}" Margin="-30,-30" IsHitTestVisible="False"
332 330
								FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
333 331
                                FontSize="30" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
334
                                RenderTransformOrigin="0, 0" >
332
                                RenderTransformOrigin="0, 0">
335 333
                            </TextBlock>
336 334
                            <Border Background="Transparent">
337 335

  
338 336
                                <TextBlock x:Name="PART_TextBlock" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"
339 337
								    FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
340 338
                                    FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap" Padding="2" Margin="2,0,0,0"
341
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
342
                                    RenderTransformOrigin="0, 0" >
339
                                    Visibility="{Binding TextBlockVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
340
                                    RenderTransformOrigin="0, 0">
343 341
                                </TextBlock>
344 342
                            </Border>
345 343

  
346

  
347 344
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding StrokeColor}"  IsTabStop="False" AcceptsTab="False"
348
                                        Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"  
349
								        TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True" 
350
                                        FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
351
                                        >
345
                                        Visibility="{Binding TextBoxVisibility, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="2"
346
								        TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" AcceptsReturn="True"
347
                                        FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}">
352 348
                            </TextBox>
353 349

  
354

  
355 350
                            <Canvas>
356
                                <Border x:Name="Caret" 
351
                                <Border x:Name="Caret"
357 352
                                        Visibility="Collapsed"
358
                                        Canvas.Left="0" 
359
                                        Canvas.Top="0" 
360
                                        Width="3" 
361
                                        Height="33" 
353
                                        Canvas.Left="0"
354
                                        Canvas.Top="0"
355
                                        Width="3"
356
                                        Height="33"
362 357
                                        Background="Red">
363 358
                                    <Border.Triggers>
364 359
                                        <EventTrigger RoutedEvent="Border.Loaded">
365 360
                                            <BeginStoryboard>
366
                                                <Storyboard  x:Name="CaretStoryBoard" 
361
                                                <Storyboard  x:Name="CaretStoryBoard"
367 362
                                                                 RepeatBehavior="Forever">
368
                                                    <ColorAnimationUsingKeyFrames 
363
                                                    <ColorAnimationUsingKeyFrames
369 364
                                                                Storyboard.TargetProperty="Background.Color"
370 365
                                                                Duration="0:0:0:1"
371 366
                                                                FillBehavior="HoldEnd">
372
                                                        <ColorAnimationUsingKeyFrames.KeyFrames >
367
                                                        <ColorAnimationUsingKeyFrames.KeyFrames>
373 368
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" />
374
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black"/>
369
                                                            <DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black" />
375 370
                                                        </ColorAnimationUsingKeyFrames.KeyFrames>
376 371
                                                    </ColorAnimationUsingKeyFrames>
377 372
                                                </Storyboard>
......
382 377
                            </Canvas>
383 378
                        </Grid>
384 379

  
385
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False"  
380
                        <Path Stroke="Transparent" Data="{TemplateBinding PathDataInner}" RenderTransformOrigin="0,0" Canvas.ZIndex="0" IsHitTestVisible="False"
386 381
                              Fill="{TemplateBinding BackInnerColor}">
387 382
                            <Path.RenderTransform>
388 383
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
......
391 386
                                </RotateTransform>-->
392 387
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
393 388
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
394
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
395
                                                 
396
                                                 />
389
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
397 390
                            </Path.RenderTransform>
398 391
                        </Path>
399 392

  
400 393
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding StrokeColor}"  Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
401 394
                            <Path.Fill>
402
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6"/>
395
                                <SolidColorBrush Color="{TemplateBinding BackInnerColor}" Opacity="0.6" />
403 396
                            </Path.Fill>
404 397
                            <Path.RenderTransform>
405 398
                                <!--<RotateTransform Angle="{TemplateBinding Angle}"
......
408 401
                                </RotateTransform>-->
409 402
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
410 403
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
411
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
412
                                                 
413
                                                 />
404
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
414 405
                            </Path.RenderTransform>
415 406
                        </Path>
416

  
417

  
418 407
                    </Canvas>
419 408
                </ControlTemplate>
420 409
            </Setter.Value>
......
430 419
                            <Grid.RenderTransform>
431 420
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
432 421
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
433
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
422
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
434 423
                            </Grid.RenderTransform>
435 424
                        </Grid>
436 425
                        <Grid VerticalAlignment="Stretch"  HorizontalAlignment="Stretch" RenderTransformOrigin="0,0" Canvas.ZIndex="2">
437 426
                            <Grid.Background>
438
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001"/>
427
                                <SolidColorBrush Color="{TemplateBinding BackColor}" Opacity="0.001" />
439 428
                            </Grid.Background>
440 429
                            <Grid.RenderTransform>
441 430
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
442 431
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
443
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
432
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
444 433
                            </Grid.RenderTransform>
445 434
                            <Border  Background="{TemplateBinding BackColor}" IsHitTestVisible="False" Margin="2,5,3,5">
446

  
447 435
                            </Border>
448 436
                            <TextBlock x:Name="PART_TextPrefix" Text="" Foreground="{TemplateBinding FontColor}" Margin="-30,-30" IsHitTestVisible="False"
449 437
								FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
......
454 442
								FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"  TextDecorations="{TemplateBinding UnderLine}"
455 443
                                FontSize="{TemplateBinding TextSize}" FontFamily="{TemplateBinding TextFamily}" TextWrapping="Wrap"
456 444
                                RenderTransformOrigin="0, 0"
457
                                Visibility="{TemplateBinding TextBlockVisibility}" >
445
                                Visibility="{TemplateBinding TextBlockVisibility}">
458 446
                            </TextBlock>
459
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}" 
460
								     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}" 
447
                            <TextBox x:Name="PART_TextBox" Text="{TemplateBinding Text}" Foreground="{TemplateBinding FontColor}"
448
								     AcceptsReturn="True" TextWrapping="Wrap"  Background="{TemplateBinding BackColor}" FontSize="{TemplateBinding TextSize}"
461 449
                                     FontFamily="{TemplateBinding TextFamily}" FontStyle="{TemplateBinding TextStyle}" FontWeight="{TemplateBinding TextWeight}"
462
                                     Visibility="{TemplateBinding TextBoxVisibility}" >
450
                                     Visibility="{TemplateBinding TextBoxVisibility}">
463 451
                            </TextBox>
464 452
                        </Grid>
465 453

  
466

  
467 454
                        <Path x:Name="PART_TextPath" Stroke="{TemplateBinding FontColor}" Fill="{TemplateBinding BackColor}"
468 455
						          StrokeThickness="3" Data="{TemplateBinding PathData}" RenderTransformOrigin="0,0" Canvas.ZIndex="1">
469 456
                            <Path.RenderTransform>
470 457
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
471 458
                                             CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
472
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"/>
459
                                             CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" />
473 460
                            </Path.RenderTransform>
474 461
                        </Path>
475 462
                    </Canvas>
......
482 469
        <Setter Property="Template">
483 470
            <Setter.Value>
484 471
                <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}">
485
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
486

  
472
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
487 473

  
488
                        <!--<Path x:Name="PART_ArrowPath" 
489
                              Stroke="{TemplateBinding StrokeColor}" 
490
						      StrokeThickness="{TemplateBinding LineSize}" 
491
                              Data="{TemplateBinding PathData}" 
474
                        <!--<Path x:Name="PART_ArrowPath"
475
                              Stroke="{TemplateBinding StrokeColor}"
476
						      StrokeThickness="{TemplateBinding LineSize}"
477
                              Data="{TemplateBinding PathData}"
492 478
                              Fill="{TemplateBinding StrokeColor}">
493 479
                        </Path>-->
494 480

  
495 481
                        <Path x:Name="PART_ArrowPath"  Panel.ZIndex="0"
496 482
                                  Stroke="{TemplateBinding StrokeColor}"
497
						          StrokeThickness="{TemplateBinding LineSize}" 
483
						          StrokeThickness="{TemplateBinding LineSize}"
498 484
                                  Data="{TemplateBinding PathData}"
499
                                  Fill="{TemplateBinding StrokeColor}"/>
485
                                  Fill="{TemplateBinding StrokeColor}" />
500 486

  
501
                        <!--<Path x:Name="PART_ArrowSubPath" 
487
                        <!--<Path x:Name="PART_ArrowSubPath"
502 488
                                      Stroke="{TemplateBinding StrokeColor}"
503
						              StrokeThickness="{TemplateBinding LineSize}"  
504
                                      Fill="{TemplateBinding SubPathFill}" 
489
						              StrokeThickness="{TemplateBinding LineSize}"
490
                                      Fill="{TemplateBinding SubPathFill}"
505 491
                                      Data="{TemplateBinding SubPathData}"
506
                                      RenderTransformOrigin="0,0"/>-->
492
                                      RenderTransformOrigin="0,0" />-->
507 493

  
508 494
                        <Path x:Name="PART_ArrowSubPath"  Panel.ZIndex="2"
509 495
                                      Stroke="{TemplateBinding StrokeColor}"
510
						              StrokeThickness="{TemplateBinding LineSize}"  
496
						              StrokeThickness="{TemplateBinding LineSize}"
511 497
                                      Fill="{TemplateBinding SubPathFill}"
512 498
                                      Data="{TemplateBinding SubPathData}"
513
                                      RenderTransformOrigin="0,0"/>
499
                                      RenderTransformOrigin="0,0" />
514 500

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

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

  
601 586
                    </Canvas>
602 587
                </ControlTemplate>
603 588
            </Setter.Value>
......
608 593
        <Setter Property="Template">
609 594
            <Setter.Value>
610 595
                <ControlTemplate TargetType="Etc:DateControl">
611
                    <Viewbox x:Name="PART_ViewBox" >
612
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}" 
596
                    <Viewbox x:Name="PART_ViewBox">
597
                        <TextBlock x:Name="PART_TextBox" Text="{TemplateBinding Text}"
613 598
                                 Foreground="{TemplateBinding FontColor}" RenderTransformOrigin="0.5,0.5">
614 599
                            <TextBlock.RenderTransform>
615 600
                                <TransformGroup>
616 601
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
617
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
618
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
602
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
603
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
619 604
                                </TransformGroup>
620 605
                            </TextBlock.RenderTransform>
621 606
                        </TextBlock>
......
633 618
                        <Image.RenderTransform>
634 619
                            <TransformGroup>
635 620
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
636
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
637
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
621
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
622
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
638 623
                            </TransformGroup>
639 624
                        </Image.RenderTransform>
640 625
                    </Image>
......
651 636
                        <Image.RenderTransform>
652 637
                            <TransformGroup>
653 638
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
654
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
655
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
639
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
640
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
656 641
                            </TransformGroup>
657 642
                        </Image.RenderTransform>
658 643
                    </Image>
......
668 653
                <ControlTemplate TargetType="Etc:SymControl">
669 654
                    <Viewbox x:Name="PART_ViewBox">
670 655
                        <Path x:Name="PART_SymPath"  Stroke="{TemplateBinding StrokeColor}"  StrokeThickness="{TemplateBinding LineSize}"
671
                          Data="{TemplateBinding PathData}" 
656
                          Data="{TemplateBinding PathData}"
672 657
                              RenderTransformOrigin="0.5,0.5">
673 658
                            <Path.RenderTransform>
674 659
                                <TransformGroup>
675 660
                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
676
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
677
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
661
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
662
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
678 663
                                </TransformGroup>
679 664
                            </Path.RenderTransform>
680 665
                        </Path>
......
692 677
                        <Viewbox.RenderTransform>
693 678
                            <TransformGroup>
694 679
                                <RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }"
695
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
696
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
680
                                                 CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
681
                                                 CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
697 682
                            </TransformGroup>
698 683
                        </Viewbox.RenderTransform>
699 684
                    </Viewbox>
......
701 686
            </Setter.Value>
702 687
        </Setter>
703 688
    </Style>
704

  
705

  
706 689
</ResourceDictionary>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)