Version

Configuring Active Data Item (xamDataTree)

Topic Overview

Purpose

This topic describes how to easily identify and manipulate the currently active xamDataTree™ data item while using the Model-View-ViewModel (MVVM) architecture.

Required background

The following topic is a prerequisite to understanding this topic:

Topic Purpose

This topic describes the basic steps required for adding the xamDataTree control to your page using procedural code and XAML.

In this topic

This topic contains the following sections:

Active Data Item Feature Configuration Summary

Active data item configuration summary chart

The following table briefly explains the active data item configuration. Further details are available after the table.

Configurable aspect Details Properties

Configures the currently active data item in the xamDataTree control.

Configuring Active Data Item

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Set an active data item in the xamDataTree control

object

Example

Following is the code that implements an example of using the ActiveDataItem property.

In XAML:

<ig:XamDataTree x:Name="ProductsDataTree"
                ItemsSource="{Binding Path=Products}"
                ActiveDataItem="{Binding ActiveProduct, Mode=TwoWay}">
    <ig:XamDataTree.GlobalNodeLayouts>
        <ig:NodeLayout Key="ProductLayout"
                       TargetTypeName="Product"
                       DisplayMemberPath="ProductName">
        </ig:NodeLayout>
    </ig:XamDataTree.GlobalNodeLayouts>
</ig:XamDataTree>

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic describes the nodes activation feature in the xamDataTree control.

This topic describes how to enable the nodes’ check boxes in the xamDataTree control.

This topic describes how to expand certain or all nodes in code in the xamDataTree control.

This topic describes the drag and drop functionality in the xamDataTree control.

This topic describes how to enable editing in the xamDataTree control.

This topic describes how to visualize the node connectors in the xamDataTree control.

This topic describes the concept of node layout and different node layouts in the xamDataTree control.

This topic describes the selection in the xamDataTree control.