Hello,
Page1 PushesAsync Page2.
When the user has finished with Page2, Page2 is PopedAsync.
How I can detect in the Page1 ViewModel that Page2 is PopedAsync?
This is the Page1 View Model code:
SelectOnSkyViewCommand = new Command(() => { int selectedStar; navigation.PushAsync(new SkyUrhoSurface(CurrentSight, navigation)); //Some code here to use the CurrentSight result after SkyUrhoSurface PopesAsync... });
This is the Page2.cs code:
void OnButtonShootThisBodyClicked(object sender, EventArgs args) { if(skyUrho!=null) if(skyUrho.SelectedStar!=null) this.currentSight.StarID = (int)skyUrho.SelectedStar; navigation.PopAsync(); }
Thanks for reading.