Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.26 KB

overlappedpresenter_createforcontextmenu_591438548.md

File metadata and controls

43 lines (27 loc) · 1.26 KB
-api-id -api-type
M:Microsoft.UI.Windowing.OverlappedPresenter.CreateForContextMenu
winrt method

Microsoft.UI.Windowing.OverlappedPresenter.CreateForContextMenu

-description

Creates an OverlappedPresenter object pre-populated with the values for a context menu.

-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.

-see-also

-examples