Represents a panel that stacks its containers horizontally or vertically.
The following code snippet illustrates how to set up a vertical
StackPanel.
<sllb:ListBox Name="listBox1"
ToolPaneVisibility="Collapsed">
...
<sllb:ListBox.ItemsPanel>
<sllb:ItemsPanelTemplate>
<sllb:StackPanel Orientation="Vertical"/>
</sllb:ItemsPanelTemplate>
</sllb:ListBox.ItemsPanel>
...
</sllb:ListBox>
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2