Maui 9 x:DataType & csla:PropertyInfo #4657
-
We're now testing our mobile app after moving it from XF to Maui 9. One thing I noticed is that if I add an x:DataType to the page, it seems to break something with the PropertyInfo Xaml control. We have a label, bound to the IsValid of the property info, to show or hide an icon if the field was invalid. Adding x:DataType to the page though caused the label to always be visible; I don't think it was catching IsValid changing. Has anyone else experienced something like this? I have had other issues that arose after adding x:DataTypes too not related to Csla |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
I've done very little MAUI. Really just enough to get the basic CSLA functionality working, otherwise I've focused on MAUI Hybrid (Blazor) scenarios. It is possible that there's some bug in the PropertyInfo control. Can you provide an isolated repro? |
Beta Was this translation helpful? Give feedback.
-
@Bowman74 would you have time or interest in trying to sort out this issue? |
Beta Was this translation helpful? Give feedback.
-
@ajohnstone-ks It feels similar to this issue: Just some more information on how to properly use compiled bindings: "To use compiled bindings in XAML, the x:DataType attribute must be set to a string literal, or a type using the x:Type markup extension." https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/data-binding/compiled-bindings.md |
Beta Was this translation helpful? Give feedback.
-
@ajohnstone-ks
|
Beta Was this translation helpful? Give feedback.
@ajohnstone-ks
Sounds good. Sounds like the answer is it is expected behavior with .Net 9 MAUI compiled bindings. I'll close this one up.
@rockfordlhotka