--- title: "StackPanel How-to Topics" ms.date: "03/30/2017" f1_keywords: - "AutoGeneratedOrientationPage" helpviewer_keywords: - "StackPanel control [WPF], how-to topics" - "controls [WPF], StackPanel" ms.assetid: c9849df3-d000-4cdf-8345-5edcd053919d --- # StackPanel How-to Topics The topics in this section describe how to use the element to stack content horizontally or vertically. ## In This Section [Choose Between StackPanel and DockPanel](how-to-choose-between-stackpanel-and-dockpanel.md) [Create a StackPanel](how-to-create-a-stackpanel.md) [Horizontally or Vertically Align Content in a StackPanel](how-to-horizontally-or-vertically-align-content-in-a-stackpanel.md) ## Reference ## Related Sections [Layout](../advanced/layout.md) [Walkthrough: My first WPF desktop application](../getting-started/walkthrough-my-first-wpf-desktop-application.md) [ScrollViewer Overview](scrollviewer-overview.md)