Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Manipulating NavigationStack in OnDisappearing

$
0
0

Hi,

I like to implement a navigation like that: Going forward from page A -> B -> C, but going back from C -> A.
So I want to remove page B after going to C.

I added the remove to OnDisappering in page B:

protected override void OnDisappearing()
{
Navigation.RemovePage(this);
}

This works on WP and iOS but gets recursive on Android, i.e RemovePage() calls OnDisappearing. Is that expected behavior or a bug?


Viewing all articles
Browse latest Browse all 58056

Trending Articles