Windows Phone 7:获取存储在Media Libary中的图像名称? [英] Windows phone 7: get the name of an image which is stored in Media Libary?

查看:71
本文介绍了Windows Phone 7:获取存储在Media Libary中的图像名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些存储在Media Libary中的图片,查看此处。现在我需要通过使用照片选择器任务选择图像后得到图像的名称。

1.我们可以得到图像的名称吗?

2。我们该怎么办?

I have some images that are stored in Media Libary, view here. Now I need to get the name of an image after I choose the image by using photo chooser task.
1. Can we get the name of the image?
2. And how do we do?

推荐答案

绝对可以获得这个文件名

这是按钮点击谁从电话中选择照片< br $>


Definitely you get this file name
This is the Button Click who Choose the Photo From Your Phone

private void ImgPicker_Click(object sender, RoutedEventArgs e)
        {
            PhotoResult photoresult = new PhotoResult();
            MessageBox.Show( photoresult.OriginalFileName);
        }





只需复制并粘贴此代码。

在Messagebox中获取文件姓名。



或者如果你想了解更多关于图像的详细信息比检查这个参考

http://www.mindscapehq .com / blog / index.php / 2012/02/28 / windows-phone-7-working-with-camera-tasks / [ ^ ]

享受......



Just Copy And Paste this code.
In the Messagebox you Get the File Name.

or if you want to more Details About image Than Check This Referance
http://www.mindscapehq.com/blog/index.php/2012/02/28/windows-phone-7-working-with-camera-tasks/[^]
Enjoy...


这篇关于Windows Phone 7:获取存储在Media Libary中的图像名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆