14 instantiations of DataObject
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
InteractivePaste\InteractivePasteCommandHandlerTests.vb (1)
232Dim data = New DataObject()
PresentationCore (5)
System\Windows\clipboard.cs (3)
473dataObject = new DataObject(data); 618dataObject = new DataObject(oleDataObject); 702dataObject = new DataObject();
System\Windows\DragDrop.cs (2)
402dataObject = new DataObject(data); 1390dataObject = new DataObject((IComDataObject)data);
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
24DataObject dataObject = new();
PresentationFramework (6)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
307DataObject dataObject = new DataObject();
System\Windows\Controls\DataGrid.cs (1)
8326DataObject dataObject = new DataObject();
System\Windows\Controls\InkCanvas.cs (1)
2137dataObj = new DataObject();
System\Windows\Documents\RubberbandSelector.cs (1)
164dataObject = new DataObject();
System\windows\Documents\TextEditorCopyPaste.cs (2)
71dataObject = new DataObject(); 687dataObjectToApply = 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)
463if (data is DataObject) 465dataObject = (DataObject)data; 637string[] formats = DataObject.GetMappedFormats(format);
System\Windows\dataobject.cs (5)
927typeof(DataObject)); // 941typeof(DataObject)); // 955typeof(DataObject)); // 2260internal FormatEnumerator(DataObject dataObject) 3406if (DataObject.IsFormatAndDataSerializable(cur[mappedFormatIndex], entries[dataStoreIndex].Data))
System\Windows\DataObjectCopyingEventArgs.cs (1)
47: base(System.Windows.DataObject.CopyingEvent, isDragDrop)
System\Windows\DataObjectEventArgs.cs (3)
51if (routedEvent != DataObject.CopyingEvent && routedEvent != DataObject.PastingEvent && routedEvent != DataObject.SettingDataEvent)
System\Windows\DataObjectPastingEventArgs.cs (1)
48: base(System.Windows.DataObject.PastingEvent, isDragDrop)
System\Windows\DataObjectSettingDataEventArgs.cs (1)
41: base(System.Windows.DataObject.SettingDataEvent, /*isDragDrop:*/false)
System\Windows\DragDrop.cs (5)
371DataObject dataObject; 397dataObject = data as DataObject; 561private static DragDropEffects OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects) 1384if (data is DataObject) 1386dataObject = (DataObject)data;
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
24DataObject dataObject = new();
PresentationFramework (11)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
173DataObject.AddPastingHandler(rtb, new DataObjectPastingEventHandler(OnPastingDataObject)); 307DataObject dataObject = new DataObject();
System\Windows\Controls\DataGrid.cs (1)
8326DataObject dataObject = new DataObject();
System\Windows\Controls\InkCanvas.cs (1)
2136DataObject dataObj;
System\windows\Documents\TextEditorCopyPaste.cs (7)
60internal static DataObject _CreateDataObject(TextEditor This, bool isDragDrop) 62DataObject dataObject; 253else if (This.AcceptsRichContent && dataObject is DataObject && ((DataObject)dataObject).ContainsImage()) 282DataObject dataObject = TextEditorCopyPaste._CreateDataObject(This, /*isDragDrop:*/false); 328DataObject dataObject = TextEditorCopyPaste._CreateDataObject(This, /*isDragDrop:*/false); 673if (formatToApply == DataFormats.Bitmap && dataObjectToApply is DataObject)
PresentationUI (3)
MS\Internal\Documents\Application\PageTextBox.cs (1)
356DataObject.AddPastingHandler(this, new DataObjectPastingEventHandler(OnPaste));
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
509DataObject.AddPastingHandler(this, new DataObjectPastingEventHandler(OnPaste));
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
68System.Windows.DataObject dataObject = new System.Windows.DataObject(data);