DataObject (System.Windows.DataObject)

Inherits: System.Object

Interfaces: IDataObject, IDataObject

Derived Types: 0

Assembly: PresentationCore.dll

Provides a basic implementation of the IDataObject interface, which defines a format-independent mechanism for transferring data.

VB.NET C#

C#

public sealed class DataObject : System.Runtime.InteropServices.ComTypes.IDataObject, System.Windows.IDataObject
{
}

Articles

Using drag & drop to create new content controls - Wouter

System.Windows. DataObject dataObject = new DataObject ( "HTML Format" , message); DragDrop .DoDragDrop(mySource, dataObject, DragDropEffects .Copy);   ...

Raising Wpf Drag / Drop events - MSDN Forums

args.Data = new System.Windows. DataObject ( "SAMPLE_DATA" ); args.AllowedEffects = System.Windows. DragDropEffects .All; args.KeyStates = DragDropKeyStates .None;

3 Pasting

http://msdn2.microsoft.com/en-us/library/system.windows.dataobject.pasting.aspx

DataObject Class (System.Windows)

Provides a basic implementation of the IDataObject interface, which defines a ... System.Object    System.Windows.DataObject

Anything's Possible : DragDropLib.cs

... Use this object when using shell (or other unmanged) features /// that utilize the clipboard and/or drag and drop. /// The System.Windows.DataObject (.NET 3.0) and ...

Anything's Possible : Shell Style Drag and Drop in .NET (WPF and ...

... allows us to pass a COM IDataObject implementation as a parameter to the constructor to either of these classes (they are nearly the same whether you use System.Windows.DataObject ...

Mike's Code Blog: Drag and Drop in WPF

DragDropHandler dragDrop = new DragDropHandler(myControl, new System.Windows.DataObject(myDragData)); Where "myControl" is the WPF control the use will drag from, and "myDragData" is ...

Mike's Code Blog

DragDropHandler dragDrop = new DragDropHandler(myControl, new System.Windows.DataObject(myDragData)); Where "myControl" is the WPF control the use will drag from, and "myDragData" is ...

Custom .NET Training ASP.NET Training Silverlight Training LINQ Training IT Support