Skip to content

#MVUX: binding does not trigger, when model property updated #16277

Closed Answered by dr1rrb
kucint asked this question in Q&A
Discussion options

You must be logged in to vote

Well indeed it's bug with Uno's binding engine! Opened a new one #16297 to track it.

In the BindableMainModel we have a property BindableParameters Parameters { get; }. When any value of the Parameters record is changed, we are updating the internal state of BindableParameters but we are not creating a new instance. We then raise a property changed "Parameters" directly on the BindableMainModel. With uno's binding engine as the instance of the BindableParameters didn't change, the binding engine stops update.

Workaround

As a workaround, you can use the magic Value property:
.Text(x => x.Bind(() => vm.Parameters.Value).Convert(p => p.A)),

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kucint
Comment options

Answer selected by kucint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants