Application.MainPage 属性

定义

获取或设置应用程序的根页面。

public Xamarin.Forms.Page MainPage { get; set; }
member this.MainPage : Xamarin.Forms.Page with get, set

属性值

应用程序的根页。

注解

如果应用程序开发人员尝试将其 null设置为 ,则此属性将引发异常。

适用于