title: How to pass specific value to the converter parameter?
body: <p>I have created a class Person that looks like this: </p>
  
  <pre><code>public class Person
  {
      public enum GenderType
      {
          Female, 
          Male
      }
  
      public string Name
      {
          get; set;
      }
  
      public GenderType? Gender
      {
          get; set;
      }
  }
  </code></pre>
  
  <p>Next, I created data template that is going to present objects of type Person.<br>
  Here's XAML code: </p>
  
  <pre><code>&lt;DataTemplate 
      x:Key="personTemplate" 
      DataType="{x:Type model:Person}"&gt;
    &lt;StackPanel&gt;
      &lt;RadioButton 
          Content="Female" 
          IsChecked="{Binding Path=Gender, 
                      Converter={StaticResource genderConverter}, 
                      ConverterParameter=???}"/&gt;
      &lt;RadioButton 
          Content="Male" 
          IsChecked="{Binding Path=Gender, 
                      Converter={StaticResource genderConverter}, 
                      ConverterParameter=???}"/&gt;
      &lt;RadioButton 
          Content="Not specified" 
          IsChecked="{Binding Path=Gender, 
                      Converter={StaticResource genderConverter}, 
                      ConverterParameter=???}"/&gt;
    &lt;/StackPanel&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>Of course the <code>???</code>s in the code won't work :) The problem is that I want to create a <code>genderConverter</code> converter which will compare the given value, i.e. <code>personObject.Gender</code>, against the given <code>Person.GenderType</code> value provided in the parameter and return <code>true</code> if the values match. </p>
  
  <p>I don't know how to make the converter parameter pass <code>Person.GenderType.Female</code>, <code>Person.GenderType.Male</code> and <code>null</code>, for the first, second and third radio button, respectively.</p>