Repository navigation
Expand file tree
/
Copy pathCircleProgressBarExample.xaml
More file actions
61 lines (60 loc) · 2.66 KB
/
Copy pathCircleProgressBarExample.xaml
File metadata and controls
61 lines (60 loc) · 2.66 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
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.CircleProgressBarExample"
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"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<controls:CodeViewer Header="{Binding NavigateMenuItem.Name}">
<UniformGrid>
<wd:CircleProgressBar
Width="80"
Height="80"
Background="#21BA9D"
BorderBrush="LightGray"
BrushStrokeThickness="2"
StrokeThickness="5"
Value="{Binding ElementName=CircleSlider, Path=Value}" />
<wd:CircleProgressBar
Background="#E14D5F"
BorderBrush="#42ABAC"
BrushStrokeThickness="4"
IsRound="True"
StrokeThickness="7"
Value="{Binding ElementName=CircleSlider, Path=Value}" />
<wd:CircleProgressBar
Width="50"
Height="50"
Background="#1FA7FC"
BorderBrush="#D6D6D6"
BrushStrokeThickness="10"
Foreground="Black"
IsRound="True"
StrokeThickness="10"
Value="{Binding ElementName=CircleSlider, Path=Value}" />
<wd:CircleProgressBar
Width="100"
Height="100"
BrushStrokeThickness="10"
IsRound="True"
Value="{Binding ElementName=CircleSlider, Path=Value}" />
<wd:CircleProgressBar Value="{Binding ElementName=CircleSlider, Path=Value}" />
<Slider
x:Name="CircleSlider"
VerticalAlignment="Center"
IsSnapToTickEnabled="True"
Maximum="100"
Minimum="0"
Value="10" />
</UniformGrid>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/CircleProgressBarExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/CircleProgressBarExample.xaml.cs" CodeType="CSharp" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>