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
ViewModel has two properties object (some class) and struct (bool).
When OnPropertyChanged is invoked without changing the object property Converter in MultiBinding is not invoked. But when OnPropertyChanged is invoked without changing the struct property, there is no such problem.
The same problem does not occur when invoking Converter in Binding for both object and struct.
Click on "UpdateObjectForMultiValueConverter" button
Expected behavior
OnPropertyChanged invoked Converter in MultiBinding
Avalonia version
11.1.0, master brunch
OS
Windows
Additional context
This happens because false is written to the hasValueChanged variable in PublishValue() (class UntypedBindingExpressionBase) and then the notification is ignored in _sink.
It is true that the object has not been changed because we have not updated it in property, but we wanted to make View redraw by invoking OnPropertyChanged.
When invoking OnPropertyChanged for a Binding this code is not used, so there is no such problem
Problem with MultiBinding is not observed in version 10.0.10
The text was updated successfully, but these errors were encountered:
Describe the bug
ViewModel has two properties
object
(some class) andstruct
(bool).When
OnPropertyChanged
is invoked without changing the object propertyConverter
inMultiBinding
is not invoked. But whenOnPropertyChanged
is invoked without changing thestruct
property, there is no such problem.The same problem does not occur when invoking
Converter
inBinding
for bothobject
andstruct
.To Reproduce
Project for test: Example.zip
Expected behavior
OnPropertyChanged invoked Converter in MultiBinding
Avalonia version
11.1.0, master brunch
OS
Windows
Additional context
This happens because
false
is written to thehasValueChanged
variable inPublishValue()
(classUntypedBindingExpressionBase
) and then the notification is ignored in_sink
.It is true that the
object
has not been changed because we have not updated it in property, but we wanted to make View redraw by invokingOnPropertyChanged
.When invoking
OnPropertyChanged
for aBinding
this code is not used, so there is no such problemProblem with
MultiBinding
is not observed in version 10.0.10The text was updated successfully, but these errors were encountered: