Intersoft ClientUI Documentation
UXTreeViewItem Class
Members 



Represents a treeview item which is used in a UXTreeView control.
Object Model
UXTreeViewItem ClassISFramework ClassStyleSelector ClassDataTemplateSelector ClassISelection InterfaceTransformInfo Class
Syntax
<TemplateVisualStateAttribute(Name="Normal", GroupName="CommonStates")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")>
<DescriptionAttribute("Represents a treeview item which is used in a UXTreeView control.")>
<TemplateVisualStateAttribute(GroupName="DragDropStates", Name="Dropped")>
<TemplateVisualStateAttribute(GroupName="LoadingStates", Name="Loaded")>
<TemplateVisualStateAttribute(GroupName="LoadingStates", Name="Loading")>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")>
<TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)>
<TemplatePartAttribute(Name="ValidationErrorElement", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="SelectedInactive")>
<TemplatePartAttribute(Name="MouseOverElement", Type=System.Windows.Shapes.Rectangle)>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXTreeViewItem)>
<TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")>
<TemplateVisualStateAttribute(GroupName="HasItemsStates", Name="NoItems")>
<TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")>
<TemplatePartAttribute(Name="CheckBoxElement", Type=Intersoft.Client.UI.Aqua.UXCheckBox)>
<TemplatePartAttribute(Name="ItemEditContentElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="ItemsChildElement", Type=System.Windows.Controls.ItemsPresenter)>
<TemplatePartAttribute(Name="SelectionElement", Type=System.Windows.Shapes.Rectangle)>
<TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="ItemEditTextElement", Type=Intersoft.Client.UI.Controls.UXTextBox)>
<TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DropNotAllowed")>
<TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")>
<TemplatePartAttribute(Name="ToggleElement", Type=Intersoft.Client.UI.Aqua.UXToggleButton)>
<TemplatePartAttribute(Name="VerticalConnectingLineElement", Type=System.Windows.Shapes.Line)>
<TemplatePartAttribute(Name="HorizontalConnectingLineElement", Type=System.Windows.Shapes.Line)>
<TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="EditTemplate")>
<StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="LoadedItem", Type=System.Windows.Shapes.Ellipse)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")>
<TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DropAllowed")>
<TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="Display")>
<TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="EditText")>
<TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")>
<TemplateVisualStateAttribute(GroupName="HasItemsStates", Name="HasItems")>
<TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")>
<TemplateVisualStateAttribute(GroupName="SlidingStates", Name="SlidingCollapsed")>
<TemplatePartAttribute(Name="DragOverElement", Type=System.Windows.Shapes.Rectangle)>
<TemplateVisualStateAttribute(GroupName="SlidingStates", Name="SlidingExpanded")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")>
<TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DragLeave")>
<TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")>
Public Class UXTreeViewItem 
   Inherits Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedHierarchicalMultipleSelectionControl
   Implements Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.ISelectionItemIntersoft.Client.Framework.ITransformInfoIntersoft.Client.UI.Controls.Interactivity.IDropable 
Dim instance As UXTreeViewItem
[TemplateVisualStateAttribute(Name="Normal", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[DescriptionAttribute("Represents a treeview item which is used in a UXTreeView control.")]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="Dropped")]
[TemplateVisualStateAttribute(GroupName="LoadingStates", Name="Loaded")]
[TemplateVisualStateAttribute(GroupName="LoadingStates", Name="Loading")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="ValidationErrorElement", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="SelectedInactive")]
[TemplatePartAttribute(Name="MouseOverElement", Type=System.Windows.Shapes.Rectangle)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXTreeViewItem)]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")]
[TemplateVisualStateAttribute(GroupName="HasItemsStates", Name="NoItems")]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")]
[TemplatePartAttribute(Name="CheckBoxElement", Type=Intersoft.Client.UI.Aqua.UXCheckBox)]
[TemplatePartAttribute(Name="ItemEditContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ItemsChildElement", Type=System.Windows.Controls.ItemsPresenter)]
[TemplatePartAttribute(Name="SelectionElement", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ItemEditTextElement", Type=Intersoft.Client.UI.Controls.UXTextBox)]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DropNotAllowed")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")]
[TemplatePartAttribute(Name="ToggleElement", Type=Intersoft.Client.UI.Aqua.UXToggleButton)]
[TemplatePartAttribute(Name="VerticalConnectingLineElement", Type=System.Windows.Shapes.Line)]
[TemplatePartAttribute(Name="HorizontalConnectingLineElement", Type=System.Windows.Shapes.Line)]
[TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="EditTemplate")]
[StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="LoadedItem", Type=System.Windows.Shapes.Ellipse)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DropAllowed")]
[TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="Display")]
[TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="EditText")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplateVisualStateAttribute(GroupName="HasItemsStates", Name="HasItems")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")]
[TemplateVisualStateAttribute(GroupName="SlidingStates", Name="SlidingCollapsed")]
[TemplatePartAttribute(Name="DragOverElement", Type=System.Windows.Shapes.Rectangle)]
[TemplateVisualStateAttribute(GroupName="SlidingStates", Name="SlidingExpanded")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DragLeave")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")]
public class UXTreeViewItem : Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedHierarchicalMultipleSelectionControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.ISelectionItemIntersoft.Client.Framework.ITransformInfoIntersoft.Client.UI.Controls.Interactivity.IDropable  
[TemplateVisualStateAttribute(Name="Normal", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[DescriptionAttribute("Represents a treeview item which is used in a UXTreeView control.")]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="Dropped")]
[TemplateVisualStateAttribute(GroupName="LoadingStates", Name="Loaded")]
[TemplateVisualStateAttribute(GroupName="LoadingStates", Name="Loading")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="ValidationErrorElement", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="SelectedInactive")]
[TemplatePartAttribute(Name="MouseOverElement", Type=System.Windows.Shapes.Rectangle)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXTreeViewItem)]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")]
[TemplateVisualStateAttribute(GroupName="HasItemsStates", Name="NoItems")]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")]
[TemplatePartAttribute(Name="CheckBoxElement", Type=Intersoft.Client.UI.Aqua.UXCheckBox)]
[TemplatePartAttribute(Name="ItemEditContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ItemsChildElement", Type=System.Windows.Controls.ItemsPresenter)]
[TemplatePartAttribute(Name="SelectionElement", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ItemEditTextElement", Type=Intersoft.Client.UI.Controls.UXTextBox)]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DropNotAllowed")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")]
[TemplatePartAttribute(Name="ToggleElement", Type=Intersoft.Client.UI.Aqua.UXToggleButton)]
[TemplatePartAttribute(Name="VerticalConnectingLineElement", Type=System.Windows.Shapes.Line)]
[TemplatePartAttribute(Name="HorizontalConnectingLineElement", Type=System.Windows.Shapes.Line)]
[TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="EditTemplate")]
[StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="LoadedItem", Type=System.Windows.Shapes.Ellipse)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DropAllowed")]
[TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="Display")]
[TemplateVisualStateAttribute(GroupName="InteractionModeStates", Name="EditText")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplateVisualStateAttribute(GroupName="HasItemsStates", Name="HasItems")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")]
[TemplateVisualStateAttribute(GroupName="SlidingStates", Name="SlidingCollapsed")]
[TemplatePartAttribute(Name="DragOverElement", Type=System.Windows.Shapes.Rectangle)]
[TemplateVisualStateAttribute(GroupName="SlidingStates", Name="SlidingExpanded")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="DragDropStates", Name="DragLeave")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")]
public ref class UXTreeViewItem : public Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedHierarchicalMultipleSelectionControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.ISelectionItemIntersoft.Client.Framework.ITransformInfoIntersoft.Client.UI.Controls.Interactivity.IDropable  
Remarks

The item container type of UXTreeView is UXTreeViewItem.

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

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.HeaderedItemsControl
                     Intersoft.Client.Framework.ISHeaderedItemsControl
                        Intersoft.Client.Framework.ISHeaderedHierarchicalSelectionControl
                           Intersoft.Client.Framework.ISHeaderedHierarchicalMultipleSelectionControl
                              Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedHierarchicalMultipleSelectionControl
                                 Intersoft.Client.UI.Aqua.UXCollection.UXTreeViewItem

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 Members
Intersoft.Client.UI.Aqua.UXCollection Namespace

Send Feedback