Implemented interface member:
68 references to Add
PresentationFramework (43)
MS\Internal\Documents\DocumentGridContextMenu.cs (2)
189
this.Items.
Add
(new Separator());
217
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)
830
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
831
verticalContextMenu.Items.
Add
(new Separator());
832
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand));
833
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand));
834
verticalContextMenu.Items.
Add
(new Separator());
835
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand));
836
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand));
837
verticalContextMenu.Items.
Add
(new Separator());
838
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand));
839
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand));
850
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
851
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
852
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand));
853
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand));
854
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
855
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand));
856
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand));
857
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
858
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand));
859
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand));
870
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
871
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
872
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand));
873
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand));
874
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
875
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand));
876
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand));
877
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
878
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand));
879
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand));
System\windows\Documents\TextEditorContextMenu.cs (9)
471
this.Items.
Add
(new Separator());
498
this.Items.
Add
(menuItem);
511
this.Items.
Add
(menuItem);
521
this.Items.
Add
(menuItem);
586
this.Items.
Add
(menuItem);
601
this.Items.
Add
(menuItem);
620
this.Items.
Add
(menuItem);
628
this.Items.
Add
(menuItem);
636
this.Items.
Add
(menuItem);
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1097
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1104
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1111
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1845
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)
2481
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)
1984
wrapperButton.Items.
Add
(clone);
2253
cloneItemsControl.Items.
Add
(clonedItem);