Implemented interface member:
68 references to Add
PresentationFramework (43)
MS\Internal\Documents\DocumentGridContextMenu.cs (2)
195this.Items.Add(new Separator()); 223this.Items.Add(menuItem);
System\Windows\Controls\ItemsControl.cs (2)
1269Items.Add(value); 1288Items.Add(text);
System\Windows\Controls\Primitives\ScrollBar.cs (30)
844verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 845verticalContextMenu.Items.Add(new Separator()); 846verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand)); 847verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand)); 848verticalContextMenu.Items.Add(new Separator()); 849verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand)); 850verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand)); 851verticalContextMenu.Items.Add(new Separator()); 852verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand)); 853verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand)); 864horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 865horizontalContextMenuLeftToRight.Items.Add(new Separator()); 866horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand)); 867horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand)); 868horizontalContextMenuLeftToRight.Items.Add(new Separator()); 869horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand)); 870horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand)); 871horizontalContextMenuLeftToRight.Items.Add(new Separator()); 872horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand)); 873horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand)); 884horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 885horizontalContextMenuRightToLeft.Items.Add(new Separator()); 886horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand)); 887horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand)); 888horizontalContextMenuRightToLeft.Items.Add(new Separator()); 889horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand)); 890horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand)); 891horizontalContextMenuRightToLeft.Items.Add(new Separator()); 892horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand)); 893horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand));
System\windows\Documents\TextEditorContextMenu.cs (9)
473this.Items.Add(new Separator()); 498this.Items.Add(menuItem); 509this.Items.Add(menuItem); 517this.Items.Add(menuItem); 580this.Items.Add(menuItem); 593this.Items.Add(menuItem); 610this.Items.Add(menuItem); 616this.Items.Add(menuItem); 622this.Items.Add(menuItem);
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1098DigitalSignaturesMenuItem.Items.Add(menuItem); 1103DigitalSignaturesMenuItem.Items.Add(menuItem); 1108DigitalSignaturesMenuItem.Items.Add(menuItem); 1837ZoomComboBox.Items.Add(newItem);
Roslyn.VisualStudio.DiagnosticsWindow (4)
DiagnosticsWindow.cs (3)
62tabControl.Items.Add(perfMarginPanel); 63tabControl.Items.Add(telemetryPanel); 64tabControl.Items.Add(workspacePanel);
PerfMargin\PerfMarginPanel.cs (1)
110listView.Items.Add(s);
System.Windows.Controls.Ribbon (17)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
2482ribbon.QuickAccessToolBar.Items.Add(e.CloneInstance);
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (14)
283_defaultRibbonClientAreaContextMenu.Items.Add(GenerateQATPlacementMenuItem(_defaultRibbonClientAreaContextMenu)); 284_defaultRibbonClientAreaContextMenu.Items.Add(new RibbonSeparator()); 285_defaultRibbonClientAreaContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_defaultRibbonClientAreaContextMenu)); 296_ribbonControlContextMenu.Items.Add(GenerateAddToOrRemoveFromQATItem(false, _ribbonControlContextMenu)); 297_ribbonControlContextMenu.Items.Add(new RibbonSeparator()); 298_ribbonControlContextMenu.Items.Add(GenerateQATPlacementMenuItem(_ribbonControlContextMenu)); 299_ribbonControlContextMenu.Items.Add(new RibbonSeparator()); 300_ribbonControlContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_ribbonControlContextMenu)); 311_qatControlContextMenu.Items.Add(GenerateAddToOrRemoveFromQATItem(true, _qatControlContextMenu)); 312_qatControlContextMenu.Items.Add(new RibbonSeparator()); 313_qatControlContextMenu.Items.Add(GenerateQATPlacementMenuItem(_qatControlContextMenu)); 314_qatControlContextMenu.Items.Add(new RibbonSeparator()); 315_qatControlContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_qatControlContextMenu)); 329_galleryContextMenu.Items.Add(addGalleryToQATItem);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1985wrapperButton.Items.Add(clone); 2254cloneItemsControl.Items.Add(clonedItem);