14 instantiations of DataObject
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
InteractivePaste\InteractivePasteCommandHandlerTests.vb (1)
232Dim data = New DataObject()
PresentationCore (5)
System\Windows\clipboard.cs (3)
481dataObject = new DataObject(data); 626dataObject = new DataObject(oleDataObject); 710dataObject = new DataObject();
System\Windows\DragDrop.cs (2)
409dataObject = new DataObject(data); 1397dataObject = new DataObject((IComDataObject)data);
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
24DataObject dataObject = new();
PresentationFramework (6)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
312DataObject dataObject = new DataObject();
System\Windows\Controls\DataGrid.cs (1)
8329DataObject dataObject = new DataObject();
System\Windows\Controls\InkCanvas.cs (1)
2149dataObj = new DataObject();
System\Windows\Documents\RubberbandSelector.cs (1)
174dataObject = new DataObject();
System\windows\Documents\TextEditorCopyPaste.cs (2)
84dataObject = new DataObject(); 700dataObjectToApply = new DataObject();
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
68System.Windows.DataObject dataObject = new System.Windows.DataObject(data);
38 references to DataObject
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
InteractivePaste\InteractivePasteCommandHandlerTests.vb (2)
255Private _data As DataObject 262_data = DirectCast(data, DataObject)
Microsoft.VisualStudio.LanguageServices (2)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
23DataObject.AddPastingHandler(this, OnPaste);
StackTraceExplorer\StackTraceExplorerRoot.xaml.cs (1)
27DataObject.AddPastingHandler(this, OnPaste);
PresentationCore (19)
System\Windows\clipboard.cs (3)
471if (data is DataObject) 473dataObject = (DataObject)data; 645string[] formats = DataObject.GetMappedFormats(format);
System\Windows\dataobject.cs (5)
936typeof(DataObject)); // 950typeof(DataObject)); // 964typeof(DataObject)); // 2275internal FormatEnumerator(DataObject dataObject) 3438if (DataObject.IsFormatAndDataSerializable(cur[mappedFormatIndex], entries[dataStoreIndex].Data))
System\Windows\DataObjectCopyingEventArgs.cs (1)
49: base(System.Windows.DataObject.CopyingEvent, isDragDrop)
System\Windows\DataObjectEventArgs.cs (3)
53if (routedEvent != DataObject.CopyingEvent && routedEvent != DataObject.PastingEvent && routedEvent != DataObject.SettingDataEvent)
System\Windows\DataObjectPastingEventArgs.cs (1)
57: base(System.Windows.DataObject.PastingEvent, isDragDrop)
System\Windows\DataObjectSettingDataEventArgs.cs (1)
43: base(System.Windows.DataObject.SettingDataEvent, /*isDragDrop:*/false)
System\Windows\DragDrop.cs (5)
378DataObject dataObject; 404dataObject = data as DataObject; 568private static DragDropEffects OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects) 1391if (data is DataObject) 1393dataObject = (DataObject)data;
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
24DataObject dataObject = new();
PresentationFramework (11)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
178DataObject.AddPastingHandler(rtb, new DataObjectPastingEventHandler(OnPastingDataObject)); 312DataObject dataObject = new DataObject();
System\Windows\Controls\DataGrid.cs (1)
8329DataObject dataObject = new DataObject();
System\Windows\Controls\InkCanvas.cs (1)
2148DataObject dataObj;
System\windows\Documents\TextEditorCopyPaste.cs (7)
73internal static DataObject _CreateDataObject(TextEditor This, bool isDragDrop) 75DataObject dataObject; 266else if (This.AcceptsRichContent && dataObject is DataObject && ((DataObject)dataObject).ContainsImage()) 295DataObject dataObject = TextEditorCopyPaste._CreateDataObject(This, /*isDragDrop:*/false); 341DataObject dataObject = TextEditorCopyPaste._CreateDataObject(This, /*isDragDrop:*/false); 686if (formatToApply == DataFormats.Bitmap && dataObjectToApply is DataObject)
PresentationUI (3)
MS\Internal\Documents\Application\PageTextBox.cs (1)
358DataObject.AddPastingHandler(this, new DataObjectPastingEventHandler(OnPaste));
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
511DataObject.AddPastingHandler(this, new DataObjectPastingEventHandler(OnPaste));
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
68System.Windows.DataObject dataObject = new System.Windows.DataObject(data);