3 instantiations of ContextMenu
System.Windows.Forms.Tests (2)
System\Windows\Forms\UnsupportedTypesTests.cs (2)
17() => new ContextMenu(), 18() => new ContextMenu(menuItems: null!),
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
33_contextMenu = new();
4 references to ContextMenu
System.Windows.Forms (3)
src\Common\src\Obsoletions.cs (1)
34internal const string ContextMenuMessage = $"`{nameof(ContextMenu)}` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `{nameof(ContextMenuStrip)}` instead.";
System\Windows\Forms\Control.cs (1)
12860public virtual ContextMenu ContextMenu
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.cs (1)
73public ContextMenu GetContextMenu() => throw null;
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
16private ContextMenu _contextMenu;