private async void OnFileRemoved(FileOpenPickerUI sender, FileRemovedEventArgs args) { if (args.Id == id) { await dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () => { await new Windows.UI.Popups.MessageDialog("File removed from the basket.").ShowAsync(); UpdateButtonState(false); }); } }
private async void OnFileRemoved(FileOpenPickerUI sender, FileRemovedEventArgs args) { // make sure that the item got removed matches the one we added. if (args.Id == id) { // The event handler may be invoked on a background thread, so use the Dispatcher to run the UI-related code on the UI thread. await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { OutputTextBlock.Text = Status.FileRemoved; UpdateButtonState(false); }); } }
private void FilePickerUI_FileRemoved(FileOpenPickerUI sender, FileRemovedEventArgs args) { }