Xceed Toolkit Plus for WPF v4.6 Documentation
ItemsPanel Property
Example 


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > ListBox Class : ItemsPanel Property
Gets or sets the template that defines the panel that controls the layout of items.
Syntax
'Declaration
 
Public Property ItemsPanel As ItemsPanelTemplate
'Usage
 
Dim instance As ListBox

Dim value As ItemsPanelTemplate

 

instance.ItemsPanel = value

 

value = instance.ItemsPanel
public ItemsPanelTemplate ItemsPanel {get; set;}

Property Value

An ItemsPanelTemplate defining the panel that controls the layout of items.
Remarks
The property can only be set to an instance of Xceed.Wpf.ListBox.ItemsPanelTemplate.
Example
<sllb:ListBox Name="listBox1"

	    ToolPaneVisibility="Collapsed">



  ...



  <sllb:ListBox.ItemsPanel>

    <sllb:ItemsPanelTemplate>

      <sllb:StackPanel Orientation="Vertical"/>

    </sllb:ItemsPanelTemplate>

  </sllb:ListBox.ItemsPanel>



  ...



</sllb:ListBox>
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

ListBox Class
ListBox Members