-
Hi, I want to have a state with many properties like: Have a look. This is my model:
Now, I just bind the state to a view.
Is it a bug or do I am missing something?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well indeed it's bug with Uno's binding engine! Opened a new one #16297 to track it. In the WorkaroundAs a workaround, you can use the magic |
Beta Was this translation helpful? Give feedback.
Well indeed it's bug with Uno's binding engine! Opened a new one #16297 to track it.
In the
BindableMainModel
we have a propertyBindableParameters Parameters { get; }
. When any value of theParameters
record is changed, we are updating the internal state ofBindableParameters
but we are not creating a new instance. We then raise a property changed "Parameters" directly on theBindableMainModel
. With uno's binding engine as the instance of theBindableParameters
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)),