When I try to get an access to .Source property of ...Wpf.Image element, I get the following exception: Unable to cast object of type 'ArtOfTest.WebAii.Controls.Xaml.Wpf.BitmapFrameDecode' to type 'ArtOfTest.WebAii.Controls.Xaml.Wpf.ImageSource'. I want to have possibility to read file name of the displayed image in WPF application. To reproduce: Sample WPF application and a sample WPF test are provided in the internal description.