|
1 |
| -<UserControl x:Class="WPFDevelopers.Samples.ExampleViews.ThumbDragAndAngleExample" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
| - xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" |
7 |
| - xmlns:wpfdev="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
8 |
| - xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" |
9 |
| - mc:Ignorable="d" |
10 |
| - d:DesignHeight="450" d:DesignWidth="800"> |
| 1 | +<UserControl |
| 2 | + x:Class="WPFDevelopers.Samples.ExampleViews.ThumbDragAndAngleExample" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + d:DesignHeight="450" |
| 10 | + d:DesignWidth="800" |
| 11 | + mc:Ignorable="d"> |
11 | 12 | <controls:CodeViewer>
|
12 |
| - <Canvas x:Name="_CanvasMain" Background="ForestGreen"> |
| 13 | + <Canvas x:Name="_CanvasMain" Background="ForestGreen"> |
13 | 14 |
|
14 |
| - <TextBlock Text="QQ群:340500857" Foreground="White" FontSize="20" |
15 |
| - Canvas.Left="296" |
16 |
| - Canvas.Top="48" /> |
17 |
| - <TextBlock Text="QQ群:458041663" Foreground="White" FontSize="20" |
18 |
| - Canvas.Left="292" |
19 |
| - Canvas.Top="110" /> |
20 |
| - <Border BorderThickness="2" BorderBrush="White" |
21 |
| - x:Name="_border" Width="280" |
22 |
| - Height="100" |
23 |
| - Canvas.Left="305" |
24 |
| - Canvas.Top="205" |
25 |
| - RenderTransformOrigin="0.5,0.5"> |
26 |
| - <Grid> |
27 |
| - <wpfdev:ThumbAngle DataContext="{Binding ElementName=_border}"/> |
28 |
| - <TextBlock Text="WPF开发者" Foreground="White" FontSize="40" |
29 |
| - HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 15 | + <TextBlock |
| 16 | + Canvas.Left="296" |
| 17 | + Canvas.Top="48" |
| 18 | + FontSize="20" |
| 19 | + Foreground="White" |
| 20 | + Text="QQ群:340500857" /> |
| 21 | + <TextBlock |
| 22 | + Canvas.Left="292" |
| 23 | + Canvas.Top="110" |
| 24 | + FontSize="20" |
| 25 | + Foreground="White" |
| 26 | + Text="QQ群:458041663" /> |
| 27 | + <Border |
| 28 | + x:Name="_border" |
| 29 | + Canvas.Left="305" |
| 30 | + Canvas.Top="205" |
| 31 | + Width="280" |
| 32 | + Height="100" |
| 33 | + BorderBrush="White" |
| 34 | + BorderThickness="2" |
| 35 | + RenderTransformOrigin="0.5,0.5"> |
| 36 | + <Grid> |
| 37 | + <controls:ThumbAngle DataContext="{Binding ElementName=_border}" /> |
| 38 | + <TextBlock |
| 39 | + HorizontalAlignment="Center" |
| 40 | + VerticalAlignment="Center" |
| 41 | + FontSize="40" |
| 42 | + Foreground="White" |
| 43 | + Text="WPF开发者" /> |
30 | 44 |
|
31 |
| - </Grid> |
32 |
| - </Border> |
33 |
| - <TextBlock Text="微信公众号:WPFDevelopers" Foreground="White" FontSize="24" |
34 |
| - HorizontalAlignment="Center" VerticalAlignment="Center" |
35 |
| - Canvas.Left="295" |
36 |
| - Canvas.Top="368" /> |
37 |
| - </Canvas> |
| 45 | + </Grid> |
| 46 | + </Border> |
| 47 | + <TextBlock |
| 48 | + Canvas.Left="295" |
| 49 | + Canvas.Top="368" |
| 50 | + HorizontalAlignment="Center" |
| 51 | + VerticalAlignment="Center" |
| 52 | + FontSize="24" |
| 53 | + Foreground="White" |
| 54 | + Text="微信公众号:WPFDevelopers" /> |
| 55 | + </Canvas> |
38 | 56 | <controls:CodeViewer.SourceCodes>
|
39 |
| - <controls:SourceCodeModel |
40 |
| - CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ThumbDragAndAngleExample.xaml" |
41 |
| - CodeType="Xaml"/> |
42 |
| - <controls:SourceCodeModel |
43 |
| - CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ThumbDragAndAngleExample.xaml.cs" |
44 |
| - CodeType="CSharp"/> |
| 57 | + <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ThumbDragAndAngleExample.xaml" CodeType="Xaml" /> |
| 58 | + <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ThumbDragAndAngleExample.xaml.cs" CodeType="CSharp" /> |
| 59 | + <controls:SourceCodeModel |
| 60 | + CodeSource="/WPFDevelopers.SamplesCode;component/Controls/ElementAdorner/ElementAdorner.cs" |
| 61 | + CodeType="CSharp" |
| 62 | + Haader="ElementAdorner" /> |
| 63 | + <controls:SourceCodeModel |
| 64 | + CodeSource="/WPFDevelopers.SamplesCode;component/Controls/ElementAdorner/ThumbAngle.cs" |
| 65 | + CodeType="CSharp" |
| 66 | + Haader="ThumbAngle" /> |
45 | 67 | </controls:CodeViewer.SourceCodes>
|
46 | 68 | </controls:CodeViewer>
|
47 | 69 | </UserControl>
|
0 commit comments