I want to move to the next control when I click the button instead of the Tab key in a WPF MVVM application. How can I achieve this?
Asked
Active
Viewed 417 times
0
-
1Welcome to Stackoverflow. The usual etiquette is to show that you have either written some code or if this is not possible, demonstrate that you have put some research effort into finding a solution yourself prior to asking for help. – Benjamin Gale Jun 24 '14 at 10:07
-
while clicking the search button I'm creating 3 dynamic textbox using itemscontrol. now I want focus the first textbox on search button click – user3729898 Jun 24 '14 at 10:10
-
Give examples or something you have tried. This will make us understand what you really want to do and what you have tried. This question seems incomplete but you can set focus on the control. This can be achieved by using the Id of the control you want to set focus on. – Shittu Joseph Olugbenga Jun 24 '14 at 10:11
1 Answers
0
You question seems not clear. But to set focus on a control you can do this
controlId.focus()
However, check out Moving to next control on Enter keypress in WPF, it could be of help too

Community
- 1
- 1

Shittu Joseph Olugbenga
- 6,396
- 5
- 26
- 37