This project is read-only.

Styling DockablePane

Jun 29, 2010 at 12:07 PM

Hi,

I have a question regarding DockablePane Styling. I currently have

 

<ad:DockablePane ad:ResizingPanel.ResizeWidth="300" Background="{x:Null}">

<ad:DockableContent>     

........

</ad:DockableContent>     

</ad:DockablePane>

 

Therefore, when I run my application it shows transparecy pane. However, whenever I change the pane to autohide or floating, it turns back to its default background(white) color. How can I set up background color for every different action? Isn't there any sample code or demo that I can reference?

Cheers

Aaron

Jun 29, 2010 at 12:33 PM

Hi,

this happens because when you autohide or drag the pane as floating window, AvalonDock actually create a new pane that doesn't remember its old properties. You should instead make use of application level styles that are applied to all dockable panes, contents and so on.
What do you mean with setting up a background color for every different action?

Ado

 

 

Jun 30, 2010 at 1:25 AM

Hi Ado,

What I meant is whatever I do(hiding or floating), background color stays same.... or maybe change the background color depends on its behaviour.

 

Regards

Aaron

 

Nov 24, 2011 at 6:23 AM
adospace wrote:

Hi,

this happens because when you autohide or drag the pane as floating window, AvalonDock actually create a new pane that doesn't remember its old properties. You should instead make use of application level styles that are applied to all dockable panes, contents and so on.
What do you mean with setting up a background color for every different action?

Ado

 

 

Hay...

I want to customize the dev2010 theme for get a white background. how to do this?

Thanks.