0

My question is the opposite of this one (Remove "X" button at the end of a TextBox).

I have a vanilla TextBox (with TextWrapping set to NoWrap), but I'm not seeing the clear cross delete button.

This is a store/universal/winrt app, so it's a Windows.UI.Xaml.Controls.TextBox.

I haven't got any overrides for the default template in App.xaml either.

Any ideas?

Community
  • 1
  • 1
Benjol
  • 63,995
  • 54
  • 186
  • 268
  • I'm pretty certain that the textbox with the x delete button isn't a control in the toolbox. I could be wrong. Have you tried implementing your own as a user control? – Mike Eason Mar 10 '15 at 08:42
  • @MikeEason, yeah, weird, that other question seems to imply it exists, but maybe only for html, and not xaml as the tags suggest? – Benjol Mar 11 '15 at 09:32

1 Answers1

0

If you can afford it, you can use Telerik UI for Windows Phone. It has a textbox control with a built in clear button.

Other route would be implementing your own user control. It should be rather easy.

Darius V
  • 583
  • 1
  • 4
  • 18
  • Taking look at namespace mentioned by OP, he is working wint WP8.1 Runtime. AFAIK the link you have posted stands for *Silverlight* controls, therefore it won't work. – Romasz Mar 10 '15 at 12:02
  • Right! [Telerik UI for Universal](http://www.telerik.com/windows-universal-ui) is what he needs then. – Darius V Mar 10 '15 at 12:06
  • AFAIK for now there is no TextBox control in it. – Romasz Mar 10 '15 at 12:08
  • Right! Well skip the Telerik RadTextBox idea then. Thanks for correcting @Romasz – Darius V Mar 10 '15 at 12:14