Freigeben über


Application.MainPage Eigenschaft

Definition

Achtung

This property has been deprecated. For single-window applications, use Windows[0].Page. For multi-window applications, identify and use the appropriate Window object to access the desired Page. Additionally, each element features a Window property, accessible when it's part of the current window.

Achtung

This property is deprecated. Initialize your application by overriding Application.CreateWindow rather than setting MainPage. To modify the root page in an active application, use Windows[0].Page for applications with a single window. For applications with multiple windows, use Application.Windows to identify and update the root page on the correct window. Additionally, each element features a Window property, accessible when it's part of the current window.

Ruft die Stammseite der Anwendung ab oder legt sie fest.

public:
 property Microsoft::Maui::Controls::Page ^ MainPage { Microsoft::Maui::Controls::Page ^ get(); void set(Microsoft::Maui::Controls::Page ^ value); };
public Microsoft.Maui.Controls.Page? MainPage { get; set; }
public Microsoft.Maui.Controls.Page? MainPage { [System.Obsolete("This property has been deprecated. For single-window applications, use Windows[0].Page. For multi-window applications, identify and use the appropriate Window object to access the desired Page. Additionally, each element features a Window property, accessible when it's part of the current window.")] get; [System.Obsolete("This property is deprecated. Initialize your application by overriding Application.CreateWindow rather than setting MainPage. To modify the root page in an active application, use Windows[0].Page for applications with a single window. For applications with multiple windows, use Application.Windows to identify and update the root page on the correct window.  Additionally, each element features a Window property, accessible when it's part of the current window.")] set; }
member this.MainPage : Microsoft.Maui.Controls.Page with get, set
[<get: System.Obsolete("This property has been deprecated. For single-window applications, use Windows[0].Page. For multi-window applications, identify and use the appropriate Window object to access the desired Page. Additionally, each element features a Window property, accessible when it's part of the current window.")>]
[<set: System.Obsolete("This property is deprecated. Initialize your application by overriding Application.CreateWindow rather than setting MainPage. To modify the root page in an active application, use Windows[0].Page for applications with a single window. For applications with multiple windows, use Application.Windows to identify and update the root page on the correct window.  Additionally, each element features a Window property, accessible when it's part of the current window.")>]
member this.MainPage : Microsoft.Maui.Controls.Page with get, set
Public Property MainPage As Page

Eigenschaftswert

Die Stammseite der Anwendung.

Attribute

Hinweise

Diese Eigenschaft löst eine Ausnahme aus, wenn der Anwendungsentwickler versucht, sie auf .null

Gilt für: