Change foreground of placeholders in RadMaskedTextInput

1 Answer 21 Views
MaskedInput (Numeric, DateTime, Text, Currency) Styling
Johan
Top achievements
Rank 1
Johan asked on 20 Mar 2024, 10:52 AM

Hello,

I'm using a RadMaskedTextInput and I'm wondering if it's possible to change the foreground color of just the placeholders?

What I'm trying to accomplish is for every X in below image to appear in a brighter color than the text typed in by the user.

What my RadMaskedTextInput looks like currently:

What I want the foreground to look like:

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 25 Mar 2024, 09:58 AM

Hello Johan,

This requirement is not supported by the RadMaskedInput controls.

The reason for this is that the text of the RadMaskedTextInput is displayed via a PreviewInputTextBox element, which is a custom control that derives from the native WPF TextBox element. Both of these elements do not support changing parts of the text they display, such as changing its foreground color or setting an opacity.

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Tags
MaskedInput (Numeric, DateTime, Text, Currency) Styling
Asked by
Johan
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or