Hello,
Welcome to our Microsoft Q&A platform!
The Popup view is not type of Page
, it cannot be used in the navigation method. To show the popup, try using the Navigation.ShowPopup
method.
private async void Button_Clicked(object sender, EventArgs e)
{
Navigation.ShowPopup(new AddAreaPopup());
}
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
@AG Please add the
using Xamarin.CommunityToolkit.Extensions;
namespace in the class as below. I tested the code in a shell application, it works fine.I did Added using Xamarin.CommunityToolkit.Extensions; but Still have this error
Sorry, my bad, forgot to change AddAreaPopup to type Popup.
Thanks for your help!
Sign in to comment