Version

DataObjectRequested Event

Event raised when the XamDataTree is requesting a new dataobject.
Syntax
'Declaration
 
Public Event DataObjectRequested As EventHandler(Of TreeDataObjectCreationEventArgs)
public event EventHandler<TreeDataObjectCreationEventArgs> DataObjectRequested
Event Data

The event handler receives an argument of type TreeDataObjectCreationEventArgs containing data related to this event. The following TreeDataObjectCreationEventArgs properties provide information specific to this event.

PropertyDescription
CollectionType Gets the System.Type which is contained in the underlying collection.
NewObject Gets / sets an object of the ObjectType which will be used as the newly created object.
NodeLayout (Inherited from Infragistics.Controls.Menus.NodeLayoutEventArgs)The NodeLayout that was modified.
ObjectType Gets the System.Type of object that the DataManager expects to be created.
ParentNode Gets the XamDataTreeNode object which is the parent for this object.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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