title: How to get SelectedItem from ComboBox if i put as ItemSource ArrayList object
body: <pre><code>ArrayList al=new ArrayList();
  for(int i=0;i&lt;lista.Count;i++){
      al.Add(new {Name=lista[i]});
  }
  comboBox.ItemsSource="al";
  comboBox.DisplayMemberPath="Name";
  </code></pre>
  
  <p>How do I get <code>SelectedItem</code> from my <code>ArrayList</code>? I put the string value in my <code>ArrayList</code> Name and I've tried with cast string,</p>