在Windows Phone 8中获取照片的真实姓名 [英] Obtain real name of photo in windows phone 8

查看:120
本文介绍了在Windows Phone 8中获取照片的真实姓名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Windows Phone 8中显示图片库照片的真实姓名. 我有一张原始名称为chucktodd-einstein-2010-1.jpg,chucktodd-einstein-2010-2.jpg,chucktodd-einstein-2010-3.jpg的照片.

I can't show the real name of my photos of my picture library in windows phone 8. I have a there photos whose original names are: chucktodd-einstein-2010-1.jpg, chucktodd-einstein-2010-2.jpg,chucktodd-einstein-2010-3.jpg.

我执行以下代码:

MediaLibrary m = new MediaLibrary();        
for (int j = 0; j < m.Pictures.Count; j++)
{
     var r = m.Pictures[j];
     MessageBox.Show(r.Name);
}

MessageBox总是显示此名称:爱因斯坦在黑板上用粉笔插图写,查克·托德(Chuck Todd 2010)".

And MessageBox show always this name : "Einstein writing on a blackboard with chalk illustration by chuck Todd 2010".

如何获得原始名称?

推荐答案

我找到了这个库并解决了这个问题:

I found this Library and fixed this issue:

使用此代码,我可以获取具有原始名称的文件的完整路径.

With this code I obtain the full path of file with the original name.

这篇关于在Windows Phone 8中获取照片的真实姓名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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