title: ComboBox binding to enum, what did I do wrong?
body: <p>I have searched around and it seems very easy to bind enums to combobox, just retrieve Enum values as a list of strings via an ObjectDataProvider from the static Enum.GetValues method, however i can't get it to work.   The error is Type ContactExportType was not found.</p>
  
  <p>I have an enum called ContactExportType, it resides on Enums class.  This class is part of the CEM.Marketing.Objects namespace.</p>
  
  <p>This is what i have:</p>
  
  <pre><code>&lt;UserControl 
   xmlns:local="clr-namespace:CEM.Marketing.Objects"
   xmlns:sys="clr-namespace:System;assembly=mscorlib"&gt;
  
  &lt;Grid&gt;
  &lt;Grid.Resources&gt;
          &lt;ObjectDataProvider MethodName="GetValues"
                      ObjectType="{x:Type sys:Enum}"
                      x:Key="ContactExportTypes"&gt;
          &lt;ObjectDataProvider.MethodParameters&gt;
              &lt;x:Type TypeName="local:ContactExportType" /&gt;
          &lt;/ObjectDataProvider.MethodParameters&gt;
  
      &lt;/ObjectDataProvider&gt;
      &lt;/Grid.Resources&gt;
  
  &lt;/Grid&gt;
   &lt;ComboBox 
          ItemsSource="{Binding {StaticResource ContactExportTypes}}"
  ...
  </code></pre>
  
  <p>Thanks,
  Angela</p>