My requirement is I like to display some string in the textbox control and I want to apply color for a particular character in a string.
Please give me a possible suggestion to achieve my requirement.
Like the image displayed below:
I have developed the custom control using Textbox control which doesn't support Run like in TextBlock control. So please suggest me any possible solution for the TextBox control.
@Eswaran That is much more difficult if you want to allow editing of the text. The only thing I can think of is to have a display mode where you display stylized text in a TextBlock and an edit mode where you display the un-stylized text in a TextBox. Maybe search around for a third-party control.
Answers
Here is what I have found to work. You can specify different foreground colors for each .
Hi @TedRogers ,
I have developed the custom control using Textbox control which doesn't support Run like in TextBlock control. So please suggest me any possible solution for the TextBox control.
@Eswaran That is much more difficult if you want to allow editing of the text. The only thing I can think of is to have a display mode where you display stylized text in a TextBlock and an edit mode where you display the un-stylized text in a TextBox. Maybe search around for a third-party control.