26 instantiations of Selection
System.Data (26)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
886
this.Context.Items.SetValue(new
Selection
(currentItem));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (4)
239
this.Context.Items.SetValue(new
Selection
(argument.Content));
256
this.Context.Items.SetValue(new
Selection
(newSelection));
342
Selection restoredSelection = null == this.lastSelection ? new
Selection
() : new
Selection
(this.lastSelection);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (3)
461
Selection selection = new
Selection
(itemsToSelect);
1088
this.Context.Items.SetValue(new
Selection
());
1395
this.Context.Items.SetValue(new
Selection
(modelItemList));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
172
this.Context.Items.SetValue(new
Selection
());
215
this.Context.Items.SetValue(new
Selection
(this.lastSelection));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (2)
297
this.context.Items.SetValue(new
Selection
(selectedModelItems));
303
this.context.Items.SetValue(new
Selection
());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (5)
202
selection = new
Selection
(list);
207
selection = new
Selection
(itemToSelect);
243
Selection selection = new
Selection
(itemToSelect);
287
Selection selection = new
Selection
(list);
321
Selection selection = new
Selection
(list);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
155
this.ParentTreeView.Context.Items.SetValue(new
Selection
());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
309
this.Context.Items.SetValue(new
Selection
(variable.Content));
326
this.Context.Items.SetValue(new
Selection
(newSelection));
501
Selection newSelection = null == this.lastSelection ? new
Selection
() : new
Selection
(this.lastSelection);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
472
this.Context.Items.SetValue(new
Selection
(new ModelItem[] { }));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
823
this.Context.Items.SetValue(new
Selection
(new ArrayList()));
879
this.Context.Items.SetValue(new
Selection
(modelItemsToSelect));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1033
this.Context.Items.SetValue(new
Selection
(selectedObjects));
163 references to Selection
System.Data (163)
cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (3)
182
this.Context.Items.Subscribe<
Selection
>(OnSelectionChanged);
202
this.Context.Items.Unsubscribe<
Selection
>(OnSelectionChanged);
205
void OnSelectionChanged(
Selection
selection)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
431
Selection
.SelectOnly(this.EditingContext, this.ModelItem);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (14)
46
private View.
Selection
_displayedSelection;
47
private View.
Selection
_lastNotifiedSelection;
104
this.designerContextItemManager.Subscribe<View.
Selection
>(this.OnSelectionChanged);
497
public void OnSelectionChanged(View.
Selection
selection)
581
private void UpdateSelectionPropertyChangedEventHooks(View.
Selection
previousSelection, View.
Selection
currentSelection)
642
private static ModelItem GetCommonParent(View.
Selection
selection)
667
private static bool CanSetSelectionName(View.
Selection
selection)
672
private static bool AreSelectionsEquivalent(View.
Selection
a, View.
Selection
b)
704
private void UpdateCategories(View.
Selection
selection, bool attachedOnly)
777
private void UpdateCategoryEditors(View.
Selection
selection)
864
private void UpdateSelectedProperty(View.
Selection
selection)
1002
private delegate void UpdateSelectedPropertyInvoker(View.
Selection
selection);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (11)
185
Selection
currentSelection = context.Items.GetValue<
Selection
>();
221
Selection
.SelectOnly(context, rootView.ModelItem);
235
Selection
currentSelection = context.Items.GetValue<
Selection
>();
423
ModelItem modelItem = context.Items.GetValue<
Selection
>().PrimarySelection;
715
Selection
selection = context.Items.GetValue<
Selection
>();
726
Selection
selection = context.Items.GetValue<
Selection
>();
743
ModelItem primarySelection = context.Items.GetValue<
Selection
>().PrimarySelection;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (3)
79
this.context.Items.Subscribe<
Selection
>(new SubscribeContextCallback<
Selection
>(this.SelectionChanged));
353
void SelectionChanged(
Selection
selection)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (5)
21
Selection
selection = context.Items.GetValue<
Selection
>();
37
Selection
selection = context.Items.GetValue<
Selection
>();
77
Selection
.SelectOnly(context, rootView.ModelItem);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\EditingContextUtilities.cs (2)
27
Selection
selection = editingContext.Items.GetValue<
Selection
>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
68
Selection
.SelectOnly(modelItem.GetEditingContext(), newModelItem);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
743
Selection
.SelectOnly(this.Context, this.itemToFocus);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (6)
66
this.editingContext.Items.Subscribe<
Selection
>(this.OnSelectionChanged);
77
void OnSelectionChanged(
Selection
selection)
123
Selection
selection = this.editingContext.Items.GetValue<
Selection
>();
352
void AddEntriesForArguments(
Selection
selection, ref int startIndex)
395
private ModelItem GetTopmostSelectedArgument(
Selection
selection, ModelItemCollection arguments)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (7)
193
ModelItem current = this.Context.Items.GetValue<
Selection
>().PrimarySelection;
244
Selection
oldSelection = this.Context.Items.GetValue<
Selection
>();
289
this.Context.Items.Subscribe<
Selection
>(new SubscribeContextCallback<
Selection
>(OnItemSelected));
294
void OnItemSelected(
Selection
selection)
342
Selection
restoredSelection = null == this.lastSelection ? new Selection() : new Selection(this.lastSelection);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (22)
393
Selection
currentSelection = this.Context.Items.GetValue<
Selection
>();
433
if (!
Selection
.MultipleObjectsSelected(this.Context) && sender != null && CommandMenuMode.Equals(CommandMenuMode.NoCommandMenu, GetCommandMenuMode(sender)))
461
if (!
Selection
.MultipleObjectsSelected(this.Context))
603
if (
Selection
.MultipleObjectsSelected(this.Context))
691
if (
Selection
.MultipleObjectsSelected(this.Context))
726
if (
Selection
.MultipleObjectsSelected(this.Context))
846
if (
Selection
.MultipleObjectsSelected(this.Context))
1027
if (
Selection
.MultipleObjectsSelected(this.Context))
1069
if (
Selection
.MultipleObjectsSelected(this.Context))
1195
Selection
.Toggle(this.Context, focusedElement.ModelItem);
1284
if (
Selection
.MultipleObjectsSelected(this.Context))
1341
Selection
selection = this.Context.Items.GetValue<
Selection
>();
1425
Selection
selection = this.Context.Items.GetValue<
Selection
>();
1453
Selection
selection = this.Context.Items.GetValue<
Selection
>();
1544
if (!
Selection
.MultipleObjectsSelected(this.Context))
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\DesignerView.xaml.cs (5)
461
Selection
selection = new Selection(itemsToSelect);
841
Selection
.Toggle(this.Context, root.ModelItem);
846
Selection
.SelectOnly(this.Context, root.ModelItem);
1355
Selection
selection = this.Context.Items.GetValue<
Selection
>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (7)
60
SubscribeContextCallback<
Selection
> onItemSelectedCallback;
80
SubscribeContextCallback<
Selection
> OnItemSelectedCallback
86
this.onItemSelectedCallback = new SubscribeContextCallback<
Selection
>(this.OnItemSelected);
189
this.Context.Items.Subscribe<
Selection
>(this.OnItemSelectedCallback);
207
this.Context.Items.Unsubscribe<
Selection
>(this.OnItemSelectedCallback);
223
this.lastSelection = this.Context.Items.GetValue<
Selection
>().PrimarySelection;
464
void OnItemSelected(
Selection
newSelection)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (3)
280
Selection
.Toggle(this.context, view.ModelItem);
309
Selection
curSelection = this.context.Items.GetValue<
Selection
>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (23)
168
return typeof(
Selection
);
183
public static
Selection
Select(EditingContext context, ModelItem itemToSelect) {
188
Selection
existing = context.Items.GetValue<
Selection
>();
195
Selection
selection = null;
222
public static
Selection
SelectOnly(EditingContext context, ModelItem itemToSelect) {
228
Selection
existing = context.Items.GetValue<
Selection
>();
243
Selection
selection = new Selection(itemToSelect);
253
public static void Subscribe(EditingContext context, SubscribeContextCallback<
Selection
> handler) {
256
context.Items.Subscribe<
Selection
>(handler);
269
public static
Selection
Toggle(EditingContext context, ModelItem itemToToggle) {
274
Selection
existing = context.Items.GetValue<
Selection
>();
287
Selection
selection = new Selection(list);
302
public static
Selection
Union(EditingContext context, ModelItem itemToAdd) {
307
Selection
existing = context.Items.GetValue<
Selection
>();
321
Selection
selection = new Selection(list);
328
Selection
selection = context.Items.GetValue<
Selection
>();
361
public static void Unsubscribe(EditingContext context, SubscribeContextCallback<
Selection
> handler) {
364
context.Items.Unsubscribe<
Selection
>(handler);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeView.xaml.cs (2)
37
Selection
.Subscribe(Context, ModelItemSelectionChanged);
47
private void ModelItemSelectionChanged(
Selection
selection)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
145
Selection
.SelectOnly(this.ParentTreeView.Context, selectedModelItem);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (3)
52
IsHighlighted =
Selection
.IsSelection(this.VisualValue);
488
this.IsHighlighted =
Selection
.IsSelection(this.VisualValue);
502
bool isPrimarySelection =
Selection
.IsPrimarySelection(this.VisualValue);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (10)
274
ModelItem current = this.Context.Items.GetValue<
Selection
>().PrimarySelection;
314
Selection
oldSelection = this.Context.Items.GetValue<
Selection
>();
336
this.Context.Items.Subscribe<
Selection
>(new SubscribeContextCallback<
Selection
>(OnItemSelected));
341
void OnItemSelected(
Selection
newSelection)
355
var current = this.Context.Items.GetValue<
Selection
>().PrimarySelection;
383
Selection
selection = this.Context.Items.GetValue<
Selection
>();
501
Selection
newSelection = null == this.lastSelection ? new Selection() : new Selection(this.lastSelection);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (7)
31
Selection
oldSelection;
51
oldSelection = this.context.Items.GetValue<
Selection
>();
54
Getter = (modelItem) => (this.context.Items.GetValue<
Selection
>().PrimarySelection == modelItem),
61
Getter = (modelItem) => (((IList)this.context.Items.GetValue<
Selection
>().SelectedObjects).Contains(modelItem)),
95
this.context.Items.Subscribe<
Selection
>(new SubscribeContextCallback<
Selection
>(OnItemSelected));
116
void OnItemSelected(
Selection
newSelection)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
458
Selection
.SelectOnly(this.Context, this.Item);
470
if (this.Context.Items.GetValue<
Selection
>().SelectedObjects.Contains(e.OldValue))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (5)
286
IList<ModelItem> selectedItems = this.Context.Items.GetValue<
Selection
>().SelectedObjects.ToList();
289
Selection
.Toggle(this.Context, selectedAndRemovedItem);
750
Selection
.SelectOnly(this.Context, insertedItem);
840
Selection
currentSelection = this.Context.Items.GetValue<
Selection
>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (19)
517
Selection
selection = this.Context.Items.GetValue<
Selection
>();
542
Selection
.SelectOnly(this.Context, this.ModelItem);
655
bool isSelected = this.Context.Items.GetValue<
Selection
>().SelectedObjects.Contains<ModelItem>(this.ModelItem);
661
Selection
.Toggle(this.Context, this.ModelItem);
676
Selection
selection = this.Context.Items.GetValue<
Selection
>();
687
Selection
.SelectOnly(this.Context, this.ModelItem);
694
Selection
.SelectOnly(this.Context, this.ModelItem);
720
Selection
selection = this.Context.Items.GetValue<
Selection
>();
762
Selection
selection = this.Context.Items.GetValue<
Selection
>();
768
Selection
.Toggle(this.Context, this.ModelItem);
772
Selection
.SelectOnly(this.Context, this.ModelItem);
827
Selection
.Toggle(this.Context, this.ModelItem);
831
Selection
.SelectOnly(this.Context, this.ModelItem);
924
Selection
selection = this.Context.Items.GetValue<
Selection
>();