Xceed Ultimate ListBox for Silverlight Documentation
Data Property (DragDropContext)


Gets or sets the override DataContext of the ContentPresenter used to display the dragged content.
Syntax
Public Property Data As Object
Dim instance As DragDropContext
Dim value As Object
 
instance.Data = value
 
value = instance.Data
public object Data {get; set;}

Property Value

An object representing the override DataContext of the ContentPresenter used to display the dragged content.
Remarks

This property can only be set before the beginning of a drag operation. Otherwise, an exception will be thrown.

When Data is set, the value it holds will be used for the DataContext of the ContentPresenter used to display the dragged content. When null, the DataContext of the ContentPresenter will be the DataContext of the dragged UIElement.

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

DragDropContext Class
DragDropContext Members

Send Feedback