private void PickMusic_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.MusicLibrary;
openPicker.FileTypeFilter.Add(".mp3");
openPicker.FileTypeFilter.Add(".wmv");
openPicker.FileTypeFilter.Add(".wma");
openPicker.FileTypeFilter.Add(".mp4");
openPicker.PickSingleFileAndContinue();
EncPopup.IsOpen = true;
}
private void PickMulti_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.VideosLibrary;
openPicker.FileTypeFilter.Add(".mp4");
openPicker.PickSingleFileAndContinue();
EncPopup.IsOpen = true;
}
после выполнения обоих фрагментов открывается галерея картинок.
По 2013