Xaml first element Focus issue RRS feed

  • Question

  • I have a grid and a multiple textboxes inside this grid, the problem is every time I tapped in the white area of the grid the focus goes to the first textbox automatically. Is there a way to avoid that?


    Monday, June 2, 2014 1:48 PM

All replies

  • Can you explain the scenario more clearly? What does your Xaml look like? What do you mean by "tapping in the white area"? What behavior do you want?

    Monday, June 2, 2014 8:48 PM
  • This is the correct behavior, Focus always goes to the first focus-able control. If you want to avoid this, try to set IsTabStop="True" to some other control or to parent control of the Grid.

    - Ram
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Thursday, June 5, 2014 2:32 PM