|
System.Windows. DataObject dataObject = new DataObject ( "HTML Format" , message); DragDrop .DoDragDrop(mySource, dataObject, DragDropEffects .Copy); ...
|
|
args.Data = new System.Windows. DataObject ( "SAMPLE_DATA" ); args.AllowedEffects = System.Windows. DragDropEffects .All; args.KeyStates = DragDropKeyStates .None;
|
|
http://msdn2.microsoft.com/en-us/library/system.windows.dataobject.pasting.aspx
|
|
Provides a basic implementation of the IDataObject interface, which defines a ... System.Object System.Windows.DataObject
|
|
... 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 ...
|
|
... 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 ...
|
|
DragDropHandler dragDrop = new DragDropHandler(myControl, new System.Windows.DataObject(myDragData)); Where "myControl" is the WPF control the use will drag from, and "myDragData" is ...
|
|
DragDropHandler dragDrop = new DragDropHandler(myControl, new System.Windows.DataObject(myDragData)); Where "myControl" is the WPF control the use will drag from, and "myDragData" is ...
|