I am creating a xamarin behaviour to validate an email id, therefore I created the behaviour file and tried to localise it in XAML file but I get the below error
Xamarin.Forms.Xaml.XamlParseException: Position 12:10. Type local:EmailBhvr not found in xmlns clr-namespace:Validation.Helpers;assembly=Validation.Helpers
Namespace: Validation
Behaviour Code File: EmailBhvr
Here is my XAML code:
<? 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:Validation;assembly=Validation"
x:Class="Validation.WelcomePage">
<StackLayout>
<Label Text = "Hello Xamarin" />
< Entry Placeholder="Enter your full name" x:Name="myName">
<Entry.Behaviors>
<local:EmailBhvr />
</Entry.Behaviors>
</Entry>
<Entry Placeholder = "Enter your email" x:Name="myEmail" />
<Entry Placeholder = "Enter password" x:Name="myPassword" IsPassword="True" />
<Entry Placeholder = "Confirm password" x:Name="myConfirmPassword" IsPassword="True" />
<Button Text = "Save" x:Name="SaveRegistration"/>
</StackLayout>
</ContentPage>
<local:EmailBhvr />and is it defined in the Validation assembly and namespace?EmailBhvris the behaviour class for validating the email id