Implemented interface member:
68 references to Add
PresentationFramework (43)
MS\Internal\Documents\DocumentGridContextMenu.cs (2)
195
this.Items.
Add
(new Separator());
223
this.Items.
Add
(menuItem);
System\Windows\Controls\ItemsControl.cs (2)
1269
Items.
Add
(value);
1288
Items.
Add
(text);
System\Windows\Controls\Primitives\ScrollBar.cs (30)
844
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
845
verticalContextMenu.Items.
Add
(new Separator());
846
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand));
847
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand));
848
verticalContextMenu.Items.
Add
(new Separator());
849
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand));
850
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand));
851
verticalContextMenu.Items.
Add
(new Separator());
852
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand));
853
verticalContextMenu.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand));
864
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
865
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
866
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand));
867
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand));
868
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
869
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand));
870
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand));
871
horizontalContextMenuLeftToRight.Items.
Add
(new Separator());
872
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand));
873
horizontalContextMenuLeftToRight.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand));
884
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand));
885
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
886
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand));
887
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand));
888
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
889
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand));
890
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand));
891
horizontalContextMenuRightToLeft.Items.
Add
(new Separator());
892
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand));
893
horizontalContextMenuRightToLeft.Items.
Add
(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand));
System\windows\Documents\TextEditorContextMenu.cs (9)
473
this.Items.
Add
(new Separator());
498
this.Items.
Add
(menuItem);
509
this.Items.
Add
(menuItem);
517
this.Items.
Add
(menuItem);
580
this.Items.
Add
(menuItem);
593
this.Items.
Add
(menuItem);
610
this.Items.
Add
(menuItem);
616
this.Items.
Add
(menuItem);
622
this.Items.
Add
(menuItem);
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1098
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1103
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1108
DigitalSignaturesMenuItem.Items.
Add
(menuItem);
1837
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)
2482
ribbon.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)
1985
wrapperButton.Items.
Add
(clone);
2254
cloneItemsControl.Items.
Add
(clonedItem);