title: WPF ListBox - how to put values from dataTable?
body: <p>I have <code>ListBox</code> and want to put values in this listbox from a <code>DataTable</code>:</p>
  
  <pre><code>listBoxVisibleFields.DataContext = SelectedFields;
  </code></pre>
  
  <p>Where <code>SelectedFields</code> is a <code>DataTable</code> filled with data. But this code does not work. My <code>ListBox</code> is empty. As I remember, in WinForms was sucha a thing for list box like <code>ValueMember</code> and <code>DisplayMember</code>, but in WPF I dont find something like that...</p>
  
  <p>Does someone know how to fill simply my <code>ListBox</code> from <code>DataTable</code>?</p>