In my WPF application, I want to move focus to the controls using up, down, left and right keys.
Any ideas?
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.
Are you referring to the tab ordering? This means the order in which the focus cycles through your controls when you press TAB or SHIFT-TAB.
The tab ordering in WPF doesn’t run in a specific sequence of numbers. Rather, it just checks to see what hte next highest number is. Ie: you could set one control to 0 and one control to 45 and as long there aren’t any controls between 0 and 45 then it will jump to 45. To set the order in xaml you add this attached property to your definitions:
If you want to exclude controls from the tab order you can:
If you’d like to know more information or this doesn’t apply to you then can you please supply more detail in your question?