Optional cross button to clear text?

2 posts, 0 answers
  1. Wenrong
    Wenrong avatar
    36 posts
    Member since:
    May 2012

    Posted 05 Dec 2012 Link to this post

    Is it possible to add optional cross button to clear text like the RadMaskedTextInput?
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 10 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top