NavigationPage.PushAsync 方法

定义

重载

PushAsync(Page)

通过将 Page 异步推送到导航堆栈上来呈现它。

PushAsync(Page, Boolean)

使用可选动画将页面异步推送到导航堆栈的任务。

PushAsync(Page)

Source:
NavigationPage.cs
Source:
NavigationPage.cs
Source:
NavigationPage.cs

通过将 Page 异步推送到导航堆栈上来呈现它。

public:
 System::Threading::Tasks::Task ^ PushAsync(Microsoft::Maui::Controls::Page ^ page);
public System.Threading.Tasks.Task PushAsync(Microsoft.Maui.Controls.Page page);
member this.PushAsync : Microsoft.Maui.Controls.Page -> System.Threading.Tasks.Task
Public Function PushAsync (page As Page) As Task

参数

page
Page

要呈现的 Page

返回

一个可等待的任务,指示推送完成。

适用于

PushAsync(Page, Boolean)

Source:
NavigationPage.cs
Source:
NavigationPage.cs
Source:
NavigationPage.cs

使用可选动画将页面异步推送到导航堆栈的任务。

public:
 System::Threading::Tasks::Task ^ PushAsync(Microsoft::Maui::Controls::Page ^ page, bool animated);
public System.Threading.Tasks.Task PushAsync(Microsoft.Maui.Controls.Page page, bool animated);
member this.PushAsync : Microsoft.Maui.Controls.Page * bool -> System.Threading.Tasks.Task
Public Function PushAsync (page As Page, animated As Boolean) As Task

参数

page
Page
animated
Boolean

返回

适用于