This is a migrated thread and some comments may be shown as answers.

Optional cross button to clear text?

1 Answer 202 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
Wenrong
Top achievements
Rank 1
Wenrong asked on 05 Dec 2012, 11:46 PM
Is it possible to add optional cross button to clear text like the RadMaskedTextInput?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 10 Dec 2012, 02:38 PM
Hi,

You could add a button next to the WaterMarkTexBox and through a command to set its CurrentText or Text property to null in order to clear it. If you want it to show on mouse hover you will need to edit the template of the control and add the according VisualStates. You could edit the template and the style of RadWaterMarkTextBox very easy in Blend Expression. Just drop a control on the design surface, right-click it and choose from the menu Edit Template->Edit a Copy. Then Blend will generate all the needed resources and you could apply the required changes.

Hope this helps.

Regards,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
WatermarkTextBox
Asked by
Wenrong
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or