Window 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public ref class Window : Microsoft::Maui::Controls::NavigableElement, Microsoft::Maui::IMenuBarElement, Microsoft::Maui::IToolbarElement, Microsoft::Maui::IWindow
[Microsoft.Maui.Controls.ContentProperty("Page")]
public class Window : Microsoft.Maui.Controls.NavigableElement, Microsoft.Maui.IMenuBarElement, Microsoft.Maui.IToolbarElement, Microsoft.Maui.IWindow
[<Microsoft.Maui.Controls.ContentProperty("Page")>]
type Window = class
inherit NavigableElement
interface IWindow
interface ITitledElement
interface IElement
interface IToolbarElement
interface IMenuBarElement
Public Class Window
Inherits NavigableElement
Implements IMenuBarElement, IToolbarElement, IWindow
- 繼承
- 繼承
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| Window() | |
| Window(Page) | |
欄位
| 名稱 | Description |
|---|---|
| ControlsWindowMapper | |
| FlowDirectionProperty |
的 FlowDirectionBindable 屬性。 |
| HeightProperty |
的 HeightBindable 屬性。 |
| IsActivatedProperty |
的 IsActivatedBindable 屬性。 |
| IsMaximizableProperty |
的 IsMaximizableBindable 屬性。 |
| IsMinimizableProperty |
的 IsMinimizableBindable 屬性。 |
| MaximumHeightProperty |
的 MaximumHeightBindable 屬性。 |
| MaximumWidthProperty |
的 MaximumWidthBindable 屬性。 |
| MinimumHeightProperty |
的 MinimumHeightBindable 屬性。 |
| MinimumWidthProperty |
的 MinimumWidthBindable 屬性。 |
| PageProperty |
的 PageBindable 屬性。 |
| TitleBarProperty |
的 TitleBarBindable 屬性。 |
| TitleProperty |
的 TitleBindable 屬性。 |
| transientNamescope | (繼承來源 Element) |
| WidthProperty |
的 WidthBindable 屬性。 |
| XProperty |
的 XBindable 屬性。 |
| YProperty |
的 YBindable 屬性。 |
屬性
| 名稱 | Description |
|---|---|
| AutomationId |
取得或設定值,允許自動化架構尋找此項目並與之互動。 (繼承來源 Element) |
| BindingContext |
取得或設定 物件,其中包含屬於這個 BindableObject之系結屬性的目標屬性。 這是可繫結屬性。 (繼承來源 BindableObject) |
| class |
取得或設定 項目的樣式類別。 (繼承來源 NavigableElement) |
| ClassId |
取得或設定值,用來識別語意類似項目的集合。 (繼承來源 Element) |
| Dispatcher |
取得建立這個可系結物件時可用的發送器,否則會嘗試尋找最接近的可用發送器(可能是視窗的/應用程式)。 (繼承來源 BindableObject) |
| DisplayDensity | |
| EffectControlProvider |
供 .NET MAUI 內部使用。 (繼承來源 Element) |
| Effects |
取得或設定將在運行時間期間套用至項目的樣式和屬性。 (繼承來源 Element) |
| FlowDirection | |
| Handler |
取得或設定這個項目的相關處理程式。 (繼承來源 Element) |
| Height | |
| Id |
取得值,這個值可用來在應用程式執行期間唯一識別專案。 (繼承來源 Element) |
| IsActivated | |
| IsMaximizable |
取得或設定視窗是否能被最大化。 |
| IsMinimizable |
取得或設定視窗是否能被最小化。 |
| LogicalChildren |
已淘汰.
(繼承來源 Element)
|
| MaximumHeight | |
| MaximumWidth | |
| MinimumHeight | |
| MinimumWidth | |
| Navigation |
取得負責處理堆疊型瀏覽的物件。 (繼承來源 NavigableElement) |
| NavigationProxy |
取得的Navigation轉換NavigationProxy。 (繼承來源 NavigableElement) |
| Overlays | |
| Page | |
| Parent |
取得或設定這個專案的父 Element 代。 (繼承來源 Element) |
| RealParent |
供 .NET MAUI 內部使用。 (繼承來源 Element) |
| Style |
取得或設定這個項目的唯 Style 一 。 (繼承來源 NavigableElement) |
| StyleClass |
取得或設定 項目的樣式類別。 (繼承來源 NavigableElement) |
| StyleId |
取得或設定使用者定義值來唯一識別項目。 (繼承來源 Element) |
| Title | |
| TitleBar | |
| VisualDiagnosticsOverlay | |
| Width | |
| X | |
| Y | |
方法
事件
| 名稱 | Description |
|---|---|
| Activated | |
| Backgrounding | |
| BindingContextChanged |
發生於 BindingContext 屬性的值變更時。 (繼承來源 BindableObject) |
| ChildAdded |
每當子專案加入至 項目時引發。 (繼承來源 Element) |
| ChildRemoved |
每當從專案中移除子項目時引發。 (繼承來源 Element) |
| Created | |
| Deactivated | |
| DescendantAdded |
每當子專案加入至專案的子樹時引發。 (繼承來源 Element) |
| DescendantRemoved |
每當從專案子樹中移除子項目時引發。 (繼承來源 Element) |
| Destroying | |
| DisplayDensityChanged | |
| HandlerChanged |
每當元素的處理程式變更時引發。 (繼承來源 Element) |
| HandlerChanging |
每當元素的處理程序開始變更時引發。 (繼承來源 Element) |
| ModalPopped | |
| ModalPopping | |
| ModalPushed | |
| ModalPushing | |
| ParentChanged |
每當專案的父代變更時引發。 (繼承來源 Element) |
| ParentChanging |
每當元素開始變更時引發。 (繼承來源 Element) |
| PopCanceled | |
| PropertyChanged |
當屬性值變更時發生。 (繼承來源 BindableObject) |
| PropertyChanging |
屬性值正在變更時發生。 (繼承來源 BindableObject) |
| Resumed | |
| SizeChanged | |
| Stopped | |