New to Telerik UI for .NET MAUI? Start a free 30-day trial

.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 the SliderToolbarItem.Value property has changed.

Styling

SliderToolbarItem has the following styling properties:

  • SliderStyle(Style with target type Microsoft.Maui.controls.Slider)—Specifies the style of the slider.
  • Style(Style with target type Telerik.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 type Microsoft.Maui.controls.Slider)—Specifies the style of the slider.

All other properties that can be applied through style are the properties applicable for ToolbarItemView.

See Also

In this article
Not finding the help you need?