WPF | Layout Panels| 2.StackPanel | HD

3 years ago
24

Just like the GRID, StackPanel is also widely used to arrange, organize or layout WPF controls on the screen or nested inside other controls (ie Grid, ListBox, WrapPanel, Datagrid, ListView ..) . In this demo we're trying to understand how a Stack Panel treats its children elements and how it displays items on the screen. In simple terms it's fair to say Stack Panel stacks items in two different orientation. Vertical Orientation and Horizontal Orientation. The default is vertical. Child elements stacked on top of one another in vertical or side by side in horizontal orientation.

I'm using Visual Studio 2019 for the demo but feel free to use VS2017 as well.
If you have a question please drop a comment.
Click the SUBSCRIBE button for alerts on future tutorials.

Loading comments...