Get image relative source in WPF

Lets assume we get an Image :

Image img = new Image() { Width = image.Width, Height = image.Height, Source = image };

then, our solution will look as following :

Uri path = new Uri(((BitmapFrame)imageControl.Source).Decoder.ToString());

Leave a Reply

Your email address will not be published. Required fields are marked *