Today I was playing with threads.
I have no much to say about it, except the code.
Creating new thread is very simple:
Thread th = new Thread(MyThreadExample); th.Start();
Method MyThreadExample looks like this:
while (i < 10000000000000) { i++; Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Background, new Action( () => { DisplayCount = i.ToString(); OnPropertyChanged(() => this.DisplayCount); System.Threading.Thread.Sleep(10); })); }
Example you can download from here.