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