How can I capture a tab entered in a Silverlight TextBox and render 4 spaces (or a tab) in it’s place?
I can’t figure out how to block the tab navigation.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is what I do (similar to Johannes’ code):
This behaves just how you expect even if you select some text and hit the ol’ “Tab” key.
One more thing: I tried having the tab string as “\t”, but to no avail. The tab rendered, but was the width of a single space – hence the value for the Tab const being four spaces.