Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ToolBar/AppBar icon disappears after navigation.

$
0
0

I am using PRISM framework in my Xamarin UWP application, and perform navigation using their NavigationService, like this:

await _navigationService.NavigateAsync("MyTestPage");

MyTestPage, has a toolbar icon, but after navigating to the page, the icon is no longer visible. This happens randomly, sometimes it is visible and sometimes it is not. But, once you navigate to the page and navigate out, even If the icon was visible, now it will not be visible, ever again, until you close the app and re-open it.

A navigation like this:

await _navigationService.NavigateAsync("app:///HamburgerMenuPage/NavigationPage/LandingPage/MyTestPage");
solves this issue.
The LandingPage makes a service call, and the fetched data is mandatory for further functionality, therefore this kind of navigation messes up that requirement. Is there any other solution? Please help. :smile:


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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