次の方法で共有


INavigation.PopModalAsync メソッド

定義

オーバーロード

PopModalAsync()

モーダルとして表示された最新の Page を非同期で破棄します。

PopModalAsync(Boolean)

モーダルとして表示された最新の Page を非同期で破棄します。オプションのアニメーションあり。

PopModalAsync()

モーダルとして表示された最新の Page を非同期で破棄します。

public System.Threading.Tasks.Task<Xamarin.Forms.Page> PopModalAsync();
abstract member PopModalAsync : unit -> System.Threading.Tasks.Task<Xamarin.Forms.Page>

戻り値

System.Threading.Tasks.Task<Page>

PopModalAsync 完了を示す待機可能 Task<Page>。 Task.Result はポップされたページです。

注釈

次の例は、PushModalAsync と PopModalAsync の使用状況を示しています。

var modalPage = new ContentPage ();
await Navigation.PushModalAsync (modalPage);
Debug.WriteLine ("The modal page is now on screen");
var poppedPage = await Navigation.PopModalAsync ();
Debug.WriteLine ("The modal page is dismissed");
Debug.WriteLine (Object.ReferenceEquals (modalPage, poppedPage)); //prints "true"

適用対象

PopModalAsync(Boolean)

モーダルとして表示された最新の Page を非同期で破棄します。オプションのアニメーションあり。

public System.Threading.Tasks.Task<Xamarin.Forms.Page> PopModalAsync(bool animated);
abstract member PopModalAsync : bool -> System.Threading.Tasks.Task<Xamarin.Forms.Page>

パラメーター

animated
System.Boolean

ポップをアニメーションで表示するかどうか。

戻り値

System.Threading.Tasks.Task<Page>

適用対象