I’m having an issue with the dock panel not docking my usercontrl to the bottom. Can anyone help me figure out why this is not docking to the bottom?
<StackPanel>
<DockPanel Name="dockPanel" HorizontalAlignment="Stretch">
<StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Stretch">
<uc:UserControl HorizontalAlignment="Stretch" Margin="0,30,0,0" Background="White" Width="Auto" Height="Auto" />
</StackPanel>
</DockPanel>
</StackPanel>
Replace
StackPanelthat is wrapping youDockPanelwith aGridor move yourDockPanelto the mainGridof your form.