Share via


CoreWindowFlyout 類別

定義

定義應用程式視窗的子飛出視窗。

在傳統型應用程式中,在以顯示 UI 的方式使用這個類別的實例之前,您必須將物件與其擁有者的視窗控制碼產生關聯。 如需詳細資訊和程式碼範例,請參閱 顯示相依于 CoreWindow 的 WinRT UI 物件

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
繼承
Object Platform::Object IInspectable CoreWindowFlyout
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.UI.Core.CoreWindowDialogsContract (已於 v1.0 引進)

備註

注意

這個類別不是敏捷的,這表示您必須考慮其執行緒模型和封送處理行為。 如需詳細資訊,請參閱 執行緒和封送處理 (C++/CX)

建構函式

CoreWindowFlyout(Point)

在提供的位置建立 CoreWindowFlyout 類別的實例。

在傳統型應用程式中,在以顯示 UI 的方式使用這個類別的實例之前,您必須將物件與其擁有者的視窗控制碼產生關聯。 如需詳細資訊和程式碼範例,請參閱 顯示相依于 CoreWindow 的 WinRT UI 物件

CoreWindowFlyout(Point, String)

使用提供的標題,在指定的位置建立 CoreWindowFlyout 類別的實例。

在傳統型應用程式中,在以顯示 UI 的方式使用這個類別的實例之前,您必須將物件與其擁有者的視窗控制碼產生關聯。 如需詳細資訊和程式碼範例,請參閱 顯示相依于 CoreWindow 的 WinRT UI 物件

屬性

BackButtonCommand

取得或設定選取飛出視窗上返回按鈕時所呼叫的委派。

Commands

取得飛出視窗上可用的使用者介面命令集。

DefaultCommandIndex

取得或設定飛出視窗預設命令的索引。

IsInteractionDelayed

取得或設定值,這個值表示是否有任何 UI 互動事件訊息稍微延遲。 此延遲可防止使用者意外在飛出視窗上叫用動作。

MaxSize

取得飛出視窗的大小上限。

MinSize

取得飛出視窗的大小下限。

Title

取得或設定飛出視窗的標題。

方法

ShowAsync()

顯示飛出視窗,並非同步等候使用者採取動作。

事件

Showing

會在顯示飛出視窗時引發。

適用於