https://github.com/agneszitte-nventive/IsCheckedUnoIssue
IsChecked (RadioButton) value does not behave the same when using a converter
Detailed Logs
syntax: $"FromEqualityToBool.Convert: {value} + {parameter} -> {returnValue}"
syntax: $"FromEqualityToBool.ConvertBack: {value} + {parameter} -> {returnValue ?? "null"}"
== on-load: this.DataContext = new MainViewModel() { SelectedTab = "TAB1" };
FromEqualityToBool.Convert: TAB1 + TAB1 -> True
FromEqualityToBool.Convert: TAB1 + TAB2 -> False
// TAB1 is selected
== selecting TAB2
FromEqualityToBool.ConvertBack: True + TAB2 -> TAB2
FromEqualityToBool.Convert: TAB2 + TAB1 -> False
// TAB2 is selected
== selecting TAB1
FromEqualityToBool.ConvertBack: True + TAB1 -> TAB1
FromEqualityToBool.Convert: TAB1 + TAB2 -> False
// TAB1 is selected
== on-load: this.DataContext = new MainViewModel() { SelectedTab = "TAB1" };
FromEqualityToBool.Convert: TAB1 + TAB1 -> True
FromEqualityToBool.Convert: TAB1 + TAB2 -> False
// TAB1 is SelectedTab
== selecting TAB2
FromEqualityToBool.Convert: + TAB2 -> False // value is null (CallStackValueNull.txt)
FromEqualityToBool.ConvertBack: True + TAB2 -> TAB2
FromEqualityToBool.Convert: TAB2 + TAB1 -> False
// nothing is selected
== selecting TAB2 again
FromEqualityToBool.ConvertBack: True + TAB2 -> TAB2
// TAB2 is selected
== selecting TAB1
FromEqualityToBool.Convert: + TAB1 -> False // value is null (CallStackValueNull.txt)
FromEqualityToBool.ConvertBack: True + TAB1 -> TAB1
FromEqualityToBool.Convert: TAB1 + TAB2 -> False
// nothing is selected
== selecting TAB1 again
FromEqualityToBool.ConvertBack: True + TAB1 -> TAB1
// TAB1 is selected
IsChecked (RadioButton) value should behave the same when using a converter
Nuget Package: Uno.UI
Package Version(s): 2.0.532 & 2.1.0-dev.1345
Affected platform(s):
Visual Studio:
Thanks! This should be relatively easy to reproduce in a Unit Test.
Most helpful comment
Thanks! This should be relatively easy to reproduce in a Unit Test.