175 references to Action
PresentationFramework (123)
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (28)
411switch (args.Action) 421if (args.Action == NotifyCollectionChangedAction.Add) 436args.Action, TraceLog.IdFor(item)); 451if (args.Action == NotifyCollectionChangedAction.Add) 457else if (args.Action == NotifyCollectionChangedAction.Remove) 464args = new NotifyCollectionChangedEventArgs(args.Action, item, index); 468if (args.Action == NotifyCollectionChangedAction.Add) 476Debug.Assert(args.Action == NotifyCollectionChangedAction.Remove); 483if (args.Action == NotifyCollectionChangedAction.Add) 491Invariant.Assert(args.Action == NotifyCollectionChangedAction.Remove); 532args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems, args.OldItems, startingIndex); 606args = new NotifyCollectionChangedEventArgs(args.Action, args.OldItems, newStartingIndex, oldStartingIndex); 639_traceLog.Add("ProcessCollectionChanged action = {0}", args.Action); 670throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action)); 742TraceLog.IdFor(sender), args.Action, TraceLog.IdFor(args.OldItems[0]), TraceLog.IdFor(args.NewItems[0])); 752switch (args.Action) 755TraceContainerCollectionChange(sender, args.Action, null, args.NewItems[0]); 763args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], flatNewIndex); 767TraceContainerCollectionChange(sender, args.Action, args.OldItems[0], null); 775args = new NotifyCollectionChangedEventArgs(args.Action, args.OldItems[0], flatOldIndex); 779TraceContainerCollectionChange(sender, args.Action, args.OldItems[0], args.NewItems[0]); 783args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], args.OldItems[0], flatOldIndex); 787TraceContainerCollectionChange(sender, args.Action, args.OldItems[0], args.NewItems[0]); 800args = new NotifyCollectionChangedEventArgs(args.Action, args.OldItems[0], flatNewIndex, flatOldIndex); 807TraceLog.IdFor(sender), args.Action); 814throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action)); 1466switch (e.Action) 1494throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
407switch (args.Action)
src\Framework\System\Windows\Annotations\Annotation.cs (6)
730switch (e.Action) 762throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action)); 784switch (e.Action) 816throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action)); 833switch (e.Action) 865throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Controls\DataGrid.cs (14)
229switch (e.Action) 261visibleColumnsChanged |= (e.Action == NotifyCollectionChangedAction.Reset); 271if (visibleColumnsChanged && e.Action != NotifyCollectionChangedAction.Move) 953switch (e.Action) 5387if (e.Action == NotifyCollectionChangedAction.Reset) 5397if (e.Action == NotifyCollectionChangedAction.Remove || e.Action == NotifyCollectionChangedAction.Replace) 5404else if (e.Action == NotifyCollectionChangedAction.Reset) 7294switch (e.Action) 7439switch (e.Action) 7702if (e.Action == NotifyCollectionChangedAction.Add) 7710else if ((e.Action == NotifyCollectionChangedAction.Remove) || (e.Action == NotifyCollectionChangedAction.Replace)) 7725else if (e.Action == NotifyCollectionChangedAction.Reset)
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
91switch (e.Action)
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (5)
213switch (e.Action) 216newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), e.NewStartingIndex); 220newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.OldItems), e.OldStartingIndex); 224newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.OldItems), e.NewStartingIndex, e.OldStartingIndex); 228newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), HeadersFromColumns(e.OldItems), e.OldStartingIndex);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
697switch (e.Action)
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (2)
371if (e.Action == NotifyCollectionChangedAction.Move) 377switch (e.Action)
src\Framework\System\Windows\Controls\ItemCollection.cs (2)
2201switch (e.Action) 2262throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (3)
2405if (sender != ItemsInternal && args.Action != NotifyCollectionChangedAction.Reset) 2408switch (args.Action) 2447throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action));
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
314if (e.Action == NotifyCollectionChangedAction.Reset) 3656switch (e.Action)
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (1)
51switch (e.Action)
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
356e.Action != NotifyCollectionChangedAction.Reset || columns.Count == 0,
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (3)
153if (e.Action == NotifyCollectionChangedAction.Remove 154|| e.Action == NotifyCollectionChangedAction.Replace) 170else if (e.Action == NotifyCollectionChangedAction.Reset)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (6)
891switch (e.Action) 934throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action)); 1134if (e.Action == NotifyCollectionChangedAction.Reset || 1135(e.Action == NotifyCollectionChangedAction.Add && 1169switch (e.Action) 1273throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Controls\TabControl.cs (1)
399if (e.Action == NotifyCollectionChangedAction.Remove && SelectedIndex == -1)
src\Framework\System\Windows\Controls\TreeView.cs (2)
419switch (e.Action) 446throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
964switch (e.Action) 1001throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
955switch (e.Action)
src\Framework\System\Windows\Data\BindingGroup.cs (1)
1331switch (e.Action)
src\Framework\System\Windows\Data\BindingListCollectionView.cs (7)
1524switch (args.Action) 1585throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action)); 1837switch (e.Action) 2322if (e.Action == NotifyCollectionChangedAction.Add) 2326else if (e.Action == NotifyCollectionChangedAction.Remove) 2459switch (e.Action) 2487throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Data\CollectionView.cs (6)
937if (args.Action != NotifyCollectionChangedAction.Replace && 938args.Action != NotifyCollectionChangedAction.Move) 1097switch (args.Action) 1930if (args.Action == NotifyCollectionChangedAction.Reset) 1993switch (e.Action) 2023throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action));
src\Framework\System\Windows\Data\ListCollectionView.cs (17)
1698switch (args.Action) 1714if (args.Action != NotifyCollectionChangedAction.Reset) 1716if (args.Action != NotifyCollectionChangedAction.Remove && args.NewStartingIndex < 0 1717|| args.Action != NotifyCollectionChangedAction.Add && args.OldStartingIndex < 0) 1730if (args.Action == NotifyCollectionChangedAction.Reset) 1753if (args.Action == NotifyCollectionChangedAction.Add && _newItemIndex == -2) 1762if (args.Action != NotifyCollectionChangedAction.Remove) 1769if (args.Action != NotifyCollectionChangedAction.Add) 1782switch (args.Action) 1843NotifyCollectionChangedAction effectiveAction = args.Action; 1855if (args.Action != NotifyCollectionChangedAction.Add) 2401switch (e.Action) 2447throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action)); 2535switch (e.Action) 2563throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action)); 3025if (e.Action == NotifyCollectionChangedAction.Add) 3029else if (e.Action == NotifyCollectionChangedAction.Remove)
src\Framework\System\Windows\Documents\DocumentSequence.cs (2)
756if (args.Action == NotifyCollectionChangedAction.Add) 790throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action));
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
616if (args.Action == NotifyCollectionChangedAction.Add) 629throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action)); 660throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, args.Action));
src\Framework\System\Windows\ResourceDictionary.cs (5)
1840if (e.Action != NotifyCollectionChangedAction.Reset) 1852if (e.Action == NotifyCollectionChangedAction.Remove 1853|| e.Action == NotifyCollectionChangedAction.Replace) 1870if (e.Action == NotifyCollectionChangedAction.Add 1871|| e.Action == NotifyCollectionChangedAction.Replace)
System (1)
compmod\system\collections\specialized\marshalinghelpers.cs (1)
95(int)managedArgs.Action,
System.Activities.Core.Presentation (7)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (4)
27if (e.Action == NotifyCollectionChangedAction.Remove) 52else if (e.Action == NotifyCollectionChangedAction.Add) 76if (e.Action == NotifyCollectionChangedAction.Remove) 93else if (e.Action == NotifyCollectionChangedAction.Add)
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
247if (e.Action == NotifyCollectionChangedAction.Move)
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
95switch (e.Action)
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (1)
162switch (e.Action)
System.Activities.Presentation (21)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (3)
415switch (e.Action) 441switch (e.Action) 597switch (e.Action)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (1)
444switch (e.Action)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (4)
176if (e.Action == NotifyCollectionChangedAction.Add) 185else if (e.Action == NotifyCollectionChangedAction.Remove) 196else if (e.Action == NotifyCollectionChangedAction.Replace) 211else if (e.Action == NotifyCollectionChangedAction.Reset)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategory.cs (1)
92switch (e.Action)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
283switch (e.Action) 319switch (args.Action)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
358switch (e.Action) 390switch (e.Action)
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
294if (e.Action == NotifyCollectionChangedAction.Add) 301else if (e.Action == NotifyCollectionChangedAction.Remove)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
32if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
590if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
414switch (e.Action) 468switch (e.Action)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
241if (e.Action == NotifyCollectionChangedAction.Add 267else if (e.Action == NotifyCollectionChangedAction.Remove)
System.Data (21)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (3)
415switch (e.Action) 441switch (e.Action) 597switch (e.Action)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (1)
444switch (e.Action)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (4)
176if (e.Action == NotifyCollectionChangedAction.Add) 185else if (e.Action == NotifyCollectionChangedAction.Remove) 196else if (e.Action == NotifyCollectionChangedAction.Replace) 211else if (e.Action == NotifyCollectionChangedAction.Reset)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategory.cs (1)
92switch (e.Action)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
283switch (e.Action) 319switch (args.Action)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
358switch (e.Action) 390switch (e.Action)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
294if (e.Action == NotifyCollectionChangedAction.Add) 301else if (e.Action == NotifyCollectionChangedAction.Remove)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
32if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
590if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
414switch (e.Action) 468switch (e.Action)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
241if (e.Action == NotifyCollectionChangedAction.Add 267else if (e.Action == NotifyCollectionChangedAction.Remove)
System.Data.Services.Client (2)
System\Data\Services\Client\Binding\BindingObserver.cs (2)
296switch (eventArgs.Action) 355throw new InvalidOperationException(Strings.DataBinding_CollectionChangedUnknownAction(eventArgs.Action));