Unexpected binding behavior in UWP

I cannot get binding to work when the controls that define them initially load. I have a couple RadioButtons that bind IsChecked to an enum the following way:

<RadioButton Content="My Enum Field">
            Converter="{StaticResource ValueEqualsParameterConverter}"

The converter I use is:

public class ValueEqualsParameterConverter : IValueConverter
    public object Convert(object value, Type targetType, object parameter, string language)
        return value == parameter;

    public object ConvertBack(object value, Type targetType, object parameter, string language)
        return parameter;

When you load the Page that displays these RadioButtons, the initial value is not checking the appropriate RadioButton. I have confirmed the value is changing when you manually check the RadioButtons by printing to the console from the view model.

I am new to UWP and I’ve never had this issue with regular WPF so any help is appreciated!

Note: I cannot tag UWP, WPF, XAML, or C#, but these are the relevant technologies I am using.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.