cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (17)
101return this.Context != null
102&& this.Context.Services.GetService<DesignerConfigurationService>().AutoSurroundWithSequenceEnabled
172using (ModelEditingScope scope = this.Context.Services.GetService<ModelService>().Root.BeginEdit(SR.WrapInSequenceDescription))
174ModelItem sequenceActivity = WorkflowItemPresenter.AutoWrapInSequenceHandler(this.Context, args);
192ModelTreeManager manager = this.Context.Services.GetRequiredService<ModelTreeManager>();
458Selection.SelectOnly(this.Context, this.Item);
468if (this.Context != null)
470if (this.Context.Items.GetValue<Selection>().SelectedObjects.Contains(e.OldValue))
472this.Context.Items.SetValue(new Selection(new ModelItem[] { }));
483VirtualizedContainerService containerService = this.Context.Services.GetService<VirtualizedContainerService>();
509ModelServiceImpl modelService = (ModelServiceImpl)this.Context.Services.GetService<ModelService>();
515using (ModelEditingScope editingScope = this.Context.Services.GetService<ModelService>().Root.BeginEdit(SR.PropertyChangeEditingScopeDescription))
562ModelTreeManager manager = this.Context.Services.GetService<ModelTreeManager>();
612if (!DragDropHelper.AllowDrop(args.Data, this.Context, this.AllowedItemType))
1017ModelItemHelper.TryCreateImmediateEditingScopeAndExecute(this.wfItemPresenter.Context, SR.WrapInSequenceDescription, (es) =>
1039ModelItemHelper.TryCreateImmediateEditingScopeAndExecute(this.wfItemPresenter.Context, SR.WrapInSequenceDescription, (es) =>
1179&& DragDropHelper.AllowDrop(e.Data, this.wfItemPresenter.Context, typeof(Activity))); // Is the item being dragged allowed to be dropped onto Sequence?