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

Prism absolute navigation problem

$
0
0

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


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>