I am trying to remove the specific BackStack
entry from NavigationService.BackStack
.
I found there is one method to remove back entry i.e. NavigationService.RemoveBackEntry();
, but it remove all back entries from stack
. So, my question is How to remove specific back entry?
How can I remove the query string from NavigationService.CurrentSource
? I want retrieve only Uri
without Query String
.
Thank you in advance :)
You can't remove specific back stack entity, because your current stack(current page) can interact with its adjacent stack only, So can remove only its previous stack entity. You need to remove stack at time of NavigateTo() next page.