This project is read-only.

Style lost when docking DocumentContent

Oct 26, 2009 at 10:26 PM

Hi,

This is a very cool control library; thanks to everyone for their hard work.

Now, whenever a DocumentContent is moved and docked, it seems like it loses its style.  I have the Background property for the DockingManager, ResizingPanel, DocumentPane and DocumentContent all set to Transparent.  This does what I expect until it is moved and docked.  After it is moved, it seems like the Style goes back to the default Gray look.

 

Thanks for any help, Adam

 

May 25, 2010 at 2:10 PM

The problem seems to happen in AvalonDock.Pane RemoveContent method. After it does Items.RemoveAt(index) all the applied styles are lost.

 

Sep 6, 2010 at 5:20 AM

I am getting the exact same behavior, are there any workarounds for this?

Sep 7, 2010 at 2:04 PM

I did find a work around.  I think I had to reapply the Style based on an event.  I'll see if I can dig up the source and find out exactly what I did.