I am trying to set suggested location for FileOpenPicker. Here is how i did this:
var openPicker = new FileOpenPicker();
openPicker.SuggestedStartLocation = PickerLocationId.Downloads;
openPicker.FileTypeFilter.Add("*");
It working fine on WinRT and i getting directly Downloads
folder. But on windows phone it's don't working. Instead of getting Downloads
its showing list of default folders to pick.
After some time fixing this problem i found, if i'll set FileTypeFilter
like that:
var openPicker = new FileOpenPicker();
openPicker.SuggestedStartLocation = PickerLocationId.MusicLibrary;
openPicker.FileTypeFilter.Add(".jpg");
it will open PictureLibrary
. Funny thing, it don't metter what i setting to SuggestedStartLocation
, it will be always PictureLibrary
.
Has someone faced this problem before? I will be appreciate for any advice!