R
Rainer Queck
Hi NG,
I am currently exploring VS2008 and WPF.
In a very little WPF-Aplication I am using a System.Timers.Timer and
assigned a Eventhandler to its "Elapsed" event.
When the eventhandler is called, I receive the following error message:
The calling thread must be STA, because many UI components require this.
I assum I need to synchronize the call with the GUI some how.
In Winform applications I used this.InvokeRequred to detect the neccessary
to do so and the used this.Invoke.
How would I do this with a WPF application now?
Thanks for hints and help.
Regards
Rainer Queck
I am currently exploring VS2008 and WPF.
In a very little WPF-Aplication I am using a System.Timers.Timer and
assigned a Eventhandler to its "Elapsed" event.
When the eventhandler is called, I receive the following error message:
The calling thread must be STA, because many UI components require this.
I assum I need to synchronize the call with the GUI some how.
In Winform applications I used this.InvokeRequred to detect the neccessary
to do so and the used this.Invoke.
How would I do this with a WPF application now?
Thanks for hints and help.
Regards
Rainer Queck