I have an application written in wpf, which downloads some webpages, parses html code and saves some values.
class ListOfItems
{
public List
Its not enough to set your dataGrid.ItemsSource
on the main thread. You must create each item on the main-thread.
Something like:
List l = new List();
foreach(var item in ListOfItemsInstance.ListToBind)
{
l.Add(new SomeObject(){NameOfItem = item.NameOfItem, Properties = item.Properties });
}
dataGrid.ItemsSource = l;