Defining range
3 Sep 20201 minute to read
Range represents the entire span of the progress bar, and it can be defined using the Minimum
and Maximum
properties. The default value of range is 0 to 100.
The following code example explains how to customize the range as factor value to the progress bar.
// Using linear progress bar.
SfLinearProgressBar sfLinearProgressBar = new SfLinearProgressBar();
sfLinearProgressBar.Minimum = 0;
sfLinearProgressBar.Maximum = 1;
sfLinearProgressBar.Frame = new CoreGraphics.CGRect(10,150,this.View.Frame.Width,this.View.Frame.Height);
sfLinearProgressBar.Progress = 0.5;
// Using circular progress bar.
SfCircularProgressBar circularProgressBar = new SfCircularProgressBar();
circularProgressBar.Frame = new CoreGraphics.CGRect(0, 160, this.View.Frame.Width, this.View.Frame.Height);
circularProgressBar.Minimum = 0;
circularProgressBar.Maximum = 1;
circularProgressBar.Progress = 0.5;