Dela via


CoreWindowFlyout Class

Definition

Defines a child flyout of an app window.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

public ref class CoreWindowFlyout sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Core.ICoreWindowFlyoutFactory, 65536, Windows.UI.Core.CoreWindowDialogsContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Core.CoreWindowDialogsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class CoreWindowFlyout final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Core.CoreWindowDialogsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Core.ICoreWindowFlyoutFactory, 65536, "Windows.UI.Core.CoreWindowDialogsContract")]
class CoreWindowFlyout final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Core.ICoreWindowFlyoutFactory), 65536, typeof(Windows.UI.Core.CoreWindowDialogsContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Core.CoreWindowDialogsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class CoreWindowFlyout
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Core.CoreWindowDialogsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Core.ICoreWindowFlyoutFactory), 65536, "Windows.UI.Core.CoreWindowDialogsContract")]
public sealed class CoreWindowFlyout
Public NotInheritable Class CoreWindowFlyout
Inheritance
Object Platform::Object IInspectable CoreWindowFlyout
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.UI.Core.CoreWindowDialogsContract (introduced in v1.0)

Remarks

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Constructors

CoreWindowFlyout(Point, String)

Creates an instance of the CoreWindowFlyout class at the specified position with the supplied title.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

CoreWindowFlyout(Point)

Creates an instance of the CoreWindowFlyout class at the supplied position.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

Properties

BackButtonCommand

Gets or sets the delegate called when the back button on the flyout is selected.

Commands

Gets the set of user interface commands available on the flyout.

DefaultCommandIndex

Gets or sets the index of the flyout window's default command.

IsInteractionDelayed

Gets or sets a value that indicates whether any UI interaction event message is slightly delayed or not. This delay prevents a user from accidentally invoking an action on the flyout window.

MaxSize

Gets the maximum size of the flyout.

MinSize

Gets the minimum size of the flyout.

Title

Gets or sets the title of the flyout.

Methods

ShowAsync()

Displays the flyout and asynchronously waits for the user to take an action.

Events

Showing

Is fired when the flyout is displayed.

Applies to