IWindow 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供建立、設定、顯示及管理 Windows 的能力。
public interface class IWindow : Microsoft::Maui::ITitledElement
public interface IWindow : Microsoft.Maui.ITitledElement
type IWindow = interface
interface ITitledElement
interface IElement
Public Interface IWindow
Implements ITitledElement
- 衍生
- 實作
屬性
| Content |
取得視窗中顯示的目前頁面。 |
| FlowDirection |
提供建立、設定、顯示及管理 Windows 的能力。 |
| Handler |
取得或設定 Element 的 View Handler。 (繼承來源 IElement) |
| Overlays |
取得 Window 頂端的視窗重迭唯讀集合。 |
| Parent |
取得專案的父代。 (繼承來源 IElement) |
| Title |
取得這個專案的標題。 (繼承來源 ITitledElement) |
| VisualDiagnosticsOverlay |
取得視窗目前的視覺診斷重迭。 |
方法
| Activated() |
當視窗啟動時發生。 |
| AddOverlay(IWindowOverlay) |
將視窗重迭新增至目前的視窗。 |
| BackButtonClicked() |
發生于按下返回按鈕時。 |
| Backgrounding(IPersistedState) |
當視窗進入背景狀態時發生。 |
| Created() |
發生于建立視窗時。 |
| Deactivated() |
當視窗停用時發生。 |
| Destroying() |
當視窗終結時發生。 |
| DisplayDensityChanged(Single) |
提供建立、設定、顯示及管理 Windows 的能力。 |
| RemoveOverlay(IWindowOverlay) |
移除目前視窗的視窗重迭。 |
| RequestDisplayDensity() |
提供建立、設定、顯示及管理 Windows 的能力。 |
| Resumed() |
當視窗從睡眠狀態繼續時發生。 |
| Stopped() |
發生于視窗停止時。 |
擴充方法
| ToHandler(IElement, IMauiContext) |
提供建立、設定、顯示及管理 Windows 的能力。 |
| ToPlatform(IElement, IMauiContext) |
提供建立、設定、顯示及管理 Windows 的能力。 |
| CaptureAsync(IWindow) |
提供建立、設定、顯示及管理 Windows 的能力。 |