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






Gets or sets a value that indicates whether the checkbox visibility is visible or collapsed.

Syntax

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

Example

The following code shows how to enable the checkbox behavior by set the CheckBoxVisibility property to Visible.

XAML Copy Code
<Grid>
    <Intersoft:UXTreeView x:Name="CheckedTree" CheckBoxVisibility="Visible" TreeExpandMode="Multiple">
        <Intersoft:UXTreeViewItem Header="Games" IsExpanded="True" 
                  DisplayMode="ContentAndImage" 
                  Icon="/SLNavigationPane;component/images/Folder.png">
            <Intersoft:UXTreeViewItem Header="Chess Titans" 
                  DisplayMode="ContentAndImage" 
                  Icon="/SLNavigationPane;component/images/Folder.png" />
            <Intersoft:UXTreeViewItem Header="FreeCell" 
                  DisplayMode="ContentAndImage" 
                  Icon="/SLNavigationPane;component/images/Folder.png" />
            <Intersoft:UXTreeViewItem Header="Hearts" 
                  DisplayMode="ContentAndImage" 
                  Icon="/SLNavigationPane;component/images/Folder.png" />
        </Intersoft:UXTreeViewItem>
        <Intersoft:UXTreeViewItem Header="Indexing Service" 
                 DisplayMode="ContentAndImage" 
                 Icon="/SLNavigationPane;component/images/Folder.png" />
        <Intersoft:UXTreeViewItem Header="Internet Information Services" 
                 DisplayMode="ContentAndImage" 
                 Icon="/SLNavigationPane;component/images/Folder.png">
            <Intersoft:UXTreeViewItem Header="FTP Server" 
                     DisplayMode="ContentAndImage" 
                     Icon="/SLNavigationPane;component/images/Folder.png">
                <Intersoft:UXTreeViewItem Header="FTP Extensibility" 
                         DisplayMode="ContentAndImage" 
                         Icon="/SLNavigationPane;component/images/Folder.png" />
                <Intersoft:UXTreeViewItem Header="FTP Sevice" 
                         DisplayMode="ContentAndImage" 
                         Icon="/SLNavigationPane;component/images/Folder.png" />
            </Intersoft:UXTreeViewItem>
                <Intersoft:UXTreeViewItem Header="Web Management Tools" 
                         DisplayMode="ContentAndImage" 
                         Icon="/SLNavigationPane;component/images/Folder.png">
                <Intersoft:UXTreeViewItem Header="IIS 6 Management Compatibility" 
                          DisplayMode="ContentAndImage" 
                          Icon="/SLNavigationPane;component/images/Folder.png">
                    <Intersoft:UXTreeViewItem Header="IIS 6 Management Console" 
                             DisplayMode="ContentAndImage" 
                             Icon="/SLNavigationPane;component/images/Folder.png" />
                    <Intersoft:UXTreeViewItem Header="IIS 6 Scripting Tools" 
                              DisplayMode="ContentAndImage" 
                              Icon="/SLNavigationPane;component/images/Folder.png" />
                    <Intersoft:UXTreeViewItem Header="IIS 6 WMI Compatibility" 
                              DisplayMode="ContentAndImage" 
                              Icon="/SLNavigationPane;component/images/Folder.png" />
                    <Intersoft:UXTreeViewItem Header="IIS Metabase and IIS 6 configuration compatibility" 
                             DisplayMode="ContentAndImage" 
                             Icon="/SLNavigationPane;component/images/Folder.png" />
                </Intersoft:UXTreeViewItem>
                    <Intersoft:UXTreeViewItem Header="IIS Management Console" 
                             DisplayMode="ContentAndImage" 
                             Icon="/SLNavigationPane;component/images/Folder.png" />
                    <Intersoft:UXTreeViewItem Header="IIS Management Scripts and Tools" 
                              DisplayMode="ContentAndImage" 
                              Icon="/SLNavigationPane;component/images/Folder.png" />
                    <Intersoft:UXTreeViewItem Header="IIS Management Service" 
                             DisplayMode="ContentAndImage" 
                             Icon="/SLNavigationPane;component/images/Folder.png" />
            </Intersoft:UXTreeViewItem>
        </Intersoft:UXTreeViewItem>
    </Intersoft:UXTreeView>
</Grid>

Remarks

UXTreeView includes powerful checkbox capability which allows you to easily capture checked items from the user input. You can enable this feature by simply setting the CheckBoxVisibility property to Visible., then access the CheckedItems property to obtain the checked items. Note that the CheckedItems only includes leaf items.

As seen in the above illustration, UXTreeView maintains the checkbox state of parent items automatically. It will show a full checked state when all of the child items are checked, and show an indeterminate state when the child items are partially checked. In addition, the checkbox of the parent items also implement special behaviors that allow users to quickly toggle the checked state of all child items by simply clicking on the parent item's checkbox.

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.