Repository navigation
Expand file tree
/
Copy pathPieControlExample.xaml
More file actions
52 lines (52 loc) · 2.79 KB
/
Copy pathPieControlExample.xaml
File metadata and controls
52 lines (52 loc) · 2.79 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
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.PieControlExample"
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}">
<StackPanel HorizontalAlignment="Center">
<WrapPanel Margin="10">
<controls:PieControl ArcThickness="1" PieSegmentModels="{Binding PieSegmentModels, RelativeSource={RelativeSource AncestorType=local:PieControlExample}}" />
<controls:PieControl
Margin="4,0"
ArcThickness="{Binding ElementName=PRAT_Slider, Path=Value}"
PieSegmentModels="{Binding PieSegmentModels, RelativeSource={RelativeSource AncestorType=local:PieControlExample}}" />
<controls:PieControl ArcThickness="0.65" PieSegmentModels="{Binding PieSegmentModels, RelativeSource={RelativeSource AncestorType=local:PieControlExample}}" />
</WrapPanel>
<Slider
x:Name="PRAT_Slider"
Width="200"
Margin="10"
Maximum="0.9"
Minimum="0.1" />
<Button
Width="200"
VerticalAlignment="Bottom"
Click="Button_Click"
Content="更新"
Style="{StaticResource WD.PrimaryButton}" />
</StackPanel>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/PieControlExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/PieControlExample.xaml.cs" CodeType="CSharp" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/PieControl/PieControl.xaml"
CodeType="Xaml"
Haader="PieControl" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/PieControl/PieControl.cs"
CodeType="CSharp"
Haader="PieControl.cs" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/PieControl/PieSegmentModel.cs"
CodeType="CSharp"
Haader="PieSegmentModel.cs" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>