I have a DockSite that's using DocumentItemsSource to create a tabbed MDI layout. Within each DocumentWindow is an inner DockSite with the following layout:
<apdock:DockSite> <apdock:SplitContainer> <apdock:Workspace> <SyntaxEditor /> </apdock:Workspace> <apdock:ToolWindowContainer> <apdock:ToolWindow Title="Bob" > <ContentControl /> </apdock:ToolWindow> </apdock:ToolWindowContainer> </apdock:SplitContainer> </apdock:DockSite>
I'd like my users to be able to maximize and minimize the docked ToolWindow within the DocumentWindow. For minimizing, I'm picturing the ToolWindow being docked to the bottom of the DocumentWindow, with its height as small as possible. For maximizing, I'm picturing the ToolWindow being docked to the top of the DocumentWindow, with its height as large as possible.
- Can this approach be implemented programmatically?
- Is this approach the best way to solve the problem? Is there already built-in support for maximizing and minimizing an inner ToolWindow?