BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<inputLayout:SfTextInputLayout ContainerType="Outlined" Hint="Indirizzo Email" ErrorText="L'indirizzo email non è valido">
<Entry TextColor="White" Text="{Binding Email}" Keyboard="Email" IsVisible="{Binding IsNotPartner}" >
<Entry.Behaviors>
<local:EmailValitationBehavior />
</Entry.Behaviors>
</Entry>
</inputLayout:SfTextInputLayout>
private void Entry_Unfocused(object sender, FocusEventArgs e)
{
Entry inputView = (Entry)sender;
bool IsValid = (Regex.IsMatch(inputView.Text, emailRegex, RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(250)));
inputView.TextColor = IsValid ? Color.Blue : Color.Red;
model.TextHasError = !IsValid;
} |
(s.Parent.Parent.Parent as SfTextInputLayout).HasError = IsValid ? false : true; |