my main window consists of a Grid splitting it into two parts. in one of the parts i have a stackPanel. into the stackPanel i add via stackPanel.child.add(user control) (from the .cs file) the selected user control window
my question is: how do i make this one child added via the .cs fill the stackPanel completely?
Xaml code:
<StackPanel Name="myStkP" Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" DockPanel.Dock="Bottom"/>
.cs code:
firstAttempt fat = new firstAttempt();
this.myStkP.Children.Add(fat);
firstAttempt is the user control (wpf) i created