Hi all,
it seems that there is an general problem with setting the focus on controls. If you can have a look on this disussion: http://avalondock.codeplex.com/discussions/428054 you will find a small example application which demonstrates the problem.
After some time of investigation I found the problem. It is caused inside of the FocusElementManager class in Method SetFocusOnLastElement. If I comment out line number 158 the focus problem don't appear anymore. It seems that it only appears if you have some focusable elements in your pane like textboxes or scrollviewers.
if (_modelFocusedElement.GetValue(model, out objectToFocus))
{
//focused = objectToFocus == Keyboard.Focus(objectToFocus);
}
I know it's not a real fix. Just a workaround and I have no clue about the side effects. Maybe the developer can have a deeper look into this issue and release a real patch for this problem.
Comments: ** Comment from web user: starnutoditopo **
it seems that there is an general problem with setting the focus on controls. If you can have a look on this disussion: http://avalondock.codeplex.com/discussions/428054 you will find a small example application which demonstrates the problem.
After some time of investigation I found the problem. It is caused inside of the FocusElementManager class in Method SetFocusOnLastElement. If I comment out line number 158 the focus problem don't appear anymore. It seems that it only appears if you have some focusable elements in your pane like textboxes or scrollviewers.
if (_modelFocusedElement.GetValue(model, out objectToFocus))
{
//focused = objectToFocus == Keyboard.Focus(objectToFocus);
}
I know it's not a real fix. Just a workaround and I have no clue about the side effects. Maybe the developer can have a deeper look into this issue and release a real patch for this problem.
Comments: ** Comment from web user: starnutoditopo **
I notice the same problem in current version