Migration from Xamarin Slider to .NET MAUI Slider
18 Nov 20182 minutes to read
In Xamarin.Forms, the Range Slider and Slider are combined as the Xamarin Range Slider. But in MAUI, separate controls for Range Slider and Slider to make the control architecture more clear and user-friendly. In Xamarin.Forms, set the ShowRange of Range Slider to false to get a single thumb slider. But in MAUI, you have the following two controls, which will always have a single thumb.
- SfDateTimeSlider – For date-time scale.
- SfSlider – For numeric scale.
Namespaces
| Xamarin Range Slider | .NET MAUI Slider |
|---|---|
| Syncfusion.SfRangeSlider.XForms | Syncfusion.Maui.Sliders |
Properties
Track
| Xamarin Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
| 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 Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
| 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 Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
|
|
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 Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
| 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 Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
| 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. |
Step
| Xamarin Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
| Gets or sets the value indicating whether to select the discrete value. |
Events
| Xamarin Range Slider | .NET MAUI Slider | Description | </tr>
|---|---|---|
| Occurs when the user selects a new value for the Slider by tapping/mouse down on the thumb. | ||
| Occurs when the user completes selecting a new value for the Slider by tapping/mouse down on the thumb. |