title: wpf debug error output System.WIndows.Data Error 25
body: <p>I have a custom styled Combobox which works fine. It is placed inside a usercontrol and bound to a data structure. I use DisplayMemberPath to show only one element in the Combobox TextBox. The ComboBox Style is taken from MSDN and used many times. So it's not displayed here.</p>
  
  <pre><code>&lt;UserControl x:Class="wpf.projext1.MyComboBox"
           x:Name="MyControl"
           ...
      &lt;ComboBox Style="{StaticResource ComboBoxStyle}"
                    Text="{Binding ElementName=MyControl, Path=Text}"
                    IsEditable="True"
                    IsTextSearchEnabled="False"
                    StaysOpenOnEdit="True"
                    ItemsSource="{Binding ElementName=MyControl, Path=MyItemsSource}"
                    DisplayMemberPath="Name"
      &lt;/ComboBox
  </code></pre>
  
  <p>I get the following annoying error message populating the output window:</p>
  
  <pre><code>System.Windows.Data Error: 25 : Both 'ContentTemplate' and 'ContentTemplateSelector' are set;  'ContentTemplateSelector' will be ignored. ComboBoxItem:'ComboBoxItem' (Name='')
  </code></pre>
  
  <p>if i leave out the </p>
  
  <pre><code>DisplayMemberPath="Name"
  </code></pre>
  
  <p>... no debug output about error 25 is shown. But I definitely need DiplayMemberPath="Name"!
  Do You have an idea to fix this ?</p>