未找到“local:EmailValidationBehavior”类型?

The type 'local:EmailValidationBehavior was not found?

Xamarin 在这里形成新手,试图验证一些用户数据。我一直在关注有关设置和验证用户信息的在线指南。即使仔细检查了我的项目和提供的示例代码,我似乎也无法理解我缺少什么程序集参考。

这是我的代码

<?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:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:local ="clr-namespace:PluralBuddy" 
             mc:Ignorable="d"
             x:Class="PluralBuddy.Views.RegisterPage" NavigationPage.HasNavigationBar="False">
    <ContentPage.Content>
        <StackLayout>
            <Label Text="Register your system" TextColor="Black" FontSize="Header" />
            <Entry Placeholder="System name" x:Name="EntryUserName" PlaceholderColor="SlateBlue" />
            <Entry Placeholder="Date of Birth" x:Name="DOB" PlaceholderColor="SlateBlue" />
            <Entry Placeholder="# of members" x:Name="NumUsers" PlaceholderColor="SlateBlue" />
            <Entry Placeholder ="Pronouns" x:Name="Pronouns"  PlaceholderColor="SlateBlue" />

            <Entry Placeholder="Email" x:Name="EntryEmail" ReturnType="Next" PlaceholderColor="SlateBlue">
                <Entry.Behaviors>
                    <local:EmailValidationBehavior />
                </Entry.Behaviors>
            </Entry>
            <Entry Placeholder="Password" x:Name="EntryUserPassword" PlaceholderColor="SlateBlue" />
            <Button Text="Register" Clicked="Registration_Action" />
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

我正在关注的指南:

https://dzone.com/articles/register-and-login-using-sqlite-in-xamarinforms

https://www.c-sharpcorner.com/article/input-validation-in-xamarin-forms-behaviors/

在我的情况下,我需要更好地定义/使用命名空间。然后我清理并重建了我的解决方案并重新输入了有问题的代码。

归功于 https://whosebug.com/users/1338/jason