locked
set the focus to a menue window RRS feed

  • Question

  • hey,

     

    i open a menue out of a another mainframe during pressing the rightmousebutton, just lika a normal rightclickmenue.  The menue includesseveral buttons. I want every of them to be able to get the tabstop focus, but following problem occured: if i open the menue (i write as mentioned in a different Window.xaml) the focus should be occur on the first button, but he just stay inside the first Window, and if i use the tab.key the focus of the first window is changing. Due to the fact, that it isn't practicable to press the menu before you select an option to set the focus, i need to set the focus inside the constructor of the second Window. So, my exact question: how i can switch the focus programmaticly between different WindowObjects without use a click_event.

     

    thanks for your efforts ahead.......  

    Tuesday, March 29, 2011 3:52 PM

Answers