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.
- Using the
DecreaseButtonStyle
andIncreaseButtonStyle
and setIsVisible
property toFalse
.
<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>
- Use the ControlTemplate of the
RadNumericInput
and remove the buttons from the control template.