TextBoxEx MoveFocusOnEnter Bug

Dec 22, 2010 at 10:31 AM

I detected that in the current implementation the Focus can be moved to a control outside the PropertyEditor. In my case this is a button. It seems that after moving the focus to it also the Enter is processed on the button. What is the best approach to change the code to get the Enter not processed on the new focused UIElement?

I use a PropertyEditor inside an AvalonDock pane where the "X"-Button gets focus and is executed then.

I set e.Handled = true in the code where I move the focus. That is my first solution.

The second one will be to use the FocusNavigationDirection.Down instead of FocusNavigationDirection.Next.

Any opinions what is best?

Developer
Dec 22, 2010 at 12:48 PM
Edited Dec 22, 2010 at 12:48 PM

I am using the PropertyEditor inside an AvalonDock pane too, but not seeing the issue you describe. Can you elaborate?