1 write to Context
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
208this.Context = parent.Context;
30 references to Context
System.Activities.Core.Presentation (30)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (5)
113IEnumerable<ModelItem> selectedStateModelItems = this.Context.Items.GetValue<Selection>().SelectedObjects 172IEnumerable<ModelItem> selectedStateModelItems = this.Context.Items.GetValue<Selection>().SelectedObjects; 297ModelItem[] selectedItems = this.Context.Items.GetValue<Selection>().SelectedObjects.ToArray(); 320ModelItem transitionModelItem = this.Context.Services.GetRequiredService<ModelTreeManager>().WrapAsModelItem(pastedTransition); 412this.Context.Items.SetValue(new Selection(modelItemsPasted));
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (24)
217Selection.Subscribe(this.Context, this.OnSelectionChangedCallback); 233Selection.Unsubscribe(this.Context, this.OnSelectionChangedCallback); 270ViewStateService viewStateService = this.Context.Services.GetService<ViewStateService>(); 279return this.Context.Services.GetService<DesignerView>(); 377ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 440ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 471StartSymbol initialNode = StartSymbol.CreateStartSymbol(this.Context); 556element = this.Context.Services.GetService<VirtualizedContainerService>().GetContainer(model, this); 648ModelService modelService = this.Context.Services.GetService<ModelService>(); 688if (this.Context != null) 690HashSet<ModelItem> selectedItems = new HashSet<ModelItem>(this.Context.Items.GetValue<Selection>().SelectedObjects); 693Selection.Toggle(this.Context, modelItem); 1261isSelected = (((Selection)this.Context.Items.GetValue<Selection>()).SelectedObjects as ICollection<ModelItem>).Contains(((VirtualizedContainerService.VirtualizingContainer)element).ModelItem); 1356ModelItem primarySelection = this.Context.Items.GetValue<Selection>().PrimarySelection; 1361Selection.Toggle(this.Context, primarySelection); 1399this.Context.Items.SetValue(newSelection); 1881IEnumerable<object> droppedObjects = DragDropHelper.GetDroppedObjects(this, e, Context); 1961view = this.Context.Services.GetService<ViewService>().GetView(droppedModelItem) as WorkflowViewElement; 2011Selection.SelectOnly(this.Context, modelItem); 2016Selection.Union(this.Context, modelItem); 2086else if (this.ModelItem.ItemType == typeof(StateMachine) && DragDropHelper.AllowDrop(e.Data, this.Context, typeof(State), typeof(FinalState), typeof(StartNode))) 2101foreach (ModelItem selectedModelItem in this.Context.Items.GetValue<Selection>().SelectedObjects) 2128Selection currentSelection = this.Context.Items.GetValue<Selection>(); 2648this.Context.Services.GetService<ModelTreeManager>().AddToCurrentEditingScope(new SuppressAddingConnectorWhenAddingStateVisual());
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (1)
147ViewStateService viewStateService = this.ParentStateContainerEditor.Context.Services.GetService<ViewStateService>();