系统相关
首页 > 系统相关> > c#-在Windows Phone 8.1中初始化XLabs

c#-在Windows Phone 8.1中初始化XLabs

作者:互联网

我刚刚在Xamarin应用程序项目中添加了Windows Phone 8.1项目,但是现在我不知道如何在其中初始化XLabs,因为它找不到XFormsAppWP,因此我无法按照XLabs’s website.的指南进行操作.
我正在使用XLabs 2.0.5783-pre01.
有人可以帮我吗?

解决方法:

在安装Xlabs时,必须在您拥有的每个项目中安装nuget.
我现在已经在WP8.1项目中使用Xamarin.Forms 2.2.0.31和XLabs.Forms 2.2.0-pre02进行了测试.

在您的App.xaml.cs中放置以下内容:

var app = new XFormsAppWin();
app.Init(this); 

在此行下方:

Xamarin.Forms.Forms.Init(e);

并添加以下内容:

using XLabs.Forms;

标签:xamarin,windows-phone-8-1,windows-phone,xlabs,c
来源: https://codeday.me/bug/20191118/2028951.html