Intersoft ClientUI Documentation
TreeExpandMode Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXCollection Namespace > UXTreeView Class : TreeExpandMode Property






Gets or sets a value that determines the expand behavior for the UXTreeView.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property TreeExpandMode As TreeExpandMode
Visual Basic (Usage)Copy Code
Dim instance As UXTreeView
Dim value As TreeExpandMode
 
instance.TreeExpandMode = value
 
value = instance.TreeExpandMode
C# 
[CategoryAttribute("Common Properties")]
public TreeExpandMode TreeExpandMode {get; set;}
Delphi 
public read-write property TreeExpandMode: TreeExpandMode; 
JScript 
CategoryAttribute("Common Properties")
public function get,set TreeExpandMode : TreeExpandMode
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property TreeExpandMode get_TreeExpandMode();
public: __property void set_TreeExpandMode( 
   TreeExpandMode value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property TreeExpandMode TreeExpandMode {
   TreeExpandMode get();
   void set (    TreeExpandMode value);
}

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>

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.