Set the focus on a textbox in xaml wpf

Posted by devnet247 on Stack Overflow See other posts from Stack Overflow or by devnet247
Published on 2010-05-20T08:54:56Z Indexed on 2010/05/20 9:00 UTC
Read the original article Hit count: 179

Filed under:

Hi

dispite some posts on this forum and others i cannot find something that tells me how to set the focus on a text box.

I have a userControl with many labels and textBoxes.When the form is loaded I want the a particular textBox to have the focus. I have set the tabIndex but that didnt seem to work.

Any suggestions

© Stack Overflow or respective owner

Related posts about wpf