Intersoft ClientUI Documentation
DisplayMode Property (UXTreeViewItem)



Gets or sets a value that determines the header display mode.
Syntax
<CategoryAttribute("Common Properties")>
Public Property DisplayMode As ContentType
Dim instance As UXTreeViewItem
Dim value As ContentType
 
instance.DisplayMode = value
 
value = instance.DisplayMode
[CategoryAttribute("Common Properties")]
public ContentType DisplayMode {get; set;}
[CategoryAttribute("Common Properties")]
public:
property ContentType DisplayMode {
   ContentType get();
   void set (    ContentType value);
}
Remarks
UXTreeView uses content control architecture which allows you to put any arbitrary object to its Content. UXTreeView extends the content model with ImageContent presentation to provide an efficient way to display an image in addition to the content itself. UXTreeViewItem also supports ImageContent model, so you can use the ImageMemberPath to bind an image field to the image element of UXTreeViewItem.
Example

The following example shows how to setup the UXTreeView to use ImageContent presentation and specify an image to the content.

XAML
Copy Code
<Grid>
    <Intersoft:UXTreeView>
        <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: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