Windows.UI.Xaml.Controls.Primitives.FlyoutBase

June 22, 2022 ยท View on GitHub

-description

Represents the base class for flyout controls, such as Flyout and MenuFlyout.

-remarks

FlyoutBase derived classes

FlyoutBase is the parent class for Flyout and MenuFlyout.

XAML attached properties

FlyoutBase is the host service class for a XAML attached property.

In order to support XAML processor access to the attached properties, and also to expose equivalent get and set operations to code, each XAML attached property has a pair of Get and Set accessor methods. Another way to get or set the value in code is to use the dependency property system, calling either GetValue or SetValue and passing the identifier field as the dependency property identifier.

Attached propertyDescription
AttachedFlyoutGets or sets the flyout attached to a FrameworkElement.

Version history

Windows versionSDK versionValue added
160714393AllowFocusOnInteraction
160714393AllowFocusWhenDisabled
160714393Closing
160714393ElementSoundMode
160714393LightDismissOverlayMode
160714393Target
170315063OverlayInputPassThroughElement
170916299OnProcessKeyboardAccelerators
170916299TryInvokeKeyboardAccelerator
180917763AreOpenCloseAnimationsEnabled
180917763InputDevicePrefersPrimaryCommands
180917763IsOpen
180917763ShowAt(DependencyObject,FlyoutShowOptions)
180917763ShowMode
190318362IsConstrainedToRootBounds
190318362ShouldConstrainToRootBounds
190318362XamlRoot

-examples

-see-also

DependencyObject, Flyout, MenuFlyout, Button.Flyout, Version adaptive code sample