title: Unable to find enum type for static reference in WPF
body: <p>I'm trying to bind an enum to a radio button in WPF (Inspired by <a href="https://stackoverflow.com/questions/397556/wpf-how-to-bind-radiobuttons-to-an-enum/2908885#2908885">this answer</a>), but I have trouble finding the enum type for the converter parameter:</p>
  
  <p>The enum is defined in the following way</p>
  
  <pre><code>namespace Application.Models
  {
      public class Enums
      {
          public enum MySelections { one, two ,three };
  
          public MySelections CurrentSelection;
  
          ...
  
      }
  }
  </code></pre>
  
  <p>I am trying to bind now the checkbox like this (The data context is assumed to be correct and the value converter implemented:)</p>
  
  <pre><code>&lt;Window x:Class="Application.MainWindow"
          ....
          xnlns:models="clr-namespace:Application.Models" &gt;
  
  ...
  &lt;RadioButton Content="One"
               IsChecked="{Binding Path=CurrentSelection, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter={x:Static models:Enums.MySelections.one}}" /&gt;
  ...
  </code></pre>
  
  <p>The problem lies with <code>{x:Static models:Enums.MySelections.one}</code> which constantly throws the error that the type <code>models:Enums.MySelections</code> could not be found.</p>
  
  <p>How can I find my enum type?</p>