I am sorry I didn't know how to title my question any better, you name it if you got a good 1.
I have an entity Contact
.
this person has navigation properties: Address
, Phones
(A collection of Phone
).
They all implement a custom interface that exposes a property IsValid
.
In the contact edito form I have an OK button, I want its IsEnabled
property to be true only if:
Contact.IsValid
Contact.Address.IsValid
Array.TrueForAll(Person.Phones.Cast(Of Phone).ToArray, Function(p) p.IsValid)
I prefer not to use a converter, but to do it Xamly only, anyway, I don't mind to use local code (i.e. reference to a method in the current page that returns a boolean value like System.Web.UI.WebControls.CustomValidator or something like this), but I really don not want a converter unless it's the very only option.