O'Reilly logo

WPF Recipes in C# 2008: A Problem-Solution Approach by Sam Noble, Sam Bourton, Allen Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Multithreading

Internally, WPF leverages multithreading by executing the rendering and composition of elements on a separate thread from the UI thread. However, from the point of view of developers, it is fundamentally a single-threaded apartment (STA) model of threading, like the Windows Forms architecture. Initially, the WPF development team wanted to remove the dependency on the STA model, in favor of a mechanism of thread rental, whereby UI objects could be accessed on any thread. However, this design introduced substantial complexity for singlethreaded applications and made it more difficult to interoperate with existing services (such as the Win32 API, Clipboard, Internet Explorer, and so on).

The fact that WPF objects have STA ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required