I have a behavior on an entry field for a password that validates the password format. I have a label that has its IsVisible bound to the behavior's IsValid property and the Text property bound to the behavior's ErrorMessage property.
If I remove one of the bindings, for example, put in static text and bind the IsVisible property the label shows and hides as the behavior validates the entry field. If I set the IsVisible to true and bind the text I see the error message text populating the label.
If I set both to bind to the behavior the label will never display. The label is initially not visible, so Im thinking that is making it not be measured during layout. If that is the case, how to I force it to update the layout when the property changes?
I tried using the label.Layout(), but I don't know what rectangle bounds to put into it. In Flex/AS3 there is a method to force a control to layout itself by invalidating the measurements, is there something similar in XF?
Thanks,
Jason