DesktopWindowXamlSourceTakeFocusRequestedEventArgs 類別

定義

提供 TakeFocusRequested 事件的事件資料。

public ref class DesktopWindowXamlSourceTakeFocusRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DesktopWindowXamlSourceTakeFocusRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DesktopWindowXamlSourceTakeFocusRequestedEventArgs
Public NotInheritable Class DesktopWindowXamlSourceTakeFocusRequestedEventArgs
繼承
Object Platform::Object IInspectable DesktopWindowXamlSourceTakeFocusRequestedEventArgs
屬性

範例

這個範例展示了如何在 Win32 應用程式中新增一個包含 XAML 內容的 WASDK 島嶼(該應用程式必須安裝 Windows 應用程式 SDK 執行環境才能執行)。

簡易島應用程式

屬性

名稱 Description
Request

取得一個 XamlSourceFocusNavigationRequest 物件,該物件指定了焦點導航的原因(以及其他可選資訊)。

適用於

另請參閱