我正在使用Xamarin.Forms构建一个应用程序,在创建XAML页面时,我遇到了如下错误:
“Class”属性在“http://schemas.microsoft.com/winfx/2009/xaml”命名空间中不存在。
这不是我第一次创建页面,除了这个页面之外,所有其他页面似乎都正常工作。我已经检查了引用和文件的属性,它们看起来都没问题。
以下是我的代码:
“Class”属性在“http://schemas.microsoft.com/winfx/2009/xaml”命名空间中不存在。
这不是我第一次创建页面,除了这个页面之外,所有其他页面似乎都正常工作。我已经检查了引用和文件的属性,它们看起来都没问题。
以下是我的代码:
<?xml version="1.0" encoding="utf-8" ?>
<controls:ViewPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XXXX"
xmlns:controls="XXXX"
</controls:ViewPage>
后面的代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XXXX;
using Xamarin.Forms;
namespace XXXX
{
public partial class ActOverviewView : ViewPage, IActOverviewView
{
public ActOverviewView()
{
InitializeComponent();
}
}
}
我正在使用Visual Studio 2015
xmlns:controls
命名空间是错误的。 - Yehor Hromadskyi