Dru

-
Working With The WPF Dispatcher
03/24/2010 - 04:09
Thanks a lot, it worked like a charm :)
-
Working With The WPF Dispatcher
03/22/2010 - 18:37
Thanks man, but I have a question! I am trying to keep on refreshing my TextBLock independent of the main thread! i am trying to do this, this way:
System.Threading.Thread thread = new System.Threading.Thread(
new System.Threading.ThreadStart(
delegate()
{
int counter = 0;
while(true)
{
textBlock.Dispatcher.Invoke(
System.Windows.Threading.DispatcherPriority.Normal,
new Action(
delegate()
{
textBlock.Text = listOfStrings[counter];
}
));
}
));
thread.Start();
The problem is that it is not refreshing! I would appreciate any help, thanks :)
Recent Comments