I have a Navigation page and i'm using push async to move through pages.
I have a requirement to put a modal page in between one of the navigation scenario and once you click on the page the Modal page should close and the navigation should happen using the push scenario. When I try to remove the page it throws exception.
Bug 25979 - Removing page from Navigation stack throws System.ArgumentException
I had tried to custom render the page and then use the remove view from android.
protected override void OnElementChanged(ElementChangedEventArgs<Page> e)
{
base.OnElementChanged(e);
var page = e.NewElement as sampleAndroid;
var activity = this.Context as Activity;
var o = activity.LayoutInflater.Inflate(Resource.Layout.lyt, this, false);
view=o;
activity.Window.AddContentView(view, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.FillParent));
}
So when I navigate and since it is a modal page the next page is coming under the modal page. Is there any way to close the current modal page and pop the new page over it. I tried removing the page but it is not working.
Thanks in advance