XamlSourceFocusNavigationResult 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供資料,供請求透過使用 NavigateFocus(Microsoft) 將焦點導向 DesktopWindowXamlSource 物件。UI。Xaml.Hosting.XamlSourceFocusNavigationRequest)方法。
public ref class XamlSourceFocusNavigationResult sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.UI.Xaml.Hosting.IXamlSourceFocusNavigationResultFactory, 327680, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XamlSourceFocusNavigationResult final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.UI.Xaml.Hosting.IXamlSourceFocusNavigationResultFactory), 327680, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XamlSourceFocusNavigationResult
Public NotInheritable Class XamlSourceFocusNavigationResult
- 繼承
- 屬性
範例
這個範例展示了如何在 Win32 應用程式中新增一個包含 XAML 內容的 WASDK 島嶼(該應用程式必須安裝 Windows 應用程式 SDK 執行環境才能執行)。
建構函式
| 名稱 | Description |
|---|---|
| XamlSourceFocusNavigationResult(Boolean) |
初始化一個新的 XamlSourceFocusNavigationResult 物件。 |
屬性
| 名稱 | Description |
|---|---|
| WasFocusMoved |
會得到一個值,表示焦點是否成功移到 DesktopWindowXamlSource 物件。 |