Xceed Toolkit Plus for WPF v4.6 Documentation
StackPanel Class
Members  Example 


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace : StackPanel Class
Represents a panel that stacks its containers horizontally or vertically.
Syntax
'Declaration
 
<LocalizabilityAttribute(LocalizationCategory.Ignore)>
<ContentPropertyAttribute("Children")>
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public NotInheritable Class StackPanel 
   Inherits PanelBase
'Usage
 
Dim instance As StackPanel
[Localizability(LocalizationCategory.Ignore)]
[ContentProperty("Children")]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public sealed class StackPanel : PanelBase 
Remarks

Can only be used in Xceed's ItemsPanelTemplate.

Example
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>
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Panel
                     Xceed.Wpf.ListBox.PanelBase
                        Xceed.Wpf.ListBox.StackPanel

Requirements

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

See Also

Reference

StackPanel Members
Xceed.Wpf.ListBox Namespace