[英]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). 我已经在现有的Xamarin Forms解决方案(Android,iOS和UWP)中创建了Windows Phone 8.1项目。 I'd followed instructions from Xamarin Documentation pages, but still unable to find "LoadApplication()" method.
我遵循了Xamarin文档页面上的说明,但是仍然找不到“ LoadApplication()”方法。 I'm using Visual Studio 2015, and the Project has .NET Framework 4.5 on her profile.
我正在使用Visual Studio 2015,并且该项目的个人资料上具有.NET Framework 4.5。 The Xamarin.Forms.Platform.WinRT namespace hasn't the necessary class.
Xamarin.Forms.Platform.WinRT命名空间不是必需的类。
I have tried to create windows phone 8.1 client project following "Adding a Windows Phone App" . 我尝试在“添加Windows Phone应用程序”之后创建Windows Phone 8.1客户端项目。 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. 我已经测试了您是否错过了上述文章中的第二步(右键单击新创建的项目...)和第五步(编辑MainPage.xaml ...),将无法找到
LoadApplication()
方法。
The code sample has uploaded to github,You could refer to my code sample and verify difference between this two. 代码示例已上传到github,您可以参考我的代码示例并验证两者之间的差异。 So that you could find the missing procedure.
这样您就可以找到丢失的过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.