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
In Avalonia 11.2.3, the following sequence of operations does not work as opposed to using v0.10.22:
Bind your SelectedItem & ItemsSource to viewmodel (VM) properties
set the SelectedItem via the VM
populate ItemsSource via the VM
raise a propertychanged for the selected item VM property
There are two ways to approach this:
In WPF, as soon as you populate the ItemsSource, it automatically respects the previously set SelectedItem
This is a regression introduced by Binding System refactor #13970, where a forced raisepropertychanged is being short-circuit due to a check if the value changed at all, here:
Describe the bug
In Avalonia 11.2.3, the following sequence of operations does not work as opposed to using v0.10.22:
There are two ways to approach this:
Avalonia/src/Avalonia.Base/PropertyStore/ValueStore.cs
Lines 803 to 806 in aa07882
In my opinion, the WPF behavior would be the preferred one here, what do you guys think?
To Reproduce
Please check the following simple repro apps:
https://github.com/tvass83/AvaloniaIssues/tree/main/SelectedItemOrder
Expected behavior
No response
Avalonia version
11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: