40 references to Data
PresentationCore (2)
Core\CSharp\System\Windows\DragDrop.cs (2)
1267if (e.Data == null) 1295if (e.Data == null)
PresentationFramework (6)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (6)
540if (e.Data == null || e.AllowedEffects == DragDropEffects.None) 608e.Handled = TextEditorCopyPaste._DoPaste(_textEditor, e.Data, /*isDragDrop:*/true); 822if (e.Data == null) 829if (TextEditorCopyPaste.GetPasteApplyFormat(This, e.Data) == string.Empty) 870if (e.Data == null) 877if (TextEditorCopyPaste.GetPasteApplyFormat(This, e.Data) == string.Empty)
System.Activities.Core.Presentation (10)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (3)
1931return DragDropHelper.AllowDrop(e.Data, this.Context, typeof(Activity), typeof(FlowNode), typeof(StartNode)); 2333List<Type> draggedTypes = DragDropHelper.GetDraggedTypes(e.Data); 2385ModelItem draggedModelItem = e.Data.GetData(DragDropHelper.ModelItemDataFormat) as ModelItem;
System\Activities\Core\Presentation\ParallelSeparator.xaml.cs (1)
67DragDropHelper.AllowDrop(e.Data, this.Context, this.AllowedItemType))
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (5)
2064IEnumerable<ModelItem> modelItems = e.Data.GetData(DragDropHelper.ModelItemsDataFormat) as IEnumerable<ModelItem>; 2086else if (this.ModelItem.ItemType == typeof(StateMachine) && DragDropHelper.AllowDrop(e.Data, this.Context, typeof(State), typeof(FinalState), typeof(StartNode))) 2417List<Type> types = DragDropHelper.GetDraggedTypes(e.Data); 2589ModelItem draggedModelItem = e.Data.GetData(DragDropHelper.ModelItemDataFormat) as ModelItem; 2603List<Type> draggedTypes = DragDropHelper.GetDraggedTypes(e.Data);
System\Activities\Core\Presentation\VerticalConnector.xaml.cs (1)
62DragDropHelper.AllowDrop(e.Data, this.Context, this.AllowedItemType))
System.Activities.Presentation (22)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (19)
319return e.Data.GetDataPresent(WorkflowItemTypeNameFormat); 325if (e.Data.GetDataPresent(ModelItemsDataFormat)) 327IEnumerable<ModelItem> droppedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>; 335object droppedObject = e.Data.GetData(ModelItemDataFormat) as ModelItem; 340if (e.Data.GetDataPresent(WorkflowItemTypeNameFormat)) 342string text = e.Data.GetData(WorkflowItemTypeNameFormat) as string; 349droppedObject = GetDroppedObjectInstance(dropTarget, context, type, e.Data); 530IEnumerable<ModelItem> draggedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>; 537ModelItem draggedItem = e.Data.GetData(ModelItemDataFormat) as ModelItem; 643return (ICompositeView)e.Data.GetData(CompositeViewFormat); 649if (e.Data.GetDataPresent(DragAnchorPointFormat)) 651referencePoint = (Point)e.Data.GetData(DragAnchorPointFormat); 665e.Data.SetData(CompletedEffectsFormat, completedEffects); 702e.Data.SetData(MovedViewElementsFormat, movedViewElements); 726return GetDraggedTypes(e.Data).Count; 771if (e.Data.GetDataPresent(ModelItemsDataFormat)) 773IEnumerable<ModelItem> draggedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>; 785else if (e.Data.GetDataPresent(ModelItemDataFormat)) 787ModelItem draggedModelItem = e.Data.GetData(ModelItemDataFormat) as ModelItem;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
612if (!DragDropHelper.AllowDrop(args.Data, this.Context, this.AllowedItemType)) 1179&& DragDropHelper.AllowDrop(e.Data, this.wfItemPresenter.Context, typeof(Activity))); // Is the item being dragged allowed to be dropped onto Sequence?
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
783if (!DragDropHelper.AllowDrop(e.Data, this.Context, this.AllowedItemType))