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

Loading a Forms application in Windows Phone 8.1 without LoadApplication

$
0
0

We're working on an application for iOS, Android and Windows Phone 8.1. Due to some problems with the default LoadApplication we had to use some different methods to load the Forms app on Android and iOS:

Android (MainActivity.cs):

    var page = App.GetMainPage();
    SetPage(page);

iOS (AppDelegate.cs):

    MainView = App.GetMainPage().CreateViewController();
    window.RootViewController = MainView;
    window.MakeKeyAndVisible();

I know it's a mess (and deprecated), but to keep things consistent I'd prefer to do the same thing for Windows Phone 8.1 instead of trying to get LoadApplication to work (after trying it it gives me an exception that apparently cannot be traced).

So, if anyone knows how to do this I'd appreciate the help.


Viewing all articles
Browse latest Browse all 75885

Trending Articles