var bitmapImage = ImageElement.Source as BitmapImage; if (bitmapImage != null) ImagePath = bitmapImage.UriSource.ToString();