简体   繁体   English

如何从Win Phone 8.1 RT项目加载PCL的App类

[英]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.

相关问题 我如何从手机的应用程序目录中将更新的xml文件加载到项目解决方案中 - How i can load the updated xml file in my project solution from app directory that is from my phone 如何将具有resx本地化的Windows Phone项目添加到Xamarin PCL解决方案? - How to add Windows Phone project with resx localization to Xamarin PCL solution? 如何在Xamarin PCL项目中从视图中调用Model的方法 - How can I invoke a Model's method from view in a Xamarin PCL project 从Xamarin Mono for Android项目引用PCL(可移植类库) - Referencing a PCL (Portable Class Library) from a Xamarin Mono for Android project 如何使解析与Xamarin的PCL项目和MvvmCross一起使用? - How to make Parse work with Xamarin's PCL project and MvvmCross? 如何在PCL项目类文件中显示消息对话 - how to display message dailogue in PCL project class file 发布Windows Phone 8.1应用程序 - Publish Windows Phone 8.1 app 从共享项目引用PCL? - Reference a PCL from Shared Project? 如何从PCL项目中访问iOS / Android项目代码中的方法 - how to access the methods in iOS/Android projects code from PCL project 如何在Xamarin PCL项目中进行数据绑定? - How to Databind in Xamarin PCL project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM