.NET MAUI Toolbar Slider
You can add a slider in the Toolbar control using the SliderToolbarItem
.
The available properties for configuration are:
-
Value
(double
)—Specifies the value of the slider. -
Minimum
(double
)—Specifies the minimum value of the slider. -
Maximum
(double
)—Specifies the maximum value of the slider.
<telerik:SliderToolbarItem Minimum="1"
Maximum="10"
Value="5">
<telerik:SliderToolbarItem.Style>
<Style TargetType="telerik:SliderToolbarItemView">
<Setter Property="WidthRequest" Value="100" />
<Setter Property="VerticalOptions" Value="Center" />
</Style>
</telerik:SliderToolbarItem.Style>
</telerik:SliderToolbarItem>
Events
-
ValueChanged
—Raised when theSliderToolbarItem.Value
property has changed.
Styling
SliderToolbarItem has the following styling properties:
-
SliderStyle
(Style
with target typeMicrosoft.Maui.controls.Slider
)—Specifies the style of the slider. -
Style
(Style
with target typeTelerik.Maui.Controls.SliderToolbarItemView
). The available properies are:-
Value
(double
)—Specifies the value of the slider. -
Minimum
(double
)—Specifies the minimum value of the slider. -
Maximum
(double
)—Specifies the maximum value of the slider. -
SliderStyle
(Style
with target typeMicrosoft.Maui.controls.Slider
)—Specifies the style of the slider.
-
All other properties that can be applied through style are the properties applicable for ToolbarItemView.