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

Add a Placeholder in NumericInput

Environment

Version Product Author
5.1.0 Telerik UI for .NET MAUI NumericInput Dobrinka Yordanova

Description

This article explains how to style and customize the entry inside the NumericInput control.

Solution

The NumericInput control has an EntryStyle property which is used to style the Entry control.

For example, if you want to add a placeholder to the control you can achieve this by setting the Placeholder to the EntryStyle:

<telerik:RadNumericInput Grid.Row="3" Value="{x:Null}" EntryStyle="{StaticResource entry}">

And the entry style defined in the resources:

<Style TargetType="telerik:RadEntry" x:Key="entry">
    <Setter Property="Placeholder" Value="hello"/>
 </Style>
In this article