Hello,
I wan to export data asynchronously. During exporting I want to display progress bar.Here is the code, with is working, but unfortunatelly not asynchronously - my UI is still freezed. I think it's because of Dispatcher. I have to use dispatcher because grid is created in another thread. So even if I created separated thead function grid.Export() is still invoked by main UI thread.
How I can resolve this problem?
ThreadStart start = delegate()
{
grid.Dispatcher.Invoke((EventHandler)delegate(object ss, EventArgs ee)
{
grid.Export(ms);
}, new object[2]);
};
new Thread(start).Start();