简体   繁体   中英

How to load PCL's App class from Win Phone 8.1 RT project

I'd created a Windows Phone 8.1 Project into an existing Xamarin Forms solution (Android, iOS and UWP). I'd followed instructions from Xamarin Documentation pages, but still unable to find "LoadApplication()" method. I'm using Visual Studio 2015, and the Project has .NET Framework 4.5 on her profile. The Xamarin.Forms.Platform.WinRT namespace hasn't the necessary class.

I have tried to create windows phone 8.1 client project following "Adding a Windows Phone App" . It is working pretty well. You may miss some key procedure.

I have tested if you miss step two(right-click on the newly created project...)and step five(Edit MainPage.xaml...) in the article mentioned above, you will unable to find LoadApplication() method.

The code sample has uploaded to github,You could refer to my code sample and verify difference between this two. So that you could find the missing procedure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM