title: WPF How to bind an enum with Description to a ComboBox
body: <p>How can I bind an <code>enum</code> with <code>Description</code> (<code>DescriptionAttribute</code>) to a <code>ComboBox</code>?</p>
  
  <p>I got an <code>enum</code>:</p>
  
  <pre><code>public enum ReportTemplate
  {
      [Description("Top view")]
      TopView,
  
      [Description("Section view")]
      SectionView
  }
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type System:Enum}"
                      x:Key="ReportTemplateEnum"&gt;
      &lt;ObjectDataProvider.MethodParameters&gt;
          &lt;x:Type TypeName="Helpers:ReportTemplate"/&gt;
      &lt;/ObjectDataProvider.MethodParameters&gt;
  &lt;/ObjectDataProvider&gt;
  
  &lt;Style x:Key="ReportTemplateCombobox" TargetType="dxe:ComboBoxEditSettings"&gt;
      &lt;Setter Property="ItemsSource" 
              Value="{Binding Source={x:Type Helpers:ReportTemplate}}"/&gt;
      &lt;Setter Property="DisplayMember" Value="Description"/&gt;
      &lt;Setter Property="ValueMember" Value="Value"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>Can't succeed to do this, any simple solution?</p>
  
  <p>Thanks in advance!</p>