MenuFlyout.MenuFlyoutPresenterStyle Property

Definition

Gets or sets the style that is used when rendering the MenuFlyout.

public:
 property Style ^ MenuFlyoutPresenterStyle { Style ^ get(); void set(Style ^ value); };
Style MenuFlyoutPresenterStyle();

void MenuFlyoutPresenterStyle(Style value);
public Style MenuFlyoutPresenterStyle { get; set; }
var style = menuFlyout.menuFlyoutPresenterStyle;
menuFlyout.menuFlyoutPresenterStyle = style;
Public Property MenuFlyoutPresenterStyle As Style
<MenuFlyout MenuFlyoutPresenterStyle="resourceReferenceToStyle"/>
- or -
<MenuFlyout>
  <MenuFlyout.FlyoutPresenterStyle>
    <Style TargetType="FlyoutPresenter">
      oneOrMoreSetters
    </Style>
  </MenuFlyout.FlyoutPresenterStyle>
</MenuFlyout>

Property Value

The style that is used when rendering the MenuFlyout.

Remarks

The TargetType value to use for the Style must be MenuFlyoutPresenter (not MenuFlyout).

You can't style a MenuFlyout directly. Instead, you apply a style to the MenuFlyoutPresenter that provides the visuals for the flyout. You can also style MenuFlyoutItem and ToggleMenuFlyoutItem (they are controls) and you can use implicit styles to do so. Or, you can set UI-related properties on the MenuFlyoutItem and ToggleMenuFlyoutItem items directly.

Applies to

See also