개정판 fa48eb85
issue #1000 컨트롤 angle 수정/ Textcontrol 텍스트 선택 수정
Change-Id: I56b5c6295adb7409774045545f30f16a920be96c
MarkupToPDF/Themes/generic.xaml | ||
---|---|---|
492 | 492 |
Fill="{TemplateBinding StrokeColor}"> |
493 | 493 |
</Path>--> |
494 | 494 |
|
495 |
<Path x:Name="PART_ArrowPath" Canvas.ZIndex="0"
|
|
495 |
<Path x:Name="PART_ArrowPath" Panel.ZIndex="0"
|
|
496 | 496 |
Stroke="{TemplateBinding StrokeColor}" |
497 | 497 |
StrokeThickness="{TemplateBinding LineSize}" |
498 | 498 |
Data="{TemplateBinding PathData}" |
... | ... | |
505 | 505 |
Data="{TemplateBinding SubPathData}" |
506 | 506 |
RenderTransformOrigin="0,0"/>--> |
507 | 507 |
|
508 |
<Path x:Name="PART_ArrowSubPath" Canvas.ZIndex="2"
|
|
508 |
<Path x:Name="PART_ArrowSubPath" Panel.ZIndex="2"
|
|
509 | 509 |
Stroke="{TemplateBinding StrokeColor}" |
510 | 510 |
StrokeThickness="{TemplateBinding LineSize}" |
511 |
Fill="{TemplateBinding SubPathFill }"
|
|
511 |
Fill="{TemplateBinding SubPathFill}" |
|
512 | 512 |
Data="{TemplateBinding SubPathData}" |
513 | 513 |
RenderTransformOrigin="0,0"/> |
514 | 514 |
|
515 |
<Path |
|
516 |
Stroke="Transparent" |
|
517 |
Fill="{TemplateBinding BackInnerColor }" Canvas.ZIndex="1"
|
|
515 |
<Path x:Name="PART_TextBoxBackBorder"
|
|
516 |
Stroke="Transparent"
|
|
517 |
Fill="{TemplateBinding BackInnerColor}" Panel.ZIndex="1"
|
|
518 | 518 |
Data="{TemplateBinding PathDataInner}" |
519 | 519 |
RenderTransformOrigin="0,0"/> |
520 |
|
|
521 |
|
|
522 | 520 |
<!--<TextBlock x:Name="PART_ArrowTextBlock" |
523 | 521 |
Margin="0.5" |
524 | 522 |
Background="{TemplateBinding TextBoxBackground}" |
... | ... | |
539 | 537 |
</TextBlock.RenderTransform> |
540 | 538 |
</TextBlock>--> |
541 | 539 |
|
542 |
|
|
543 |
<TextBox x:Name="PART_ArrowTextBox" |
|
544 |
Margin="0.5" Canvas.ZIndex="4" |
|
540 |
<Canvas Panel.ZIndex="4"> |
|
541 |
<Border x:Name="Caret" |
|
542 |
Visibility="Collapsed" |
|
543 |
Canvas.Left="0" |
|
544 |
Canvas.Top="0" |
|
545 |
Width="5" |
|
546 |
RenderTransformOrigin="0.5,0.5" |
|
547 |
Height="{Binding ActualHeight,ElementName=CaretHeightTextBlock}"> |
|
548 |
<Border.Background> |
|
549 |
<SolidColorBrush Color="#B2930909"/> |
|
550 |
</Border.Background> |
|
551 |
<TextBlock Text="A" x:Name="CaretHeightTextBlock" Foreground="Transparent" FontSize="{TemplateBinding TextSize}" |
|
552 |
FontFamily="{TemplateBinding TextFamily}" TextWrapping="NoWrap" |
|
553 |
FontStyle="{TemplateBinding TextStyle}"/> |
|
554 |
<!--<Border.RenderTransform> |
|
555 |
<RotateTransform Angle="{Binding VisualPageAngle, Converter={StaticResource ValueBindingTestConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
|
556 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
|
557 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
|
558 |
</Border.RenderTransform>--> |
|
559 |
<Border.Triggers> |
|
560 |
<EventTrigger RoutedEvent="FrameworkElement.Loaded"> |
|
561 |
<BeginStoryboard> |
|
562 |
<Storyboard x:Name="CaretStoryBoard" |
|
563 |
RepeatBehavior="Forever"> |
|
564 |
<ColorAnimationUsingKeyFrames |
|
565 |
Storyboard.TargetProperty="Background.Color" |
|
566 |
Duration="0:0:0:1" |
|
567 |
FillBehavior="HoldEnd"> |
|
568 |
<DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" /> |
|
569 |
<DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="#B2930909"/> |
|
570 |
</ColorAnimationUsingKeyFrames> |
|
571 |
</Storyboard> |
|
572 |
</BeginStoryboard> |
|
573 |
</EventTrigger> |
|
574 |
</Border.Triggers> |
|
575 |
</Border> |
|
576 |
</Canvas> |
|
577 |
<TextBox x:Name="PART_ArrowTextBox" |
|
578 |
Margin="0.5" Panel.ZIndex="5" |
|
545 | 579 |
Background="{TemplateBinding TextBoxBackground}" |
546 | 580 |
BorderThickness="{TemplateBinding BorderSize}" |
547 | 581 |
BorderBrush="{TemplateBinding StrokeColor}" |
... | ... | |
553 | 587 |
AcceptsReturn="True" |
554 | 588 |
Foreground="{TemplateBinding StrokeColor}" |
555 | 589 |
HorizontalAlignment="Stretch" |
556 |
TextWrapping="Wrap" |
|
590 |
TextWrapping="Wrap" |
|
591 |
CaretBrush="DarkBlue" |
|
557 | 592 |
Text="{TemplateBinding ArrowText}" |
558 | 593 |
RenderTransformOrigin="0.5,0.5"> |
559 |
<TextBox.RenderTransform>
|
|
560 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
594 |
<!--<TextBox.RenderTransform>
|
|
595 |
<RotateTransform Angle="{Binding VisualPageAngle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
561 | 596 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
562 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"> |
|
563 |
</RotateTransform> |
|
564 |
</TextBox.RenderTransform> |
|
565 |
</TextBox> |
|
597 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/> |
|
598 |
</TextBox.RenderTransform>--> |
|
599 |
</TextBox> |
|
566 | 600 |
|
567 |
<Canvas Canvas.ZIndex="5"> |
|
568 |
|
|
569 |
<Border x:Name="Caret" |
|
570 |
Visibility="Collapsed" |
|
571 |
Canvas.Left="0" |
|
572 |
Canvas.Top="0" |
|
573 |
Width="3" |
|
574 |
Height="33" |
|
575 |
Background="Red" |
|
576 |
|
|
577 |
RenderTransformOrigin="0.5,0.5"> |
|
578 |
<Border.RenderTransform> |
|
579 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
|
580 |
CenterX="{Binding CenterX, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
|
581 |
CenterY="{Binding CenterY, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"> |
|
582 |
</RotateTransform> |
|
583 |
</Border.RenderTransform> |
|
584 |
<Border.Triggers> |
|
585 |
<EventTrigger RoutedEvent="Border.Loaded"> |
|
586 |
<BeginStoryboard> |
|
587 |
<Storyboard x:Name="CaretStoryBoard" |
|
588 |
RepeatBehavior="Forever"> |
|
589 |
<ColorAnimationUsingKeyFrames |
|
590 |
Storyboard.TargetProperty="Background.Color" |
|
591 |
Duration="0:0:0:1" |
|
592 |
FillBehavior="HoldEnd"> |
|
593 |
<ColorAnimationUsingKeyFrames.KeyFrames > |
|
594 |
<DiscreteColorKeyFrame KeyTime="0:0:0.750" Value="Transparent" /> |
|
595 |
<DiscreteColorKeyFrame KeyTime="0:0:0.000" Value="Black"/> |
|
596 |
</ColorAnimationUsingKeyFrames.KeyFrames> |
|
597 |
</ColorAnimationUsingKeyFrames> |
|
598 |
</Storyboard> |
|
599 |
</BeginStoryboard> |
|
600 |
</EventTrigger> |
|
601 |
</Border.Triggers> |
|
602 |
</Border> |
|
603 |
</Canvas> |
|
604 |
|
|
605 |
|
|
606 | 601 |
</Canvas> |
607 | 602 |
</ControlTemplate> |
608 | 603 |
</Setter.Value> |
내보내기 Unified diff