markus / MarkupTest / MainWindow.xaml @ da7ab6ad
이력 | 보기 | 이력해설 | 다운로드 (7.88 KB)
1 | b35682c3 | taeseongkim | <Window x:Class="MarkupTest.MainWindow" |
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
6 | xmlns:local="clr-namespace:MarkupTest" |
||
7 | mc:Ignorable="d" |
||
8 | xmlns:Text="clr-namespace:MarkupToPDF.Controls.Text;assembly=MarkupToPDF" |
||
9 | Title="MainWindow" Height="450" Width="800"> |
||
10 | <Canvas>
|
||
11 | da7ab6ad | taeseongkim | <Text:ArrowTextControl Width="214" Height="160" Canvas.Top="-2" Canvas.Left="44"> |
12 | b35682c3 | taeseongkim | <Text:ArrowTextControl.Style>
|
13 | <Style TargetType="{x:Type Text:ArrowTextControl}"> |
||
14 | <Setter Property="Template"> |
||
15 | <Setter.Value>
|
||
16 | <ControlTemplate TargetType="{x:Type Text:ArrowTextControl}"> |
||
17 | <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
||
18 | <Path x:Name="PART_ArrowPath" Canvas.ZIndex="0" |
||
19 | Stroke="{TemplateBinding StrokeColor}" |
||
20 | StrokeThickness="{TemplateBinding LineSize}" |
||
21 | Data="{TemplateBinding PathData}" |
||
22 | Fill="{TemplateBinding StrokeColor}"/> |
||
23 | <Path x:Name="PART_ArrowSubPath" Canvas.ZIndex="2" |
||
24 | Stroke="{TemplateBinding StrokeColor}" |
||
25 | StrokeThickness="{TemplateBinding LineSize}" |
||
26 | Fill="{TemplateBinding SubPathFill }" |
||
27 | Data="{TemplateBinding SubPathData}" |
||
28 | RenderTransformOrigin="0,0"/> |
||
29 | <Path
|
||
30 | Stroke="Transparent" |
||
31 | Fill="{TemplateBinding BackInnerColor }" Canvas.ZIndex="1" |
||
32 | Data="m1.99999,-0.54687c0,0 3.10617,1.97499 21.28572,15.31915c30.03604,22.04707 66.51786,53.61702 101.10715,81.70213l21.28572,17.87234l5.32143,5.10638" |
||
33 | RenderTransformOrigin="0,0"/> |
||
34 | da7ab6ad | taeseongkim | <TextBox x:Name="PART_ArrowTextBox" |
35 | b35682c3 | taeseongkim | Margin="0.5" Canvas.ZIndex="4" |
36 | da7ab6ad | taeseongkim | Text="test" |
37 | b35682c3 | taeseongkim | Background="{TemplateBinding TextBoxBackground}" |
38 | da7ab6ad | taeseongkim | BorderThickness="1" |
39 | BorderBrush="Green" |
||
40 | FontSize="20" |
||
41 | b35682c3 | taeseongkim | AcceptsReturn="True" |
42 | da7ab6ad | taeseongkim | Foreground="Red" |
43 | b35682c3 | taeseongkim | HorizontalAlignment="Stretch" |
44 | da7ab6ad | taeseongkim | TextWrapping="Wrap" Width="100" |
45 | b35682c3 | taeseongkim | RenderTransformOrigin="0.5,0.5"> |
46 | <TextBox.RenderTransform>
|
||
47 | <RotateTransform Angle="0" |
||
48 | da7ab6ad | taeseongkim | CenterX="0" |
49 | CenterY="0"> |
||
50 | b35682c3 | taeseongkim | </RotateTransform>
|
51 | </TextBox.RenderTransform>
|
||
52 | </TextBox>
|
||
53 | |||
54 | <Canvas Canvas.ZIndex="5"> |
||
55 | |||
56 | <Border x:Name="Caret" |
||
57 | Visibility="Collapsed" |
||
58 | Canvas.Left="0" |
||
59 | Canvas.Top="0" |
||
60 | Width="3" |
||
61 | Height="33" |
||
62 | Background="Red" |
||
63 | |||
64 | RenderTransformOrigin="0.5,0.5"> |
||
65 | <Border.RenderTransform>
|
||
66 | <RotateTransform Angle="0" |
||
67 | da7ab6ad | taeseongkim | CenterX="0" |
68 | CenterY="0"> |
||
69 | b35682c3 | taeseongkim | </RotateTransform>
|
70 | </Border.RenderTransform>
|
||
71 | </Border>
|
||
72 | </Canvas>
|
||
73 | |||
74 | |||
75 | </Canvas>
|
||
76 | </ControlTemplate>
|
||
77 | </Setter.Value>
|
||
78 | </Setter>
|
||
79 | </Style>
|
||
80 | </Text:ArrowTextControl.Style>
|
||
81 | </Text:ArrowTextControl>
|
||
82 | da7ab6ad | taeseongkim | |
83 | <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
||
84 | <Path x:Name="PART_ArrowPath" Canvas.ZIndex="0" |
||
85 | Stroke="Red" |
||
86 | StrokeThickness="1" |
||
87 | Data="" |
||
88 | Fill="Red"/> |
||
89 | <Path x:Name="PART_ArrowSubPath" Canvas.ZIndex="2" |
||
90 | Stroke="Red" |
||
91 | StrokeThickness="1" |
||
92 | Fill="Firebrick" |
||
93 | Data="" |
||
94 | RenderTransformOrigin="0,0"/> |
||
95 | <Path
|
||
96 | Stroke="Transparent" |
||
97 | Fill="Red" Canvas.ZIndex="1" |
||
98 | Data="m1.99999,-0.54687c0,0 3.10617,1.97499 21.28572,15.31915c30.03604,22.04707 66.51786,53.61702 101.10715,81.70213l21.28572,17.87234l5.32143,5.10638" |
||
99 | RenderTransformOrigin="0,0"/> |
||
100 | <TextBox x:Name="PART_ArrowTextBox" Canvas.ZIndex="4" |
||
101 | Text="test" |
||
102 | Background="MediumSpringGreen" |
||
103 | BorderThickness="1" |
||
104 | BorderBrush="Green" |
||
105 | FontSize="20" |
||
106 | AcceptsReturn="True" |
||
107 | Foreground="Red" |
||
108 | HorizontalAlignment="Stretch" |
||
109 | TextWrapping="Wrap" Width="100" |
||
110 | RenderTransformOrigin="0.5,0.5" Canvas.Left="150" Canvas.Top="116"> |
||
111 | <TextBox.RenderTransform>
|
||
112 | <RotateTransform Angle="0" |
||
113 | CenterX="0" |
||
114 | CenterY="0"> |
||
115 | </RotateTransform>
|
||
116 | </TextBox.RenderTransform>
|
||
117 | </TextBox>
|
||
118 | |||
119 | <Canvas Canvas.ZIndex="5"> |
||
120 | <Border x:Name="Caret" |
||
121 | Visibility="Visible" |
||
122 | Canvas.Left="0" |
||
123 | Canvas.Top="0" |
||
124 | Width="3" |
||
125 | Height="33" |
||
126 | Background="Red" |
||
127 | |||
128 | RenderTransformOrigin="0.5,0.5"> |
||
129 | <Border.RenderTransform>
|
||
130 | <RotateTransform Angle="0" |
||
131 | CenterX="0" |
||
132 | CenterY="0"> |
||
133 | </RotateTransform>
|
||
134 | </Border.RenderTransform>
|
||
135 | </Border>
|
||
136 | </Canvas>
|
||
137 | </Canvas>
|
||
138 | b35682c3 | taeseongkim | </Canvas>
|
139 | </Window> |