52 references to PrimarySelection
System.Activities.Presentation (52)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (11)
135return _displayedSelection.PrimarySelection.Name; 149ModelItem selection = _displayedSelection.PrimarySelection; 210Visual selectedVisual = _displayedSelection.PrimarySelection.View as Visual; 214if (selectedVisual != null && !typeof(Window).IsAssignableFrom(_displayedSelection.PrimarySelection.View.GetType())) 268return GetStringRepresentation(_displayedSelection.PrimarySelection.ItemType); 536if (_lastNotifiedSelection != null && _lastNotifiedSelection.PrimarySelection != null) 539FrameworkElement selectedElement = _lastNotifiedSelection.PrimarySelection.View as FrameworkElement; 583if (previousSelection != null && previousSelection.PrimarySelection != null) 585previousSelection.PrimarySelection.PropertyChanged -= OnSelectedItemPropertyChanged; 588if (currentSelection != null && currentSelection.PrimarySelection != null) 590currentSelection.PrimarySelection.PropertyChanged += OnSelectedItemPropertyChanged;
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
423ModelItem modelItem = context.Items.GetValue<Selection>().PrimarySelection; 743ModelItem primarySelection = context.Items.GetValue<Selection>().PrimarySelection;
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (1)
355this.selectedModelItem = selection.PrimarySelection;
System.Activities.Presentation\System\Activities\Presentation\EditingContextUtilities.cs (1)
30return selection.PrimarySelection;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
79if (selection.PrimarySelection != this.lastNavigatedItem) 127if (selection.SelectionCount == 1 && selection.PrimarySelection == modelService.Root)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
193ModelItem current = this.Context.Items.GetValue<Selection>().PrimarySelection;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (11)
401if (null != currentSelection.PrimarySelection.View) 403target = currentSelection.PrimarySelection.View; 1342if (selection.SelectionCount != 0 && selection.PrimarySelection.View != null) 1344return (UIElement)selection.PrimarySelection.View; 1426if (selection.SelectionCount == 1 && selection.PrimarySelection.View is WorkflowViewElement) 1428WorkflowViewElement viewElement = (WorkflowViewElement)selection.PrimarySelection.View; 1455Fx.Assert(selection.PrimarySelection.View is WorkflowViewElement, "selection.PrimarySelection.View should be WorkflowViewElement type."); 1457WorkflowViewElement viewElement = (WorkflowViewElement)selection.PrimarySelection.View; 1563ContextMenuUtilities.OnAddAnnotationCommandExecuted(e, this.Context.Items.GetValue<Selection>().PrimarySelection); 1574ContextMenuUtilities.OnEditAnnotationCommandExecuted(e, this.Context.Items.GetValue<Selection>().PrimarySelection); 1584ContextMenuUtilities.OnDeleteAnnotationCommandExecuted(e, this.Context.Items.GetValue<Selection>().PrimarySelection);
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
223this.lastSelection = this.Context.Items.GetValue<Selection>().PrimarySelection;
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
319ModelItem item = curSelection.PrimarySelection;
System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (3)
191if (existing.PrimarySelection == itemToSelect) { 229if (existing.PrimarySelection == itemToSelect) { 310if (existing.PrimarySelection == itemToAdd) {
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeView.xaml.cs (2)
56if (selection.PrimarySelection != null) 58TreeViewItemViewModel itemToBeSelected = DesignerTreeAutoExpandHelper.Expand(this.rootModelItemViewModel, selection.PrimarySelection);
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (3)
274ModelItem current = this.Context.Items.GetValue<Selection>().PrimarySelection; 355var current = this.Context.Items.GetValue<Selection>().PrimarySelection; 364this.OnItemSelectedCore(newSelection.PrimarySelection);
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (12)
54Getter = (modelItem) => (this.context.Items.GetValue<Selection>().PrimarySelection == modelItem), 123if (newSelection.PrimarySelection != null && !newSelection.PrimarySelection.Equals(oldSelection.PrimarySelection)) 125isPrimarySelectionProperty.NotifyPropertyChanged(oldSelection.PrimarySelection); 126isPrimarySelectionProperty.NotifyPropertyChanged(newSelection.PrimarySelection); 128else if (newSelection.PrimarySelection == null) 130isPrimarySelectionProperty.NotifyPropertyChanged(oldSelection.PrimarySelection); 144if (oldSelection.PrimarySelection != null) 146helpService.RemoveContextAttribute(string.Empty, GetF1HelpTypeKeyword(oldSelection.PrimarySelection.ItemType)); 149if (newSelection.PrimarySelection != null) 151helpService.AddContextAttribute(string.Empty, GetF1HelpTypeKeyword(newSelection.PrimarySelection.ItemType), HelpKeywordType.F1Keyword);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
841index = this.Items.IndexOf(currentSelection.PrimarySelection);