All Questions
3 questions
0
votes
1
answer
2k
views
WPF user control crashes with 'The calling thread must be STA'
The Code Behind of a WinForm is crashing with The calling thread must be STA, because many UI components require this., when trying to create a WPF user control, using myWpfUserControl = new ...
4
votes
3
answers
3k
views
Defining STA: "single thread affinity" or "single threaded apartment"; and how they relate
I'm working with WPF and am reading through materials on STA. Two questions:
1) STA is defined as standing for both "single thread affinity" and "single threaded apartment" by different articles.
...
5
votes
1
answer
5k
views
WPF with Windows Forms - STAThread
I am a newbie to WPF and have a couple of questions about WPF and Windows Forms integration.
I have an existing Visual C# Windows Forms application. I would like to integrate it with a WPF window, ...