Styling problem

Jan 10, 2009 at 9:58 PM

Hi. I've styled AvalonDock according to my application's style. But there is a problem I can't solve: when dockable window changes it state to Hidden (when I click AutoHide) or to Floating, defalut theme is restored. After the state is changed back to docked window, its theme is again normal (i.e. the one I've selected). I tried to change for exampe AvalonDockBrushes.DockablePaneTitleBackground brush to different color directly in a component source code and it worked as I was expecting.

I suspect, that when hosting DockableContent in various containers, reset to default style occurs but I cannot verify this guess. Any tips?

Jan 12, 2009 at 7:01 PM
Hi,
Maybe your are defining your styles in the window resources which contains DockManager; when you hide a content or drag it as floating window a different win32 window is created with a different logical tree. Try to put them in the application resources.

Ado