I have a TextBox. It will represent a single digit. When I focus it, I show the border to notice it is selected and I can write on it. I intercepted OnKeyDown event to change the TextBox’s content for the digit key I press.
I want to hide the caret, because I don’t want the caret “to lie” seeming I can write wherever place in the TextBox I want.
I tried with IsReadOnly = true, and it hides the caret. The KeyDown event continues working (because I did with AddHandler function), but when I focus the TextBox, the touch keyboard doesn’t appear.
I want to hide the caret, but to show the touch keyboard at the same time.
Any suggestion?
Unfortunately, this is impossible under a c#/xaml winRT app.
Only possible for wpf or silverlight app using the CaretBrush property.
Check here for confirmation