Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted

1 solution

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

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


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...
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900