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






Gets or sets a value that determines the header display mode.

Syntax

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

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>

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.

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.