Share via


NavigableElementExtensions.ShowPopupAsync<T> Method

Definition

Displays a poup and returns a result.

public static System.Threading.Tasks.Task<T>? ShowPopupAsync<T>(this Xamarin.Forms.NavigableElement element, Xamarin.CommunityToolkit.UI.Views.Popup<T>? popup);

Type Parameters

T

The T result that is returned when the popup is dismissed.

Parameters

element
NavigableElement

The current NavigableElement that has a valid INavigation.

popup
Popup<T>

The Popup<T> to display.

Returns

System.Threading.Tasks.Task<T>

A task that will complete once the Popup<T> is dismissed.

Applies to