55 references to DragDropHelper
System.Data (55)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (4)
302ICompositeView container = (ICompositeView)DragDropHelper.GetCompositeView((WorkflowViewElement)modelItem.View); 395ICompositeView container = (ICompositeView)DragDropHelper.GetCompositeView(childElement); 401container = (ICompositeView)DragDropHelper.GetCompositeView(childElement); 518pasteContainer = (ICompositeView)DragDropHelper.GetCompositeView((WorkflowViewElement)pasteModelItem.View);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (1)
52ICompositeView container = (ICompositeView)DragDropHelper.GetCompositeView((WorkflowViewElement)item.View);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (5)
34DependencyProperty.RegisterAttached("DragSource", typeof(UIElement), typeof(DragDropHelper), new UIPropertyMetadata(null)); 67workflowViewElement.SetValue(DragDropHelper.DragSourceProperty, dragSource); 77return (UIElement)workflowViewElement.GetValue(DragDropHelper.DragSourceProperty); 604ICompositeView container = DragDropHelper 847Dictionary<WorkflowViewElement, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (1)
232ModelItem draggedModelItem = DragDropHelper.GetDraggedModelItemInternal(e);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (1)
211if (this.AutoSplitEnabled && this.AutoSplitContainer != null && DragDropHelper.GetDraggedObjectCount(e) == 1 && this.AutoSplitContainer.CanAutoSplit(e))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
241if (this.AutoConnectEnabled && DragDropHelper.GetDraggedObjectCount(e) == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
361dataObject.SetData(DragDropHelper.WorkflowItemTypeNameFormat, toolWrapper.Type.AssemblyQualifiedName); 381dataObject.SetData(DragDropHelper.WorkflowItemTypeNameFormat, toolWrapper.Type.AssemblyQualifiedName);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (3)
1414typeName = context.GetData(DragDropHelper.WorkflowItemTypeNameFormat) as string; 1484activityType = Type.GetType((string)dataObject.GetData(DragDropHelper.WorkflowItemTypeNameFormat)); 1487object instance = DragDropHelper.GetDroppedObjectInstance(viewElement, this.Context, activityType, dataObject);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (3)
77DragDropHelper.ViewElementDragShadow viewElementDragShadow; 466internal void BeginDragShadowTracking(DragDropHelper.ViewElementDragShadow dragShadow) 479internal void EndDragShadowTracking(DragDropHelper.ViewElementDragShadow dragShadow)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (1)
271DragDropHelper.SetCompositeView(itemView, (UIElement)sourceContainer);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (14)
146WorkflowItemPresenter container = DragDropHelper.GetCompositeView(view) as WorkflowItemPresenter; 228if (!DragDropHelper.IsDraggingFromToolbox(e)) 231DragDropHelper.SetDragDropMovedViewElements(e, movedViewElements); 237DragDropHelper.SetDragDropCompletedEffects(e, DragDropEffects.Move); 537IEnumerable<object> droppedObjects = DragDropHelper.GetDroppedObjects(this, args, this.context); 538return DragDropHelper.SortSelectedObjects(droppedObjects); 547DragDropHelper.SetDragDropCompletedEffects(args, DragDropEffects.Move); 551DragDropHelper.SetDragDropMovedViewElements(args, new WorkflowViewElement[] { ((ModelItem)droppedObject).View as WorkflowViewElement }); 574DragDropHelper.SetDragDropCompletedEffects(e, DragDropEffects.None); 612if (!DragDropHelper.AllowDrop(args.Data, this.Context, this.AllowedItemType)) 1178&& DragDropHelper.AllowDrop(typeof(Sequence), this.wfItemPresenter.AllowedItemType) // Is Sequence allowed to be dropped inside the WIP? Beause it will trigger AutoWrap. 1179&& DragDropHelper.AllowDrop(e.Data, this.wfItemPresenter.Context, typeof(Activity))); // Is the item being dragged allowed to be dropped onto Sequence? 1194if (DragDropHelper.IsDraggingFromToolbox(e)) 1198IEnumerable<ModelItem> draggedObjects = DragDropHelper.GetDraggedModelItems(e);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (9)
608DragDropHelper.ValidateItemsAreOnView(movedItems, this.Items); 616DragDropHelper.SetDragDropCompletedEffects(e, DragDropEffects.None); 617List<object> droppedObjects = new List<object>(DragDropHelper.GetDroppedObjects(this, e, Context)); 624List<object> sortedDroppingList = DragDropHelper.SortSelectedObjects(droppedObjects); 637UIElement container = DragDropHelper.GetCompositeView(view); 676DragDropHelper.SetDragDropCompletedEffects(e, DragDropEffects.Move); 678DragDropHelper.SetDragDropMovedViewElements(e, movedViewElements); 689bool valid = DragDropHelper.AreListsIdenticalExceptOrder(src, copied); 783if (!DragDropHelper.AllowDrop(e.Data, this.Context, this.AllowedItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (10)
238containerBinding.Path = new PropertyPath(DragDropHelper.DragSourceProperty); 733(DragDropHelper.GetCompositeView((WorkflowViewElement)p.View) as ICompositeView) != null; 926IEnumerable<ModelItem> modelItemsToDrag = DragDropHelper.GetModelItemsToDrag(selectedObjects); 933ICompositeView container = DragDropHelper.GetCompositeView(view) as ICompositeView; 951DataObject dataObject = DragDropHelper.DoDragMoveImpl(draggedViews, referencePoint); 952IEnumerable<WorkflowViewElement> movedViewElements = DragDropHelper.GetDragDropMovedViewElements(dataObject); 962ICompositeView compView = DragDropHelper.GetCompositeView(view) as ICompositeView; 998DragDropEffects executedDragDropEffect = DragDropHelper.GetDragDropCompletedEffects(dataObject); 1016|| DragDropHelper.GetDragDropCompletedEffects(dataObject) == DragDropEffects.Move; 1051Dictionary<WorkflowViewElement, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements);