title: How do I get values from SelectedItem in ComboBox with Linq and C# 3.5
body: <p>I am really missing something with anonymous types, because I can't figure out what to do with  the Combobox.SelectedItem property.</p>
  
  <p>Here's the code that populates the combobox, and it works just fine</p>
  
  <pre><code>         var stocks = from st in brdc.tb_dStocks
                       join su in brdc.tb_rStockUsers on st.StockID equals su.StockID
                       where su.UserID == userRec.UserID
                       select new { st.StockID, su.StockUserID, st.Ticker };
  
          cboStocks.ItemsSource = stocks;
          cboStocks.DisplayMemberPath = "Ticker";
  </code></pre>
  
  <p>Then, when someone selects an item using the cboStocks combobox I need to figure out what that item is, but I have no idea how to do it. Clearly, this is a simple problem, but its confusing me greatly. cboStocks.SelectedItem is an object, and that object is of the anonymous type created by Linq, but thats all I can figure out.</p>