Open yasar11732 opened 3 days ago
NumberBox
seems not be resetting when given a new data context.
Here's a reproducible repo.
Similar behavior can be seen by adding several items to the list above, and just scrolling through the items.
Based on @AndrewKeepCoding 's comment, I could reproduce the problem outside of a ListView. Problem seems to about how NumberBox handles a change in binding. Here is the repo
Describe the bug
ListView can change values of underlying data if it contains NumberBox with Minimum constraint. It is possible to assume this extends to other inputs with contraints as well.
Steps to reproduce the bug
MainWindow.xaml:
MainWindow.xaml.cs:
Expected behavior
Ordering items inside ListView should not cause values to change.
Screenshots
NuGet package version
None
Windows version
No response
Additional context
Cross-Post from: https://stackoverflow.com/questions/79203554/listview-of-numberbox-with-minimum-constraint-corrupts-value-when-ordered
Replacing whole collection with new, sorted list also causes this behaviour to happen.