Saturday, January 26, 2013 1:48 AM
this doesn't work
StorageFolder picturesFolder = @"C:\";
Saturday, January 26, 2013 2:02 AMModerator
What exactly are you trying to do? You cannot assign a string to a StorageFolder object type.
Saturday, January 26, 2013 2:08 AM
get a list of the files in the folder and change the source of "Image".
i also have problems with :
pic.Source = "";
string to ImageSource is not possible.
Saturday, January 26, 2013 4:01 AM
First of all, Store app is not able to access C:\ directly. Here is a list of folders available for direct access. If you need to access any folder outside of the list - you need to use Folder Picker.
Now you have StorageFolder object and can call StorageFolder.GetFilesAsync to get all the files.
To modify image source you can use the technique described in the following post - http://lunarfrog.com/blog/2012/11/21/image-file-binding/
- Marked As Answer by zxddw Saturday, January 26, 2013 4:37 AM