Hi,
i extended the INavigationService with the following method:
public static async Task NavigateAbsoluteAsync<TPage>(
this INavigationService nav,
NavigationParameters navigationParameters = null,
bool useModalNavigation = false,
bool animated = true
)
where TPage : Page
{
await nav.NavigateAsync(
new Uri($"app:///{nameof(NavigationPage)}/{nameof(MainPage)}/{nameof(NavigationPage)}/{typeof(TPage).Name}",
UriKind.Absolute), navigationParameters, useModalNavigation, animated
);
}
^This is for resetting the whole navigation stack. But i came up with this problem:
When i use this extension method on e.g. NavigateAbsoluteAsync<HelloPage>()
, the NavigationPage settings of MainPage are showed in HelloPage?! So i cant explicit set the ToolbarIcons and the Title of HelloPage.
Any suggestions?
Thanks in advance