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