John Giblin
Top achievements
Rank 1
John Giblin
asked on 29 Mar 2011, 10:00 PM
I am getting this when I copy the Busy Indicator example
The calling thread must be STA, because many UI components require this.
Does anyone have any ideas
The calling thread must be STA, because many UI components require this.
Does anyone have any ideas
4 Answers, 1 is accepted
0
Hi John,
George
the Telerik team
Please make sure you use Dispatcher class in order to access UI components.
If this doesn't help, can you please give us more information about your scenario? Which example do you use?
George
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
fred williams
Top achievements
Rank 1
answered on 02 May 2011, 05:02 AM
Could you please provide an example of using the dispatcher class to access a UI component? I'm trying to display a busy indicator while repopulating a treeview when the user double clicks a treeviewitem and I'm receiving the same STA error.
I get the error when I try to instantiate a new RadTreeView object.
I get the error when I try to instantiate a new RadTreeView object.
0
Hi John,
George
the Telerik team
Thank you for contacting us.
You can find the attached sample project. On a button click new items for the RadTreeView are generated and added while the busy indicator is shown. On a second click, the process is stopped.
I hope this helps.
George
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Sandi Markon
Top achievements
Rank 1
answered on 19 Sep 2012, 09:29 AM