I need to load a relative large number of images on image controls.
To improve the user experience i would like to implement a background worker to load the images and show them during the process of loading instead of showing them at the end of the process so the user can have a filing that all is working.
How can I achieve this if a backgroundworker can not deal with image controls and can not pass bitmapimages?
You can use streams. Read the file into a stream, and you can pass the stream. Many classes (Including BitmapImage, in the property StreamSource) will take a stream, including those in WPF.
Proposed as answer byReed Copsey, JrMVPTuesday, January 19, 2010 10:58 PM