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

Changing Pages from Activity

$
0
0

Hi,
I have several Forms (XAML) Pages and an Android service which has a callback to the MainActivity.
I want to change the Forms (XAML) page from within the Activity when the callback is called.
How do I do this ?
I have tried adding navigation to the Forms App.cs "MainPage.Navigation.PushAsync(new AlertXamlPage());" and calling this but the debugger just crashes.
I have tried adding a navigation method to one of my XAML pages but how do I call this from the activity and more important what if that page is not current or loaded ?

Add on to this I want to do the same thing from iOS and eventually windows.

Any ideas ?
Cheers,
Wayne


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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