views:

12

answers:

0

Hi All,

I have a grid, and in the grid I am setting my first element to be focused:

<Grid FocusManager.FocusedElement="{Binding ElementName=companyNameField}">

When the window opens, the correct control is focused.

But if I tab through the whole form, when the above focused field, should have the focus, there is no cursor evident anywhere on the window.

If I hit tab once more, it selects the control after the control that should be selected.

If I completely remove the focumanager attributes from my grid, I am correctly tabbing trough all my controls in the correct order.

Even stranger, if i leave in the focusmanager attributes and first click on the first text box and then focus through the entire form, then it selects my text box like any other control.

If you have any Ideas, I would love some help.

Thanks