In my WPF application, I have a DockPanel inside the Grid to get a layout of the child controls.
However, I need to use a StackPanel below this DockPanel How do I set the distance between the upper DockPanel and the StackPanel, since the StackPanle always starts from the top and overlays upon the DockPanel?
You should add 2 rows for the Grid.
put DockPanel in first row.
put StackPanel to second row
set StackPanel’s margin to be Margin=”0,10,0,0″
Note that: Margin=”Left,Top,Right, Bottom”