Xceed.Silverlight.Controls.v2.0 Assembly > Xceed.Silverlight.DragDrop Namespace > DragDropContext Class : Data Property |
'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;}
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.
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family