MenuFlyout.MenuFlyoutPresenterStyle Property

Definition

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

C#
public Style MenuFlyoutPresenterStyle { get; set; }
XAML
<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

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also