XAMLで作成した画像のURI Sourceを取得したい。画像のソースは BitmapFrame です。BitmapImages には BitmapImage.UriSource を使用できることはわかっていますが、BitmapFrames についてはどうでしょうか。
私が使用する BitmapFrame を取得するには:
private void imgs_Loaded(object sender, MouseEventArgs e)
{
Image img = (Image)sender;
BitmapFrame frame = (BitmapFrame)img.Source;
//How to get frame's UriSource?
}