title: Binding radio button to enum property
body: <p>I think I've followed the examples given in this <a href="https://stackoverflow.com/a/2908885/3245111">post</a> but my property is not changing when button are changed.  Any suggestions on where I went wrong?</p>
  
  <p>C# code for enum and class</p>
  
  <pre><code>public enum SystemTypes
  {
      TypeA,
      TypeB
  }
  
  public partial class MainWindow : Window
  {
  
      public MainWindow()
      {
          InitializeComponent();
      }
      SystemTypes systemType = SystemTypes.TypeA;
      public SystemTypes SystemType 
      {
          get { return systemType; }
          set { systemType = value; }
      }
  }
  
  public class EnumToBooleanConverter : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
      {
          return value.Equals(parameter);
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
      {
          return value.Equals(true) ? parameter : Binding.DoNothing;
      }
  }
  </code></pre>
  
  <p>xaml</p>
  
  <pre><code>        &lt;Canvas&gt;
              &lt;Canvas.Resources&gt;
                  &lt;local:EnumToBooleanConverter x:Key="EnumToBooleanConverter" /&gt;
              &lt;/Canvas.Resources&gt;
              &lt;RadioButton x:Name="TypeARadioButton" Content="TypeA" Canvas.Left="10" Canvas.Top="10" 
                           IsChecked="{Binding Path=SystemType, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter={x:Static local:SystemTypes.TypeA}}" /&gt;
              &lt;RadioButton x:Name="TypeBRadioButton" Content="TypeB" Canvas.Left="10" Canvas.Top="31"
                           IsChecked="{Binding Path=SystemType, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter={x:Static local:SystemTypes.TypeB}}" /&gt;
  
          &lt;/Canvas&gt;
  </code></pre>