private async void OnBrowseFilesButtonClicked(object sender, RoutedEventArgs e) { StorageFile selectedFile = await Util.PickSingleFileAsync(SpeakerRecognitionExplorer.AudioExtensions); if (selectedFile != null) { LocalFileCollection.Add(selectedFile); } }
private async void FileListView_OnDrop(object sender, DragEventArgs e) { if (e.DataView.Contains(StandardDataFormats.StorageItems)) { var storageItems = await e.DataView.GetStorageItemsAsync(); LocalFileCollection.Add(storageItems.Select(x => (StorageFile)x).FirstOrDefault()); } }