Class SfLinearProgressBar
The linear progress bar provides a customizable visual that indicates the progress of a task.
Inherited Members
Namespace: Syncfusion.XForms.ProgressBar
Assembly: Syncfusion.SfProgressBar.XForms.dll
Syntax
public class SfLinearProgressBar : ProgressBarBase, IParentThemeElement, IThemeElement
Examples
SfLinearProgressBar progress = new SfLinearProgressBar();
progress.ProgressValue = 12;
progress.Minimum = 20;
progress.SecondaryProgressValue = 40;
Constructors
SfLinearProgressBar()
Initializes a new instance of the SfLinearProgressBar class.
Declaration
public SfLinearProgressBar()
Fields
CornerRadiusProperty
Identifies the CornerRadius bindable property. This property can be used to change the corner radius of SfLinearProgressBar.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
PaddingProperty
Identifies the Padding bindable property.
Declaration
public static readonly BindableProperty PaddingProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SecondaryAnimationDurationProperty
Identifies the SecondaryAnimationDuration bindable property.
Declaration
public static readonly BindableProperty SecondaryAnimationDurationProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SecondaryProgressColorProperty
Identifies the SecondaryProgressColor bindable property. This property can be used to change the secondary progress color.
Declaration
public static readonly BindableProperty SecondaryProgressColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SecondaryProgressProperty
Identifies the SecondaryProgress bindable property.
Declaration
public static readonly BindableProperty SecondaryProgressProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackHeightProperty
Identifies the TrackHeight bindable property.
Declaration
public static readonly BindableProperty TrackHeightProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
CornerRadius
Gets or sets a value of CornerRadius. This property can be used to change the corner radius of SfLinearProgressBar.
Declaration
public double CornerRadius { get; set; }
Property Value
Type |
---|
System.Double |
Padding
Gets or sets a value of Padding. This property can be used to change the padding value to the progress indicator.
Declaration
public Thickness Padding { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Thickness | The width of the gap. |
SecondaryAnimationDuration
Gets or sets a value of the SecondaryAnimationDuration. This property can be used to change the animation duration of SfLinearProgressBar.
Declaration
public int SecondaryAnimationDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The duration of the animation. |
SecondaryProgress
Gets or sets the secondary progress value.
Declaration
public double SecondaryProgress { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The secondary progress. |
SecondaryProgressColor
Gets or sets a value of SecondaryProgressColor. This property can be used to change the secondary progress color.
Declaration
public Color SecondaryProgressColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | The secondary progress bar color. |
TrackHeight
Gets or sets a value of TrackHeight. This property can be used to change the height of the track value to the progress indicator.
Declaration
public double TrackHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the indicator. |
Methods
Dispose(Boolean)
This method is used to release unmanaged resources used by the SfLinearProgressBar class.
Declaration
public override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether to dispose or not. |