title: Fill a combobox in WPF with a list of web services
body: <p>I have a control like this:</p>
  
  <pre><code>             &lt;ComboBox x:Name="ComboTipo" 
                Height="23"   
                SelectionChanged="ComboTipo_SelectionChanged" 
                Width="450" 
                Canvas.Left="609" 
                Canvas.Top="26" /&gt;    
  </code></pre>
  
  <p>And my code is:</p>
  
  <pre><code>        ComboTipo.DisplayMemberPath = "Descripcion";
          ComboTipo.SelectedValuePath = "IdTipoPersona";
          ComboTipo.ItemsSource = myWebServices.dameTipos();
  </code></pre>
  
  <p>My web services returns a list for this object, this class is created in automatic when i add the reference to the web services:</p>
  
  <pre><code>public partial class TipoPersona {
  
      private short idTipoPersonaField;
  
      private string descripcionField;
  
      /// &lt;comentarios/&gt;
      public short IdTipoPersona {
          get {
              return this.idTipoPersonaField;
          }
          set {
              this.idTipoPersonaField = value;
          }
      }
  
      /// &lt;comentarios/&gt;
      public string Descripcion {
          get {
              return this.descripcionField;
          }
          set {
              this.descripcionField = value;
          }
      }        
  }
  </code></pre>
  
  <p>But the problem is:</p>
  
  <p>The combobox displays the data types for each element of the list, and i want display the Descripcion.</p>
  
  <p>Can you help me plis! Thanks</p>