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