Repository navigation
Expand file tree
/
Copy pathTransformLayoutExample.xaml
More file actions
74 lines (74 loc) · 3.39 KB
/
Copy pathTransformLayoutExample.xaml
File metadata and controls
74 lines (74 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.TransformLayoutExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<controls:CodeViewer Header="{Binding NavigateMenuItem.Name}">
<Canvas x:Name="CanvasMain" Background="ForestGreen">
<TextBlock
Canvas.Left="296"
Canvas.Top="48"
FontSize="20"
Foreground="White"
Text="QQ群:340500857" />
<TextBlock
Canvas.Left="292"
Canvas.Top="110"
FontSize="20"
Foreground="White"
Text="QQ群:458041663" />
<controls:TransformLayout
x:Name="MyTransformLayout"
Canvas.Left="305"
Canvas.Top="205"
Width="280"
Height="100">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="40"
Foreground="White">
<Run>WPF开发者</Run>
<Run Text="{Binding ElementName=MyTransformLayout, Path=Angle, StringFormat=0.00}" />
</TextBlock>
</controls:TransformLayout>
<controls:TransformLayout
Canvas.Left="100"
Canvas.Top="200"
Width="50"
Height="50">
<Image Source="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Chat/UserImages/yanjinhua.png" />
</controls:TransformLayout>
<TextBlock
Canvas.Left="295"
Canvas.Top="368"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="24"
Foreground="White"
Text="微信公众号:WPFDevelopers" />
</Canvas>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/TransformLayoutExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/TransformLayoutExample.xaml.cs" CodeType="CSharp" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/TransformLayout/ElementAdorner.cs"
CodeType="CSharp"
Haader="ElementAdorner" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/TransformLayout/TransformLayout.cs"
CodeType="CSharp"
Haader="TransformLayout" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/TransformLayout/TransformLayout.xaml"
CodeType="Xaml"
Haader="TransformLayout.xaml" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>