In This Article

MenuFactoryCreateMenuFlyoutOptions Class

The options to be used when creating a menu flyout using IMenuFactory.

public class MenuFactoryCreateMenuFlyoutOptions
Inheritance:
object object

Constructors

MenuFactoryCreateMenuFlyoutOptions()

Initializes an instance of the class.

public MenuFactoryCreateMenuFlyoutOptions()

Properties

MenuItems

Menu items used to initialize the menu.

public IEnumerable<Control>? MenuItems { get; set; }

Property Value

IEnumerable<Control>

OverlayDismissEventPassThrough

A value indicating whether the event that closes the flyout is passed through to the parent window.

public bool? OverlayDismissEventPassThrough { get; set; }

Property Value

bool?

Remarks

Clicks outside the popup cause the popup to close. When false, these clicks will be handled by the popup and not be registered by the parent window. When true, the events will be passed through to the parent window. When null and the Owner is an ILogical, an attempt will be made to lookup the current value of the PopupCanDismissPassThrough theme resource.

Owner

An owner for the menu which can be used for additional context.

public object? Owner { get; set; }

Property Value

object

PlacementMode

The placement mode.

public PlacementMode? PlacementMode { get; set; }

Property Value

PlacementMode?

Inherited Members

Extension Methods