Intersoft ClientUI Documentation
CheckBoxVisibility Property (UXTreeViewItem)



Gets or sets a value that determines whether the checkbox visibility is visible or collapsed.
Syntax
<CategoryAttribute("Appearance")>
Public Property CheckBoxVisibility As Visibility
Dim instance As UXTreeViewItem
Dim value As Visibility
 
instance.CheckBoxVisibility = value
 
value = instance.CheckBoxVisibility
[CategoryAttribute("Appearance")]
public Visibility CheckBoxVisibility {get; set;}
[CategoryAttribute("Appearance")]
public:
property Visibility CheckBoxVisibility {
   Visibility get();
   void set (    Visibility value);
}
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.

Example

The following code shows how to enable the checkbox behavior.

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>
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

UXTreeViewItem Class
UXTreeViewItem Members

Send Feedback