Fill WPF listbox with string array
- by Archie
Instead of adding each item one by one to the ListBox destinationList from the string array m_List like this:
foreach (object name in m_List)
{
destinationList.Items.Add((string)name);
}
Is there any better way I can do it?
I don't want to bind the data to the destinationList since I want to delete some entries from the ListBox later on.