-
Notifications
You must be signed in to change notification settings - Fork 201
/
Copy pathCircularSegment.xaml
60 lines (54 loc) · 2.93 KB
/
CircularSegment.xaml
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
<?xml version="1.0" encoding="UTF-8"?>
<core:SampleView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:core="clr-namespace:SampleBrowser.Core;assembly=SampleBrowser.Core"
xmlns:progressBar="clr-namespace:Syncfusion.XForms.ProgressBar;assembly=Syncfusion.SfProgressBar.XForms"
x:Class="SampleBrowser.SfProgressBar.CircularSegment">
<core:SampleView.Content>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label Text="Segment"
Grid.Column="0" Grid.ColumnSpan="3"
HorizontalOptions="Start" VerticalOptions="Start"
Margin="10,0,0,0">
<Label.FontSize>
<OnPlatform x:TypeArguments="x:Double" iOS="11"/>
</Label.FontSize>
</Label>
<!--Circular progress bar with segment-->
<progressBar:SfCircularProgressBar x:Name="SegmentedCircularProgressBar"
Grid.Column="0"
Margin="0,10,0,0"
Progress="75"
ShowProgressValue="False"
SegmentCount="4"
ValueChanged="SegmentedCircularProgressBar_ValueChanged"
>
</progressBar:SfCircularProgressBar>
<!--Circular progress bar with segment-->
<progressBar:SfCircularProgressBar x:Name="SegmentedPaddingCircularProgressBar"
Grid.Column="1"
Margin="0,10,0,0"
Progress="75"
ShowProgressValue="False"
TrackInnerRadius="0.6"
IndicatorInnerRadius="0.65"
IndicatorOuterRadius="0.7"
SegmentCount="4"
ValueChanged="SegmentedPaddingCircularProgressBar_ValueChanged"
>
</progressBar:SfCircularProgressBar>
<progressBar:SfCircularProgressBar x:Name="SegmentedFillingStyle"
Grid.Column="2"
Margin="0,10,0,0"
ShowProgressValue="False"
SegmentCount="20"
>
</progressBar:SfCircularProgressBar>
</Grid>
</core:SampleView.Content>
</core:SampleView>