Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a windows 8 Store App page(say PhotoPage.xaml).
In my app I have an embedded Image resource folder in "Assets\\Images" in which I have many images present.

Now I want to display all the images present inside the Images folder in the PhotoPage.xaml page when it gets loaded (or on any event).

I tried the FileOpenPicker but was unable to load all the images in the Images folder by default for first.(i dont want to browse for the folder....by default it should display the images present inside the Image folder only).

Also I dont have to browse to other folders.(I just need the Images folder alone.)

Can anyone point me a direction to the solution of this problem.Any help is appreciated.

Thanks & Regards,
Posted
Updated 18-Oct-14 2:50am
v2

1 solution

To get any file from installed location of app in winRT you can use

C#
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
var File = await folder.GetFileAsync("img.jpg");


You can run a loop to get all the files from a specific location and display it.
 
Share this answer
 

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