Xceed DataGrid for Silverlight Documentation
Data Property (DragDropContext)


Gets or sets the override DataContext of the ContentPresenter used to display the dragged content.
Syntax
'Declaration
 
Public Property Data As Object
'Usage
 
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, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DragDropContext Class
DragDropContext Members

Send Feedback