I'm having a WPF problem that I can't figure out. I have a WPF form that uses a dock panel with LastChildFill=True. The last control in there is a tab control.

In My code behind I am creating tabs inside the tab control and populating them with user controls. The problem I have is that the user control is not filling the tab vertically, horizantally it resizes with the screen but not vertically. Everything seems to be set to auto and stretch but it just loads at a fixed height.

Anyone have any suggestions?