Migrate from Xamarin.Forms to .NET MAUI SfCircularProgressBar
19 Sep 202415 minutes to read
To make the migration from the Xamarin SfCircularProgressBar to .NET MAUI SfCircularProgressBar easier, most of the APIs from the Xamarin SfCircularProgressBar were kept in the .NET MAUI SfCircularProgressBar. However, to maintain the consistency of API naming in the .NET MAUI SfCircularProgressBar, some of the APIs have been renamed. Please find the difference in the following topics.
Initialize control
To initialize the control, import the ProgressBar namespace and initialize the SfCircularProgressBar as shown in the following code sample.
Xamarin ProgressBar | .NET MAUI ProgressBar |
---|---|
|
|
Properties
Xamarin SfCircularProgressBar | .NET MAUI SfCircularProgressBar | Description |
---|---|---|
Gets or sets the value that specifies the current value for the progress. | ||
Gets or sets a value indicating whether the progress bar is in indeterminate state or not. | ||
Gets or sets the minimum possible value of the progress bar. The progress bar range starts from this value. | ||
Gets or sets the maximum possible value of the progress bar. The progress bar ends at this value. | ||
Gets or sets a value that specifies the StartAngle of the progress bar. | ||
Gets or sets a value that specifies the EndAngle of the progress bar. | ||
Gets or sets a any view to display in the center of circular progress bar. | ||
Gets or sets the brush that paints the interior area of the progress. | ||
Gets or sets the brush that paints the interior area of the track. | ||
Gets or sets a collection of ProgressGradientStop to fill the gradient brush to the progress. | ||
Gets or sets the value that determine the segments count of progress bar. | ||
Gets or sets the value that determines the gap between the segments. | ||
Gets or sets a value that specifies the progress animation duration in milliseconds. | ||
Gets or sets a value that specifies the indeterminate animation duration in milliseconds. | ||
Gets or sets a value that specifies the easing effect for progress animation. | ||
Gets or sets a value that specifies the easing effect for indeterminate animation. | ||
Gets or sets the value that specifies width of the indeterminate indicator. | ||
Gets or sets a value that specifies the thickness of the progress. You can specify the value either in logical pixel or radius factor using the ThicknessUnit property. | ||
Gets or sets a value that specifies the outer radius factor of the progress. | ||
Gets or sets a value that specifies the thickness of the track in the circular progress bar. You can specify value either in logical pixel or radius factor using the ThicknessUnit property. | ||
Gets or sets a value that specifies the outer radius factor of the track. | ||
- |
Gets or sets the enum value that indicates to calculate the track and progress thickness either in logical pixel or radius factor. | |
- |
Gets or sets the value that specifies the corner style of the progress. | |
- |
Gets or sets the value that specifies the corner style of the track. | |
- |
Gets or sets a value indicating whether to show the progress value label or not in SfCircularProgressBar. | |
The value change event occurs when the Progress is changed. | ||
The progress completed event occurs when Progress value attains Maximum value in ProgressBar. |
NOTE
All the (*) marked APIs are renamed from Xamarin SfCircularProgressBar to maintain the consistency of API naming in the .NET MAUI SfCircularProgressBar.
The following code example explains how to use the properties in the Xamarin circular progress bar and the .NET MAUI circular progress bar.
Xamarin |
---|
|
.NET MAUI |
|
Unsupported features from Xamarin.Forms
-
ShowProgressValue
support has not been provided in the SfCircularProgressBar. Instead, you can achieve it using theContent
property. Please visit the Custom Content page for more details about theContent
property.