3 writes to ContextMenu
PresentationFramework (1)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
307
this.
ContextMenu
= null;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
459
this.
ContextMenu
= newMenu;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
662
textbox.
ContextMenu
= null;
39 references to ContextMenu
PresentationFramework (6)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (3)
103
if (documentGrid.DocumentViewerOwner.
ContextMenu
!= null || documentGrid.DocumentViewerOwner.ScrollViewer.
ContextMenu
!= null)
107
contextMenu = documentGrid.
ContextMenu
;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
395
cm = viewer.
ContextMenu
;
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
305
if (this.
ContextMenu
== null)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
145
contextMenu = This.UiScope.
ContextMenu
;
System.Activities.Presentation (33)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (32)
291
this.
ContextMenu
.ClipToBounds = false;
322
if (null != this.
ContextMenu
&& this.
ContextMenu
.HasItems)
324
foreach (MenuItem menuItem in this.
ContextMenu
.Items.OfType<MenuItem>())
428
if (this.
ContextMenu
== null)
439
this.UnloadContextMenu(this.
ContextMenu
);
453
foreach (var entry in this.
ContextMenu
.Items.OfType<Control>().Reverse())
455
this.
ContextMenu
.Items.Remove(entry);
463
if (null != this.contextMenuTarget && null != this.contextMenuTarget.
ContextMenu
)
465
var items = this.contextMenuTarget.
ContextMenu
.Items.OfType<Control>().Reverse();
466
int insertIndex = this.
ContextMenu
.Items.Count;
470
this.contextMenuTarget.
ContextMenu
.Items.Remove(item);
472
this.
ContextMenu
.Items.Insert(insertIndex, item);
477
this.
ContextMenu
.Placement = openedByKeyboard ? PlacementMode.Relative : PlacementMode.MousePoint;
478
this.
ContextMenu
.PlacementTarget = this.contextMenuTarget;
482
this.
ContextMenu
.Placement = openedByKeyboard ? PlacementMode.Center : PlacementMode.MousePoint;
483
this.
ContextMenu
.PlacementTarget = this;
486
this.
ContextMenu
.IsOpen = true;
505
DesignerView.GetMenuItemOrigin(item).
ContextMenu
.Items.Insert(0, item);
516
this.
ContextMenu
.MinWidth = 0;
517
this.
ContextMenu
.MinWidth = this.
ContextMenu
.DesiredSize.Width;
523
if (null != menuSource && null != menuSource.
ContextMenu
)
527
foreach (var item in menuSource.
ContextMenu
.Items.OfType<MenuItem>())
531
designer.NotifyContextMenuLoaded(menuSource.
ContextMenu
);
535
foreach (var item in menuSource.
ContextMenu
.Items.OfType<MenuItem>())
556
if (null != separator && null != separator.Tag && null != this.
ContextMenu
)
565
int index = this.
ContextMenu
.Items.IndexOf(separator);
567
for (int i = index + 1; i < this.
ContextMenu
.Items.Count && !visible; i++)
569
object contextMenuItem = this.
ContextMenu
.Items[i];
586
separator.Visibility = this.
ContextMenu
.Items
778
Point contextMenuTopLeft = this.
ContextMenu
.TranslatePoint(new Point(0, 0), sourceElement);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
347
return designerView.
ContextMenu
;