Search code examples
wpftemplatesstylesavalondock

A few AvalonDock styling questions (WPF)


I'm trying to implement AvalonDock into my application, but I'm having trouble figuring out some of the styling techniques. If someone could please help with the following couple of questions, I would be very grateful:

1) Is there a way to remove the main "Close" button from a DocumentPane and instead place individual buttons on the tabs?

2) I have custom-styled buttons in my application that are placed inside DockableContent elements. As long as the DockableContent is docked, the button uses my custom template, but if a pull the DockablePane that contains the DockableContent out and have it floating, the button loses its template. Is there some trick to getting this to hold?

Thanks in advance for your help!


Solution

  • I had the best luck getting around this by just downloading the source code, making my changes, and recompiling the DLL.