18 instantiations of DataObject
PresentationCore (5)
Core\CSharp\System\Windows\Clipboard.cs (3)
572
dataObject = new
DataObject
(data);
794
dataObject = new
DataObject
(oleDataObject);
902
dataObject = new
DataObject
();
Core\CSharp\System\Windows\DragDrop.cs (2)
431
dataObject = new
DataObject
(data);
1435
dataObject = new
DataObject
((IComDataObject)data);
PresentationFramework (6)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
318
DataObject dataObject = new
DataObject
();
src\Framework\System\Windows\Controls\DataGrid.cs (1)
8350
dataObject = new
DataObject
();
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2258
dataObj = new
DataObject
();
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
245
dataObject = new
DataObject
();
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
108
dataObject = new
DataObject
();
868
dataObjectToApply = new
DataObject
();
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
549
DataObject dataObject = new
DataObject
(WorkflowClipboardFormat, clipBoardString);
581
RetriableClipboard.SetDataObject(new
DataObject
(WorkflowCallbackClipboardFormat, clipboardData, false), false);
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
98
DataObject dataObject = new
DataObject
(ModelItemsDataFormat, draggedModelItems);
151
DataObject dataObject = new
DataObject
(ModelItemDataFormat, draggedActivityModelItem);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
360
IDataObject dataObject = toolWrapper.DataObject ?? new
DataObject
();
380
IDataObject dataObject = toolWrapper.DataObject ?? new
DataObject
();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1476
dataObject = new
DataObject
((System.Runtime.InteropServices.ComTypes.IDataObject)Marshal.GetObjectForIUnknown(dataObjectPointer));
46 references to DataObject
PresentationCore (20)
Core\CSharp\System\Windows\Clipboard.cs (3)
561
if (data is
DataObject
)
563
dataObject = (
DataObject
)data;
837
string[] formats =
DataObject
.GetMappedFormats(format);
Core\CSharp\System\Windows\DataObject.cs (6)
1124
typeof(
DataObject
)); //
1138
typeof(
DataObject
)); //
1152
typeof(
DataObject
)); //
2620
internal FormatEnumerator(
DataObject
dataObject)
3876
if (
DataObject
.IsFormatAndDataSerializable(cur[mappedFormatIndex], entries[dataStoreIndex].Data))
3906
if (
DataObject
.IsFormatAndDataSerializable(baseVar[baseFormatIndex], entries[dataStoreIndex].Data))
Core\CSharp\System\Windows\DataObjectCopyingEventArgs.cs (1)
50
: base(System.Windows.
DataObject
.CopyingEvent, isDragDrop)
Core\CSharp\System\Windows\DataObjectEventArgs.cs (3)
54
if (routedEvent !=
DataObject
.CopyingEvent && routedEvent !=
DataObject
.PastingEvent && routedEvent !=
DataObject
.SettingDataEvent)
Core\CSharp\System\Windows\DataObjectPastingEventArgs.cs (1)
59
: base(System.Windows.
DataObject
.PastingEvent, isDragDrop)
Core\CSharp\System\Windows\DataObjectSettingDataEventArgs.cs (1)
44
: base(System.Windows.
DataObject
.SettingDataEvent, /*isDragDrop:*/false)
Core\CSharp\System\Windows\DragDrop.cs (5)
391
DataObject
dataObject;
426
dataObject = data as
DataObject
;
606
private static DragDropEffects OleDoDragDrop(DependencyObject dragSource,
DataObject
dataObject, DragDropEffects allowedEffects)
1429
if (data is
DataObject
)
1431
dataObject = (
DataObject
)data;
PresentationFramework (13)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
184
DataObject
.AddPastingHandler(rtb, new DataObjectPastingEventHandler(OnPastingDataObject));
318
DataObject
dataObject = new DataObject();
src\Framework\System\Windows\Controls\DataGrid.cs (1)
8340
DataObject
dataObject;
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2254
DataObject
dataObj;
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (9)
94
internal static
DataObject
_CreateDataObject(TextEditor This, bool isDragDrop)
96
DataObject
dataObject;
325
else if (This.AcceptsRichContent && hasUnmanagedCodePermission && dataObject is
DataObject
&& ((
DataObject
)dataObject).ContainsImage())
377
DataObject
dataObject = TextEditorCopyPaste._CreateDataObject(This, /*isDragDrop:*/false);
446
DataObject
dataObject = TextEditorCopyPaste._CreateDataObject(This, /*isDragDrop:*/false);
820
if (dataObjectValue is
DataObject
)
822
((
DataObject
)dataObjectValue).CriticalSetData(format, content, format == DataFormats.ApplicationTrust ? /*autoConvert:*/false : true);
851
if (formatToApply == DataFormats.Bitmap && dataObjectToApply is
DataObject
)
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (7)
549
DataObject
dataObject = new DataObject(WorkflowClipboardFormat, clipBoardString);
589
private static FrameworkName GetTargetFrameworkFromClipboard(
DataObject
dataObject)
619
DataObject
dataObject = RetriableClipboard.GetDataObject() as
DataObject
;
673
private static object TryGetData(
DataObject
dataObject, string dataFormat)
749
DataObject
dataObject = RetriableClipboard.GetDataObject() as
DataObject
;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (5)
80
internal static
DataObject
DoDragMoveImpl(IEnumerable<WorkflowViewElement> draggedViewElements, Point referencePoint)
98
DataObject
dataObject = new DataObject(ModelItemsDataFormat, draggedModelItems);
151
DataObject
dataObject = new DataObject(ModelItemDataFormat, draggedActivityModelItem);
674
public static DragDropEffects GetDragDropCompletedEffects(
DataObject
data)
710
internal static IEnumerable<WorkflowViewElement> GetDragDropMovedViewElements(
DataObject
data)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
951
DataObject
dataObject = DragDropHelper.DoDragMoveImpl(draggedViews, referencePoint);