This project has moved. For the latest updates, please go here.

Avalon Dock Document Headers steal focus, which causes drag out

Jun 1 at 10:30 AM
Hello together.

I'm using the Avalon Dock in my project.
The documents can contain different GUIs.
I have a base-class and a list of this base-class is data-bound to the DocumentsSource.
Then I have different DataTemplates for all the different derived classes.

So it is very easy to display different GUIs in different "Tabs".

But now I encountered a very strange behaviour., this happens only if there are a lot of controls inside a "Tab".

I move from one "Tab" to another "Tab" and if I move the mouse out of the header very fast the "Tab" is dragged out of Avalon Dock and appears in a new window. Exactly if I would keep the mouse pressed and drag it out.

I think that it has something to do with WPF drawing all the controls, because this only happens on large GUIs. If I have a "Tab" with only a few controls in it this doesn't happen.

It seems like the Header still thinks it is focues and because of that it is dragged out if I move the mouse.

Hopefully someone can help me to avoid this.