Xaml 找不到类型文本框

Xaml 找不到类型文本框,xaml,xamarin,Xaml,Xamarin,我试图在Xamarin中创建表单并使用文本框。当我编译代码时,我得到以下错误 Type TextBox not found in xmlns http://xamarin.com/schemas/2014/forms 我还没有找到任何类似的问题,这是我的第一个Xamarin项目,所以我不知道从这里开始该怎么办。xmlns链接是否过时,只是不包含文本框 MainPage.xaml 试试这个: <?xml version="1.0" encoding="utf-8" ?> <

我试图在Xamarin中创建表单并使用文本框。当我编译代码时,我得到以下错误

Type TextBox not found in xmlns http://xamarin.com/schemas/2014/forms
我还没有找到任何类似的问题,这是我的第一个Xamarin项目,所以我不知道从这里开始该怎么办。xmlns链接是否过时,只是不包含文本框


MainPage.xaml

试试这个:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:HelloWorld"
             x:Class="HelloWorld.MainPage">
    <StackLayout>
        <Label Text="Email" />
        <Entry WidthRequest="500" Placeholder="Enter registered email" />
    </StackLayout>
</ContentPage>


Xamarin.Forms中没有文本框控件。我认为您正在寻找
条目
编辑器
。可以找到内置控件的列表。@Nick Oh man非常感谢您。我在拔头发。我刚刚意识到我点击了错误的Microsoft文档链接。
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:HelloWorld"
             x:Class="HelloWorld.MainPage">
    <StackLayout>
        <Label Text="Email" />
        <Entry WidthRequest="500" Placeholder="Enter registered email" />
    </StackLayout>
</ContentPage>