[WPF] The calling thread cannot access this object because a different thread owns it.
- by zunyite
Why I can't create CroppedBitmap in the following code ?
I got an exception : The calling thread cannot access this object because a different thread owns it.
public MainWindow()
{
InitializeComponent();
ThreadPool.QueueUserWorkItem((o) =>
{
//load a large image file
var bf = BitmapFrame.Create(
…