0

Team, I am new to WPF MVVM. In my WPF window i have multiple grids(arranged vertically). is that possible to change the focus/control based on button or hyperlink.

Say: we have 3 grids "Top Grid", "Middle grid" and "Bottom Grid". When i am at 'Top Grid" i should be able to move to 'bottom Grid' on button/hyperlink click. Similarly when am at 'bottom grid', i should be able to move to 'Top grid' on click of button/hyperlink.

Any assistance/sample is greatly appreciated. Thanks

Sreenivas
  • 21
  • 1
  • sure you can. You'll have to hook the calls for the button/links, and simply set the focus to the required element there.... – Noctis Apr 11 '16 at 06:29
  • Thanks, instead of setting the focus to the required element/field. Can be just scroll into the particular grid without setting the focus because i don't want to hard code the element also the elements/grid/groupbox may be disabled/readonly at times. – Sreenivas Apr 11 '16 at 06:48
  • If your are working MVVM why not to use a simple converter? – Noam M Apr 11 '16 at 07:19
  • yes, you can move different elements (scroll them into view), but we'll need more than what you've given us. – Noctis Apr 11 '16 at 08:10
  • http://stackoverflow.com/questions/22209877/movefocus-from-one-listbox-to-another ..may be this will help – Heena Apr 11 '16 at 09:23

0 Answers0