Way to make WPF DockPanel auto-resize based on its children's size?
问题 Right now I have a DockPanel that contains a toolbar and BrowserWindow. When I re-size the BrowserWindow to fit content, I want that change to propagate up into the DockPanel and re-size automatically. Is there a setting for this? So the layout of my app is essentially: -Browser Control Class --DockPanel ----Toolbar (docked to Top) ----Browser Window Class ------Grid --------Menu --------Embedded Browser Basically I want the size that I set on my Browser Window Class to automatically re-size