I have a simple WPF Forms application. I have a DockPanel as my root panel. The first child is the StackPanel, which has some controls, and the second control is the TabControl. I want, and panel types can change everything they need for TabControl to maintain the fill size of the window, except that it consumes the first StackPanel. However, no matter what I try, TabControl seems to change its size depending on what is inside it and not inside.
<Window> <DockPanel> <StackPanel> </StackPanel> <TabControl> </TabControl> </DockPanel> </Window>
source share