How to affect alignment on NumericInput control

1 Answer 8 Views
NumericInput
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Larry asked on 12 Oct 2025, 09:57 PM

Notice the 'arrows' are left aligned. How can I center these (I am working on a custom control based on NumericInput). I also want to center the numeric text.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 13 Oct 2025, 08:29 AM

Hello Larry,

I see you mainly submit questions in the forum. You can also open support tickets.

Regarding to the questions. 

1) Custom numeric control:

As you are using a custom control, I assume you modify the entire control template. You can get the template when adding Telerik Theming to the app. The template is inside TelerikTheming/Styles/Platform/NumericInput.xaml file.

2) How to style the text in the numeric and the buttons:

To style the buttons use the IncreaseButtonStyle and DecreaseButtonStyle

To style the text in the input area use the TextInputStyle, to center the text set the horizontal text alignment to center:

<telerik:RadNumericInput>
    <telerik:RadNumericInput.TextInputStyle>
        <Style TargetType="telerik:RadTextInput">
            <Setter Property="HorizontalTextAlignment" Value="Center" />
        </Style>
    </telerik:RadNumericInput.TextInputStyle>
</telerik:RadNumericInput>

Here is the styling documentation: https://www.telerik.com/maui-ui/documentation/controls/numericinput/styling 

Regards,
Didi
Progress Telerik

Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
Start the 2025 Survey
Tags
NumericInput
Asked by
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Didi
Telerik team
Share this question
or