I have a problem with XamDockManager.
i want create a TabGroupPane with transparent background.
In the window preview area of Visual Studio 2008 working correctly, but when lanch application the backgroud is white.
This is the code :
<my:XamDockManager Name="xamDockManager1" Background="Transparent" > <my:DocumentContentHost Background="Transparent"> <my:SplitPane> <my:TabGroupPane Background="Transparent"> <my:ContentPane Header="Primo" Background="Transparent"> <Button Height="30">dd</Button> </my:ContentPane>
<my:ContentPane Header="Secondo" Background="Transparent"> </my:ContentPane> </my:TabGroupPane> </my:SplitPane> </my:DocumentContentHost></my:XamDockManager>
Thanks
Ivan Senatore
The default background of the Window is white so that may explain part of it. Try explicitly giving the containing panel (likely the default Grid that is the content of the Window) a different color and see how that shows through. That being said, the TabGroupPane is a complex visual and as such just setting the Background is not enough. In looking at the default template (keyed with TabGroupPane.DocumentTabGroupTemplateKey), there is a series of nested borders since the outer border provides the blue color and an inner border that provides the white. Currently that appears to be associated with SystemColors.WindowBrushKey so while you could redefine that color (by putting a brush in the resources with that as its key), that would affect other things within the element (e.g. textboxes). It seems that this inner border should be tied to the background (which means the blue would still just be controlled via resource keys). Is that what you were expecting?
I am also trying to do the same thing. I have the background transparent similar to whatthe user above tried but my problem is when i try to redock it in a different location i lose the transparency. Example i am using the Office2kBlack theme have transparency on all my panes and the tabgroup xamdockmanager which looks fine untill i move it and redock it anywhere,. The background changes to what i can only guess is straetched out view of what the themes title bars brush is, blue at top with a black to light grey fade. I am pretty new to WPF and this product so i will see if teh comment above helps me at all. Any other suggestions are welcome tho =D