OverlappedPresenter.CreateForContextMenu Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an OverlappedPresenter
object pre-populated with the values for a context menu.
public:
static OverlappedPresenter ^ CreateForContextMenu();
static OverlappedPresenter CreateForContextMenu();
public static OverlappedPresenter CreateForContextMenu();
function createForContextMenu()
Public Shared Function CreateForContextMenu () As OverlappedPresenter
Returns
An OverlappedPresenter
object pre-populated with the values for a context menu.
Remarks
This table shows how configuration properties are set when you create an OverlappedPresenter
object from the CreateForContextMenu
method.
Configuration property | Value |
---|---|
HasBorder | true |
HasTitleBar | false |
IsAlwaysOnTop | false |
IsMaximizable | false |
IsMinimizable | false |
IsModal | false |
IsResizable | false |
Ownership
If you want to set an owner for a ContextMenu, you have to do so at the time of creating your AppWindow.