"http://schemas.microsoft.com/winfx/2009/xaml"命名空间中不存在"类"属性

Sti*_*nna 9 xaml visual-studio xamarin xamarin.forms

我正在使用Xamarin.Forms构建应用程序,在制作XAML页面时,我收到以下错误:

" 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>
Run Code Online (Sandbox Code Playgroud)

背后的代码如下:

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();
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

我正在使用Visual Studio 2015

Joa*_*m M 0

应该:

<?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.ActOverviewView"
                   xmlns:controls="XXXX"
</controls:ViewPage>
Run Code Online (Sandbox Code Playgroud)