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

Hiding Numeric buttons

Environment

Product Version 5.1.0
Product Numeric for MAUI

Description

This article explains how to hide the numeric input buttons. The buttons are used for increasing/decreasing the value.

Solution

You have two options for hiding the buttons.

  1. Using the DecreaseButtonStyle and IncreaseButtonStyle and set IsVisible property to False.
<telerik:RadNumericInput DecreaseButtonStyle="{StaticResource button}" IncreaseButtonStyle="{StaticResource button}"/>

And the Style defined in the resources:

<ResourceDictionary>
    <Style TargetType="telerik:RadButton" x:Key="button">
        <Setter Property="IsVisible" Value="False"/>
    </Style>
</ResourceDictionary>
  1. Use the ControlTemplate of the RadNumericInput and remove the buttons from the control template.
In this article