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