Xaml PropertyInfo does not update state #3638
Replies: 4 comments
-
Currently, I work around by listening the ValidationComplete in ContentPage and call UpdateState for each XAML PropertyInfo in the page. Update: The issue can be resolved by using an asynchronous rule instead. Asynchronous rules change the busy status of input properties, which in turn updates the state of the PropertyInfo. |
Beta Was this translation helpful? Give feedback.
-
Do you have a dependency rule set up between the two properties? |
Beta Was this translation helpful? Give feedback.
-
Yes, the dependency is setup correctly. The rule is checked when any of the properties change, but the checking result is not surfaced to the PropertyInfo View. |
Beta Was this translation helpful? Give feedback.
-
This sounds like a difference in how |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
In a business object, create two properties:
Implement a business rule to validate if the user entered the same password in both fields. Set an error message for the RetypePasswordProperty in case the validation fails.
Note that when the user enters a value for PasswordProperty, the Xaml PropertyInfo bound to RetypePasswordProperty does not update its state. The state only updates when the user enters a value for RetypePasswordProperty.
Version and Platform
CSLA version: 6.2.2
Platform: Xamarin
Beta Was this translation helpful? Give feedback.
All reactions