Closed eduardoagr closed 3 weeks ago
It looks like this is a question on how you can update your app to correctly use EmailValidaitonBehavior
with your custom entry.
Your attached sample has a few problems:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'CustomEntry.Controls.CustomEntry' threw an exception.
EmailValidationBehavior
to controls:CustomEntry
whose text never changes because the Entry
in your XAML does not have a Binding
to ViewModel.Entry
I am converting this to a discussion because I don't see a bug here with EmailValidaitonBehavior
, rather an incorrect implementation.
Hi @eduardoagr. We have added the "needs reproduction" label to this issue, which indicates that we cannot take further action. This issue will be closed automatically in 5 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
I have a custom control, that shows the textbox with a border and an hint
Expected Behavior
I want to change the border color, when the email is not valid, and change the border color to green
Steps To Reproduce
Link to public reproduction project repository
https://github.com/eduardoagr/CustomEntry
Environment
Anything else?
No response