【问题标题】:Adding WindowsPhone8.1 project to Xamarin.Forms将 WindowsPhone8.1 项目添加到 Xamarin.Forms
【发布时间】:2023-03-30 13:07:01
【问题描述】:

根据Xamarin's Document,我将 windows phone 应用程序添加到 Xamarin.Forms 项目中。

但是,第 5 步给我的错误是“无法创建 WindowsPhonePage 的实例”。

<forms:WindowsPhonePage

xmlns:forms="using:Xamarin.Forms.Platform.WinRT"
x:Class="XamarinTest.WinPhone81.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:XamarinTest.WinPhone81"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">  

</forms:WindowsPhonePage>

【问题讨论】:

    标签: xaml xamarin windows-phone-8.1 winrt-xaml xamarin.forms


    【解决方案1】:

    好的,经过多次反复试验,我解决了。 指南没有提及,但我从 NuGet 中添加了Xamarin.Forms.Windows,它解决了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多