The picture could only be saw on develop environment. But disapper when executed it.
-
Friday, October 07, 2011 6:44 AM
Hi,
I'm new for the Metro Style App studying.
Today I tried to develop a program to see the pictures in "my pictures" folder.
I could get all the file name but the picture cannot display on the form when it execute.
Did any one experience this issue?
Kindly provide the know-how.
Thanks everybody.
Sen
All Replies
-
Friday, October 07, 2011 9:17 AM
Hi all,
It seems that if the picture imported to in solution view, the result is pass.
But what I did if using filp view to get all pictures in "My Pictures" folder.
I could get the file name dynamatical but it could not appear.
Does anyone have idea for it?
Thanks a lot
Sen
-
Friday, October 07, 2011 10:14 PM
Did you declare the Picture Library Access capability? In order to programmatically access the pictures folder from a Metro style app, you need to declare that your application requires it.
There's an overview available here:
http://msdn.microsoft.com/en-us/library/windows/apps/hh464936(v=VS.85).aspx#pictures_library
You should be able to do this by double-clicking the "package.appxmanifest" file in Visual Studio and going to the Capabilities tab.
-
Thursday, October 13, 2011 3:19 AM
Hi, Jesse,
Thanks for your reply first and sorry for my late response.
I did to add the package.appxmanifest. But fail to see the pictures when running it.
I changed by another method to get the image now.
I tried it by using file stream then create new BitmapImage.
The result is success.
But I do not think I should do so many thing to load a image.
It seems not smart even I know it's logical.
I guess I still had something wrong but I do not know why.
Thanks for your reply again.
Sen
- Marked As Answer by Matt SmallMicrosoft Employee, Moderator Friday, October 21, 2011 7:46 PM


