|
// HomePage
private void Button_Clicked(object sender, EventArgs e) {
AppShell.Instance.IsTutorialActive = true;
popup.IsOpen = true;
popup.Closed += Popup_Closed;
}
private async void Popup_Closed(object sender, EventArgs e)
{
await Shell.Current.GoToAsync("//secondePage");
}
private async void Page2(object sender, EventArgs e)
{
popup.IsOpen = false;
}
//ExamplePage protected override void OnAppearing() {
base.OnAppearing();
if (AppShell.Instance.IsTutorialActive)
{
popup.IsOpen = true;
popup.Closed += Popup_Closed;
}
}
private async void Popup_Closed(object sender, System.EventArgs e)
{
await Shell.Current.GoToAsync("//thirdPage");
}
private async void Button_Clicked(object sender, System.EventArgs e)
{
popup.IsOpen = false;
}
//thirdView protected override void OnAppearing() {
base.OnAppearing();
if (AppShell.Instance.IsTutorialActive)
{
popup.IsOpen = true;
popup.Closed += Popup_Closed;
}
}
private async void Popup_Closed(object sender, EventArgs e)
{
// throw new NotImplementedException();
AppShell.Instance.IsTutorialActive = false;
await Shell.Current.GoToAsync("//fourthPage");
}
private async void Button_Clicked(object sender, EventArgs e)
{
popup.IsOpen = false;
}
//FourthView private void Button_Clicked(object sender, EventArgs e) {
AppShell.Instance.IsTutorialActive = true;
popup.IsOpen = true;
} |
It works very well ! Thank you for your efficiency and speed ! :)
Regards,