Binding a CompareValidatorBehavior Bindable property in MVVM with context to different entry

ChrisVardonChrisVardon GBMember ✭✭

I have created a password compare validator behaviour which changes the color of the text in one entry when it matches the text of another. This works by setting the Binding context in XAML to that of the entry I want to compare. However, I am now in a situations where I want to show the validation error messages on a button command in my view model, but given how the binding context of the entry is now that of the other entry, how do I bind a bindable IsValid property to my viewmodel so that I know this message needs to be shown?

Sign In or Register to comment.