Migrate from Xamarin.Forms SfRangeSlider to .NET MAUI SfRangeSlider
30 Sep 20222 minutes to read
To migrate from the Xamarin Range Slider control to MAUI, use the following two controls.
- SfDateTimeRangeSlider – For date-time scale.
- SfRangeSlider – For numeric scale.
One more thing is, in .NET MAUI SfRangeSlider, you do not have an API name ShowRange in MAUI. Both the MAUI SfDateTimeRangeSlider and SfRangeSlider controls will show two thumbs by default. If you wish to use the single thumb, check the Migration from Xamarin.Forms SfRangeSlider to .NET MAUI SfSlider.
Namespaces
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider |
---|---|
Syncfusion.SfRangeSlider.XForms | Syncfusion.Maui.Sliders |
Properties
Track
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Gets or sets the brush for the inactive track in the SfSlider. | ||
Gets or sets the brush for the active track in the SfSlider. | ||
Gets or sets the size for the inactive track in the SfSlider. | ||
Gets or sets the size for the active track in the SfSlider. |
Thumb
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Gets or sets the radius for the thumb in the SfSlider. | ||
Gets or sets the color for the thumb in the SfSlider. | ||
Gets or sets the stroke color for the thumb in the SfSlider. | ||
Gets or sets the stroke value for the thumb in the SfSlider. |
Ticks
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
|
Gets or sets the brush for the inactive ticks in the SfSlider. | |
Gets or sets the brush for the active ticks in the SfSlider. |
Labels
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Gets or sets a value indicating whether to show or hide the labels. | ||
|
Gets or sets the color for the inactive labels in the SfSlider. | |
Gets or sets the color for the active labels in the SfSlider. | ||
|
Gets or sets the font family for the inactive labels in the SfSlider. | |
Gets or sets the font family for the active labels in the SfSlider. | ||
|
Gets or sets the font attributes for the inactive labels in the SfSlider. | |
Gets or sets the font attributes for the active labels in the SfSlider. | ||
|
Gets or sets the size for the inactive fonts in the SfSlider. | |
Gets or sets the size for the active fonts in the SfSlider. | ||
Gets or sets the value to format the label text. |
Tooltip
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Gets or sets the brush for the tooltip in the SfSlider. | ||
Gets or sets the color for the tooltip text in the SfSlider. | ||
Gets or sets the value to format the label text in the SfSlider. |
DragMode
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Gets or sets the value which indicates the behavior of the thumb dragging. |
Step
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Gets or sets the value indicating whether to select the discrete value. |
Events
Xamarin SfRangeSlider | .NET MAUI SfRangeSlider | Description |
---|---|---|
Occurs when the user selects a new value for the Slider by tapping/mouse down on the thumb. | ||
Occurs when the user selects a new value for the Range Slider by dragging any one of the thumbs. | ||
Occurs when the user completes selecting a new value for the Slider by tapping/mouse down on the thumb. |