I have a problem while trying to navigate to another view from community toolkit popup. It simply wont navigate to new page, instead after clicking button nothing happens.
Code:
private async void Btn_Clicked_UpdateAlbum(object sender, EventArgs e)
{
string newalbumname = albumname.Text;
Preferences.Set("NewAlbumName", newalbumname);
await Navigation.PushModalAsync(new ChosePhotosAlbum());
}
I'm using
packages\xamarin.communitytoolkit\2.0.5\
You can return a value from your PopUp to the page that opened it, and based on the return value, you can handle whether or not to navigate to another page in your calling page code.
Below is a sample of a popup returning a
bool
, when true navigate to pageChoosePhotosAlbum
.MainPage.xaml.cs
MainPage.xaml.cs
SimplePopup.xaml.cs
SimplePopup.xaml