You can run into
file access errors when using images in WPF. By default, the .Net
Framework locks the image until it's not used and the garbage collector
decides to release the reference. For example, the following
snippet displays an image but ...
Read post