Intersoft ClientUI Documentation
TreeExpandMode Property



Gets or sets a value that determines the expand behavior for the UXTreeView.
Syntax
<CategoryAttribute("Common Properties")>
Public Property TreeExpandMode As TreeExpandMode
Dim instance As UXTreeView
Dim value As TreeExpandMode
 
instance.TreeExpandMode = value
 
value = instance.TreeExpandMode
[CategoryAttribute("Common Properties")]
public TreeExpandMode TreeExpandMode {get; set;}
[CategoryAttribute("Common Properties")]
public:
property TreeExpandMode TreeExpandMode {
   TreeExpandMode get();
   void set (    TreeExpandMode value);
}
Remarks
In certain cases, you may prefer to expand only one item at a time, you can achieve this by customizing the TreeExpandMode property. This property has two possible values: Single and Multiple. In Single mode, only one item could be expanded at a time, while Multiple mode allows you to expand as much items as you desire. The default value is the Multiple mode.
Example

The following code shows you how to set the AutoSelectMode and TreeExpandMode property .

XAML
Copy Code
<Grid>
    <Intersoft:UXTreeView AutoSelectMode="Expand" TreeExpandMode="Multiple">
        <Intersoft:UXTreeViewItem Header="Folder 1">
            <Intersoft:UXTreeViewItem Header="File 1" />
            <Intersoft:UXTreeViewItem Header="File 2" />
            <Intersoft:UXTreeViewItem Header="File 3" />
            <Intersoft:UXTreeViewItem Header="File 4" />
        </Intersoft:UXTreeViewItem>
        <Intersoft:UXTreeViewItem Header="Folder 2">
            <Intersoft:UXTreeViewItem Header="File 1" />
            <Intersoft:UXTreeViewItem Header="File 2" />
        </Intersoft:UXTreeViewItem>
        <Intersoft:UXTreeViewItem Header="Folder 3" />
    </Intersoft:UXTreeView>
</Grid>
Requirements

Target Platforms: 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

UXTreeView Class
UXTreeView Members

Send Feedback