Windows.UI.Xaml.Controls.Button.Flyout
June 22, 2022 ยท View on GitHub
-description
Gets or sets the flyout associated with this button.
-xaml-syntax
<Button>
<Button.Flyout>flyout</Button.Flyout>
</Button>
- or -
<Button Flyout="{StaticResurce flyoutResourceKey"/>
-xaml-values
- flyout
- flyoutAn instance of a FlyoutBase derived class; typically Flyout or MenuFlyout.
- flyoutResourceKey
- flyoutResourceKeyThe key that identifies the flyout being requested. The key refers to an existing resource in a ResourceDictionary.
-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.
-examples
-see-also
Flyout, MenuFlyout, Quickstart: Adding a Flyout, XAML Flyout and MenuFlyout sample