Xceed Toolkit Plus for WPF v4.6 Documentation
LayoutMode Property (ListBoxContainerConfigurationBase)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > ListBoxContainerConfigurationBase Class : LayoutMode Property
Gets or sets the layout mode of the container.
Syntax
'Declaration
 
Public Property LayoutMode As ContainerLayoutMode
'Usage
 
Dim instance As ListBoxContainerConfigurationBase
Dim value As ContainerLayoutMode
 
instance.LayoutMode = value
 
value = instance.LayoutMode
public ContainerLayoutMode LayoutMode {get; set;}

Property Value

A ContainerLayoutMode value that indicates the layout mode of the container.
Remarks

The ContainerLayoutMode is used to determine the visual state chosen by the ListBox for its elements. This provides a configurable way to change the container's template either depending on the positioning of the panel/active view (ContainerLayoutMode.Default) or specified through the container's configuration. For example, with a horizontal StackPanel, if the default configuration is used, the LayoutMode of containers will be set to Horizontal, which will cause their visual state to be set to Horizontal, which modifies the visual representation so it is adapted to a horizontal orientation.

Setting this property to a value other than ContainerLayoutMode.Default will change the configured container's LayoutMode property to reflect this value, in turn changing the configured container's visual states to reflect this change.

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

ListBoxContainerConfigurationBase Class
ListBoxContainerConfigurationBase Members