共用方式為


Shell.GoToAsync 方法

定義

多載

GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)

以異步方式巡覽至 state,選擇性地以動畫顯示。

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

這個方法會巡覽至 ShellNavigationState ,並傳 Task回 。

GoToAsync(ShellNavigationState, IDictionary<String,Object>)
GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

這個方法會巡覽至 ShellNavigationState ,並傳 Task 回一旦瀏覽動畫完成的 。

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

以異步方式巡覽至 state,選擇性地以動畫顯示。

GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)

來源:
Shell.cs
來源:
Shell.cs

以異步方式巡覽至 state,選擇性地以動畫顯示。

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate, System.Collections.Generic.IDictionary<string,object> parameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean, parameters As IDictionary(Of String, Object)) As Task

參數

animate
Boolean
parameters
IDictionary<String,Object>

傳回

備註

請注意, ShellNavigationState 具有 來自 stringUri的隱含轉換,因此開發人員可能會撰寫如下的程式代碼,而不會明確具現化 ShellNavigationState

await Shell.Current.GoToAsync("app://xamarin.com/xaminals/animals/monkeys");

適用於

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

來源:
Shell.cs
來源:
Shell.cs

這個方法會巡覽至 ShellNavigationState ,並傳 Task回 。

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate, Microsoft::Maui::Controls::ShellNavigationQueryParameters ^ shellNavigationQueryParameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool * Microsoft.Maui.Controls.ShellNavigationQueryParameters -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean, shellNavigationQueryParameters As ShellNavigationQueryParameters) As Task

參數

state
ShellNavigationState

定義要巡覽至的Shell路徑。

animate
Boolean

指出您的轉換是否以動畫顯示

shellNavigationQueryParameters
ShellNavigationQueryParameters

要用於這個特定導覽作業的參數。

傳回

適用於

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

來源:
Shell.cs
來源:
Shell.cs
public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, System.Collections.Generic.IDictionary<string,object> parameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, parameters As IDictionary(Of String, Object)) As Task

參數

parameters
IDictionary<String,Object>

傳回

適用於

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

來源:
Shell.cs
來源:
Shell.cs

這個方法會巡覽至 ShellNavigationState ,並傳 Task 回一旦瀏覽動畫完成的 。

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, Microsoft::Maui::Controls::ShellNavigationQueryParameters ^ shellNavigationQueryParameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * Microsoft.Maui.Controls.ShellNavigationQueryParameters -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, shellNavigationQueryParameters As ShellNavigationQueryParameters) As Task

參數

state
ShellNavigationState

定義要巡覽至的Shell路徑。

shellNavigationQueryParameters
ShellNavigationQueryParameters

要用於這個特定導覽作業的參數。

傳回

適用於

GoToAsync(ShellNavigationState)

來源:
Shell.cs
來源:
Shell.cs
public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState) As Task

參數

傳回

適用於

GoToAsync(ShellNavigationState, Boolean)

來源:
Shell.cs
來源:
Shell.cs

以異步方式巡覽至 state,選擇性地以動畫顯示。

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean) As Task

參數

animate
Boolean

傳回

備註

請注意, ShellNavigationState 具有 來自 stringUri的隱含轉換,因此開發人員可能會撰寫如下的程式代碼,而不會明確具現化 ShellNavigationState

await Shell.Current.GoToAsync("app://xamarin.com/xaminals/animals/monkeys");

適用於