89 references to Context
System.Activities.Presentation (89)
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
117Context = null != ActiveDesignerView ? ActiveDesignerView.Context : null,
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (1)
184this.designerConfigurationService = view.Context.Services.GetService<DesignerConfigurationService>();
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
155this.designerConfigurationService = view.Context.Services.GetService<DesignerConfigurationService>();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (56)
220return null != this.Context.Services.GetService<ICommandService>(); 225return null != this.Context.Services.GetService<IDesignerDebugView>() && this.isCommandServiceEnabled(); 230return this.Context.Services.GetService<ICommandService>().IsCommandSupported(commandId); 242WorkflowViewService viewService = (WorkflowViewService)this.Context.Services.GetService<ViewService>(); 270WorkflowViewService viewService = (WorkflowViewService)this.Context.Services.GetService<ViewService>(); 282IDesignerDebugView debugView = this.Context.Services.GetService<IDesignerDebugView>(); 393Selection currentSelection = this.Context.Items.GetValue<Selection>(); 411shouldDisplayMenu = Context.Services.GetService<DesignerConfigurationService>().MultipleItemsContextMenuEnabled; 433if (!Selection.MultipleObjectsSelected(this.Context) && sender != null && CommandMenuMode.Equals(CommandMenuMode.NoCommandMenu, GetCommandMenuMode(sender))) 461if (!Selection.MultipleObjectsSelected(this.Context)) 603if (Selection.MultipleObjectsSelected(this.Context)) 691if (Selection.MultipleObjectsSelected(this.Context)) 726if (Selection.MultipleObjectsSelected(this.Context)) 752e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCopy(this.Context); 759this.Context.Services.GetService<DesignerPerfEventProvider>().WorkflowDesignerCopyStart(); 760CutCopyPasteHelper.DoCopy(this.Context); 762this.Context.Services.GetService<DesignerPerfEventProvider>().WorkflowDesignerCopyEnd(); 767e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanPaste(this.Context); 779CutCopyPasteHelper.DoPaste(this.Context, contextMenuTopLeft, sourceElement); 783CutCopyPasteHelper.DoPaste(this.Context); 792e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCut(this.Context); 799CutCopyPasteHelper.DoCut(this.Context); 806e.CanExecute = !this.IsReadOnly && DeleteHelper.CanDelete(this.Context); 813DeleteHelper.Delete(this.Context); 846if (Selection.MultipleObjectsSelected(this.Context)) 974this.Context.Services.GetService<UndoEngine>().Undo(); 986this.Context.Services.GetService<UndoEngine>().Redo(); 1027if (Selection.MultipleObjectsSelected(this.Context)) 1047VirtualizedContainerService virtualizingContainerService = this.Context.Services.GetService<VirtualizedContainerService>(); 1069if (Selection.MultipleObjectsSelected(this.Context)) 1119VirtualizedContainerService virtualizingContainerService = this.Context.Services.GetService<VirtualizedContainerService>(); 1195Selection.Toggle(this.Context, focusedElement.ModelItem); 1284if (Selection.MultipleObjectsSelected(this.Context)) 1341Selection selection = this.Context.Items.GetValue<Selection>(); 1425Selection selection = this.Context.Items.GetValue<Selection>(); 1453Selection selection = this.Context.Items.GetValue<Selection>(); 1487object instance = DragDropHelper.GetDroppedObjectInstance(viewElement, this.Context, activityType, dataObject); 1544if (!Selection.MultipleObjectsSelected(this.Context)) 1558ContextMenuUtilities.OnAddAnnotationCommandCanExecute(e, this.Context); 1563ContextMenuUtilities.OnAddAnnotationCommandExecuted(e, this.Context.Items.GetValue<Selection>().PrimarySelection); 1569ContextMenuUtilities.OnDeleteAnnotationCommandCanExecute(e, this.Context); 1574ContextMenuUtilities.OnEditAnnotationCommandExecuted(e, this.Context.Items.GetValue<Selection>().PrimarySelection); 1579ContextMenuUtilities.OnDeleteAnnotationCommandCanExecute(e, this.Context); 1584ContextMenuUtilities.OnDeleteAnnotationCommandExecuted(e, this.Context.Items.GetValue<Selection>().PrimarySelection); 1601ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 1602AnnotationAdornerService annotationService = this.Context.Services.GetService<AnnotationAdornerService>(); 1603ViewStateService viewStateService = this.Context.Services.GetService<ViewStateService>(); 1625ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 1626AnnotationAdornerService annotationService = this.Context.Services.GetService<AnnotationAdornerService>(); 1627ViewStateService viewStateService = this.Context.Services.GetService<ViewStateService>(); 1637ContextMenuUtilities.OnDeleteAllAnnotationCommandCanExecute(e, this.Context); 1642ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 1643AnnotationAdornerService annotationService = this.Context.Services.GetService<AnnotationAdornerService>(); 1644ViewStateService viewStateService = this.Context.Services.GetService<ViewStateService>(); 1691IDesignerDebugView debuggerService = this.Context.Services.GetService<IDesignerDebugView>(); 1692ICommandService commandService = this.Context.Services.GetService<ICommandService>();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (30)
122this.sqmService = this.Context.Services.GetService<IVSSqmService>(); 166ViewStateService viewStateService = this.Context.Services.GetService<ViewStateService>(); 256ViewStateService viewStateService = this.Context.Services.GetService<ViewStateService>(); 281ReadOnlyState state = this.Context.Items.GetValue<ReadOnlyState>(); 283this.Context.Items.Subscribe<ReadOnlyState>(OnReadOnlyStateChanged); 385DesignerConfigurationService configurationService = this.Context.Services.GetService<DesignerConfigurationService>(); 398DesignerConfigurationService configurationService = this.Context.Services.GetService<DesignerConfigurationService>(); 449ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 452WorkflowViewService viewService = this.Context.Services.GetService<ViewService>() as WorkflowViewService; 462this.Context.Items.SetValue(selection); 475this.Context.Services.GetService<WindowHelperService>().RegisterWindowMessageHandler(new WindowMessage(OnMessage)); 485this.Context.Services.GetService<WindowHelperService>().UnregisterWindowMessageHandler(new WindowMessage(OnMessage)); 549WorkflowViewService viewService = this.Context.Services.GetService<ViewService>() as WorkflowViewService; 841Selection.Toggle(this.Context, root.ModelItem); 846Selection.SelectOnly(this.Context, root.ModelItem); 871designerView.Context.Items.SetValue(new ReadOnlyState() { IsReadOnly = (bool)e.NewValue }); 1062VirtualizedContainerService containerService = this.Context.Services.GetService<VirtualizedContainerService>(); 1088this.Context.Items.SetValue(new Selection()); 1351IWorkflowDesignerStorageService service = this.Context.Services.GetService<IWorkflowDesignerStorageService>(); 1352ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 1355Selection selection = this.Context.Items.GetValue<Selection>(); 1377IWorkflowDesignerStorageService service = this.Context.Services.GetService<IWorkflowDesignerStorageService>(); 1378ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 1395this.Context.Items.SetValue(new Selection(modelItemList)); 1403IWorkflowDesignerStorageService service = this.Context.Services.GetService<IWorkflowDesignerStorageService>(); 1404DesignerView designerView = this.Context.Services.GetService<DesignerView>(); 1424IWorkflowDesignerStorageService service = this.Context.Services.GetService<IWorkflowDesignerStorageService>(); 1425ModelTreeManager modelTreeManager = this.Context.Services.GetService<ModelTreeManager>(); 1443IWorkflowDesignerStorageService service = this.Context.Services.GetService<IWorkflowDesignerStorageService>(); 1459IWorkflowDesignerStorageService service = this.Context.Services.GetService<IWorkflowDesignerStorageService>();