FlyoutPresenterStyle property
Collapse the table of content
Expand the table of content

Flyout.FlyoutPresenterStyle property

Gets or sets the Style applied to the Flyout content.

Syntax


public Style FlyoutPresenterStyle { get; set; }



<Flyout FlyoutPresenterStyle={StaticResource styleResourceKey}/>



<Flyout>
  <Flyout.FlyoutPresenterStyle>
    <Style TargetType="FlyoutPresenter">
      oneOrMoreSetters
    </Style>
  </Flyout.FlyoutPresenterStyle>
</Flyout>

XAML Values

styleResourceKey

The key that identifies the style being requested. The key refers to an existing resource in a ResourceDictionary.

oneOrMoreSetters

One or more Setter elements with Property attributes that target the dependency properties of a FlyoutPresenter.

Property value

Type: Style

The applied Style for the Flyout content, if present; otherwise, null. The default is null.

Remarks

The Style element you use for a FlyoutPresenterStyle value must specify TargetType="FlyoutPresenter".

A Flyout itself isn't a control or even a UIElement, and thus doesn't have any properties to apply a Style to. Instead, you can style the properties of the internal FlyoutPresenter that is presenting the Content of a Flyout. The properties that can be styled are the dependency properties of the base ContentControl class or Control class, such as FontSize or Padding, or base element properties such as FrameworkElement.Margin that the FlyoutPresenter class inherits. You also can use the properties that are available on whichever element you're setting as Flyout.Content, and set values of those properties directly rather than styling the FlyoutPresenter.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Flyout
Content
FlyoutPresenter
Styling controls

 

 

Show:
© 2016 Microsoft