Open joneuhauser opened 3 years ago
I have the same issue. This is really annoying.
Is there at least a workaround for this? Probably styling a checkbox to look like a radio button? But this would require implementing the single selection feature.
A styled CheckBox should work. As the property is negated, once you click on first check box, the second should update. But anyway, if you have some time to investigate the issue further, try to clone the latest source and see if you can find a fix for it. Probably the states have to be refreshed just before showing up.
Hi,
WPF shows the same behavior (https://stackoverflow.com/questions/8568861/when-viewmodel-is-changed-to-a-different-instance-a-bound-radiobutton-is-reset-t), but I still think this is a bug.
MainWindow.xaml
MainWindow.xaml.cs
Steps to reproduce:
Expected outcome: RadioButton in the first tab is still True Observed outcome: RadioButton is reset to False
Not reproduced with a CheckBox.
I don't require Group names to reproduce, so I doubt https://github.com/AvaloniaUI/Avalonia/issues/2717 or https://github.com/AvaloniaUI/Avalonia/issues/2903 are related.
Avalonia 0.9.12 and 0.10.0 on Windows 10 and Ubuntu 20.04
If this is not a bug, how can I work around it?