Migrate from Xamarin.Forms SfStepProgressBar to MAUI SfStepProgressBar
27 May 20243 minutes to read
To make the migration from the Xamarin SfStepProgressBar to .NET MAUI SfStepProgressBar easier, most of the APIs from the Xamarin SfStepProgressBar
were kept in the .NET MAUI SfStepProgressBar
. However, to maintain the consistency of API naming in the .NET MAUI SfStepProgressBar
, some of the APIs have been renamed. Find the difference in the following topics.
Namespaces
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar |
---|---|
Syncfusion.XForms.ProgressBar | Syncfusion.Maui.ProgressBar |
Initialize control
To initialize the control, import the step progressbar namespace and initialize SfStepProgressBar
as shown in the following code sample.
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar |
---|---|
|
|
Classes
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar | Description |
---|---|---|
Represents a class which holds the step progressbar common properties in SfStepProgressBar. | ||
Represents a class which is used to customize the step progress bar item. | ||
Represents a class which is used to customize the style of the step view. | ||
Represents a class which is used to hold the step tapped event arguments. | ||
Represents a class which is used to hold the status changed event arguments. |
Properties
SfStepProgressBar
The following code example, explains how to initialize the properties of the Xamarin SfStepProgressBar
and .NET MAUI SfStepProgressBar
class.
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar | Description |
---|---|---|
Gets or sets the completed step settings for the step progressbar. | ||
Gets or sets the in progress step settings for the step progressbar. | ||
Gets or sets the not started step settings for the step progressbar. | ||
Gets or sets the orientation. | ||
Gets or sets the progress animation duration. | ||
Gets or sets the label position for the step progress bar. | ||
Gets or sets the label spacing. | ||
Nil | Not Supported. | |
Gets or sets the size of the step. | ||
Gets or sets the stroke width of the step. |
StepSettings
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar | Description |
---|---|---|
FontAttributes(From TextStyle property of StepSettings class) |
Gets or sets the font attributes of the text style which is used to customize the primary and secondary text. | |
TextColor(From TextStyle property of StepSettings class) |
Gets or sets the text color of the text style which is used to customize the primary and secondary text. | |
FontFamily(From TextStyle property of StepSettings class) |
Gets or sets the font family of the text style which is used to customize the primary and secondary text. | |
FontSize(From TextStyle property of StepSettings class) |
Gets or sets the font size of the text style which is used to customize the primary and secondary text. | |
Nil | Not Supported. | |
Gets or sets the content fill color of the step. | ||
StepContentSize(From SfStepProgressBar class) |
Gets or sets the content size of the step. | |
Gets or sets the content type of the step. | ||
Gets or sets the background color of the step. | ||
Gets or sets the shape type of the step. | ||
Gets or sets the stroke color of the step. | ||
Gets or sets the track color of the progress line. | ||
Gets or sets the progress background color of the progress line. |
StepProgressBarItem
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar | Description |
---|---|---|
Gets or sets the image source of the step. | ||
Gets or sets the primary text of the step. | ||
Gets or sets the secondary text of the step. | ||
Gets or sets the primary formatted text of the step. | ||
Gets or sets the secondary formatted text of the step. | ||
Gets or sets the progress value of the step. | ||
Nil | By using ActiveStepIndex and ActiveStepProgressValue property, we can achieve the desired step status. |
Enums
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar | Description |
---|---|---|
Defines the label text alignment for the SfStepProgressBar. | ||
Defines the step content type for the SfStepProgressBar. | ||
Defines the step progressbar layout orientation for the SfStepProgressBar. | ||
Defines the step shape type for the SfStepProgressBar. | ||
Defines the step status for the SfStepProgressBar. | ||
Nil | Not Supported. |
Events
Xamarin SfStepProgressBar | .NET MAUI SfStepProgressBar | Description |
---|---|---|
Occurs whenever the progressbar step is tapped. | ||
Occurs whenever the step status is changed. |
Upcoming Features
- Mapping support
- Template support