Button.Flyout Property

Definition

Gets or sets the flyout associated with this button.

public:
 property FlyoutBase ^ Flyout { FlyoutBase ^ get(); void set(FlyoutBase ^ value); };
FlyoutBase Flyout();

void Flyout(FlyoutBase value);
public FlyoutBase Flyout { get; set; }
var flyoutBase = button.flyout;
button.flyout = flyoutBase;
Public Property Flyout As FlyoutBase
<Button>
  <Button.Flyout>flyout</Button.Flyout>
</Button>
- or -
<Button Flyout="{StaticResurce flyoutResourceKey"/>

Property Value

The flyout associated with this button, if any; otherwise, null. The default is null.

Remarks

By default, the flyout that's set as the value of the Flyout property displays when the button is tapped or otherwise invoked, you don't need to call methods to display it. That differs from the behavior of flyouts assigned through the FlyoutBase.AttachedFlyout attached property; these flyouts must be explicitly displayed by calling ShowAt on the flyout instance, or the static ShowAttachedFlyout method.

Applies to

See also