Add a Placeholder in NumericInput
Environment
Product Version | 5.1.0 |
Product | Entry for MAUI |
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 addition you can customize the inner entry by using the ControlTemplate of the RadNumericInput
.