FlyoutBase.AttachedFlyout attached property

Applies to Windows and Windows Phone

Gets or sets the flyout attached to a FrameworkElement.


<frameworkElement FlyoutBase.AttachedFlyout="{StaticResource flyoutResourceKey"/>


<frameworkElement>
  <FlyoutBase.AttachedFlyout>
    singleFlyout
  </FlyoutBase.AttachedFlyout>
</frameworkElement>

XAML Values

flyoutResourceKey

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

singleFlyout

A single object element for Flyout, MenuFlyout, or some other class that derives from FlyoutBase. The flyout typically has additional content within it if you're using this inline XAML technique of creating a flyout UI.

Remarks

FlyoutBase.AttachedFlyout is an attached property, which supports XAML usage. When setting this property in code, use SetAttachedFlyout instead. When getting this property in code, use GetAttachedFlyout instead. In code usages, the target parameter is the object where the attached property value is set. Another way to get or set the value in code is to use the dependency property system, calling either GetValue or SetValue and passing AttachedFlyoutProperty as the dependency property identifier.

To attach a flyout to a Button, use Button.Flyout instead.

Requirements

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.Primitives

Metadata

Windows.winmd

See also

FlyoutBase

 

 

Show:
© 2014 Microsoft