title: Show an object in Combobox
body: <p>I have this method, it receive an Collection of an object (EmployeeState) this object contains this properties: IdEmployeeState(int), StateName(string), and Description(string) , and I need show in a combobox ONLY the StateName. This is the method. The problem with this query linq is that show all the column, like this: {StateName = Active}
                                                          {StateName = NotActive}
                                                          {StateName = Dismissed}</p>
  
  <p>And I need show in Combobox only the name: "<strong>Active</strong>", "<strong>Not Active</strong>", and "<strong>Dismissed</strong>". keeping the object loaded into the combobox (<strong>NOT pass it to a list of string</strong>)</p>
  
  <p>How can I do this?</p>
  
  <pre><code>        public void loadEmployeeStateCombobox(ICollection&lt;EmployeeState&gt; employeeStateCollection)
          {           
              var result = from employeeState in employeeStateCollection
                           select new
                           {
                              //employeeState.StateName,
                              bb = employeeState.StateName
                           };
  
              _employeeStatecomboBox.ItemsSource = result.ToList();
          }
  </code></pre>