You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MVUX properties not visible to x:Bind TwoWay #18710
MVUX bindable view model properties are source-generated, so they aren't visible to the Uno source generator that compiles two-way XAML x:Bind code, similar to how MVVM toolkit generated observable properties were not visible until a workaround for that was implemented.
Where Model is a bindable MVUX view model, you get:
error UXAML0001: Unable to find member [Name] on type [MainViewModel]
Expected behavior
MVUX bindable model properties should be inferred from their model for the XAML source generator, similar how MVVM toolkit generated observable properties are inferred from their fields to allow for two-way x:Bind.
How to reproduce it (as minimally and precisely as possible)
When the XAML generator runs (and tries to resolve the x:Bind path) it is not able to find properties generated by other generators (the MVUX generator in this case). In one-way binding we just generate the code, ignoring the fact the path resolution failed (and let the build fail later if the path is invalid), but in 2-way we need to resolve the actual properties types to generate proper casting.
Infer MVUX generated properties
While for toolkit's MVVM inferring the generated properties is fairly easy (1 to 1, same type), for MVUX it's quite more complicated. It would require to clone a significant amount of code from the MVUX's generator, and -worst- would cause an implicit dependency from uno to extension (if the generated properties evolve at some point) ... which is really not optimal.
As we will try to not go that way and instead find a solution that also covers other linked issues, I'm closing this issue for now. We can revisit later.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.
Activity
dr1rrb commentedon May 20, 2025
Context
When the XAML generator runs (and tries to resolve the
x:Bindpath) it is not able to find properties generated by other generators (the MVUX generator in this case). In one-way binding we just generate the code, ignoring the fact the path resolution failed (and let the build fail later if the path is invalid), but in 2-way we need to resolve the actual properties types to generate proper casting.Infer MVUX generated properties
While for toolkit's MVVM inferring the generated properties is fairly easy (1 to 1, same type), for MVUX it's quite more complicated. It would require to clone a significant amount of code from the MVUX's generator, and -worst- would cause an implicit dependency from uno to extension (if the generated properties evolve at some point) ... which is really not optimal.
Linked issues:
x:Bindnot support the property generated by source generator #14409[Bindable]attribute is not considered by uno's type info generator uno.extensions#2648As we will try to not go that way and instead find a solution that also covers other linked issues, I'm closing this issue for now. We can revisit later.
github-actions commentedon May 6, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.