Implemented interface member:
68 references to Add
PresentationFramework (43)
MS\Internal\Documents\DocumentGridContextMenu.cs (2)
187
this.Items.
Add
(new Separator());
215
this.Items.
Add
(menuItem);
System\Windows\Controls\ItemsControl.cs (2)
1260
Items.
Add
(value);
1279
Items.
Add
(text);
System\Windows\Controls\Primitives\ScrollBar.cs (30)
828
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
829
verticalContextMenu.Items.
Add
(new Separator());
830
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand));
831
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand));
832
verticalContextMenu.Items.
Add
(new Separator());
833
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand));
834
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand));
835
verticalContextMenu.Items.
Add
(new Separator());
836
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand));
837
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand));
848
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
849
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
850
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand));
851
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand));
852
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
853
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand));
854
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand));
855
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
856
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand));
857
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand));
868
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
869
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
870
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand));
871
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand));
872
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
873
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand));
874
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand));
875
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
876
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand));
877
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand));
System\windows\Documents\TextEditorContextMenu.cs (9)
471
this.Items.
Add
(new Separator());
496
this.Items.
Add
(menuItem);
507
this.Items.
Add
(menuItem);
515
this.Items.
Add
(menuItem);
578
this.Items.
Add
(menuItem);
591
this.Items.
Add
(menuItem);
608
this.Items.
Add
(menuItem);
614
this.Items.
Add
(menuItem);
620
this.Items.
Add
(menuItem);
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1091
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1096
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1101
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1830
ZoomComboBox.Items.
Add
(newItem);
Roslyn.VisualStudio.DiagnosticsWindow (4)
DiagnosticsWindow.cs (3)
62
tabControl.Items.
Add
(perfMarginPanel);
63
tabControl.Items.
Add
(telemetryPanel);
64
tabControl.Items.
Add
(workspacePanel);
PerfMargin\PerfMarginPanel.cs (1)
110
listView.Items.
Add
(s);
System.Windows.Controls.Ribbon (17)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
2479
ribbon.QuickAccessToolBar.Items.
Add
(e.CloneInstance);
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (14)
281
_defaultRibbonClientAreaContextMenu.Items.
Add
(GenerateQATPlacementMenuItem(_defaultRibbonClientAreaContextMenu));
282
_defaultRibbonClientAreaContextMenu.Items.
Add
(new RibbonSeparator());
283
_defaultRibbonClientAreaContextMenu.Items.
Add
(GenerateMinimizeTheRibbonItem(_defaultRibbonClientAreaContextMenu));
294
_ribbonControlContextMenu.Items.
Add
(GenerateAddToOrRemoveFromQATItem(false, _ribbonControlContextMenu));
295
_ribbonControlContextMenu.Items.
Add
(new RibbonSeparator());
296
_ribbonControlContextMenu.Items.
Add
(GenerateQATPlacementMenuItem(_ribbonControlContextMenu));
297
_ribbonControlContextMenu.Items.
Add
(new RibbonSeparator());
298
_ribbonControlContextMenu.Items.
Add
(GenerateMinimizeTheRibbonItem(_ribbonControlContextMenu));
309
_qatControlContextMenu.Items.
Add
(GenerateAddToOrRemoveFromQATItem(true, _qatControlContextMenu));
310
_qatControlContextMenu.Items.
Add
(new RibbonSeparator());
311
_qatControlContextMenu.Items.
Add
(GenerateQATPlacementMenuItem(_qatControlContextMenu));
312
_qatControlContextMenu.Items.
Add
(new RibbonSeparator());
313
_qatControlContextMenu.Items.
Add
(GenerateMinimizeTheRibbonItem(_qatControlContextMenu));
327
_galleryContextMenu.Items.
Add
(addGalleryToQATItem);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1980
wrapperButton.Items.
Add
(clone);
2249
cloneItemsControl.Items.
Add
(clonedItem);