public void Activate(FileOpenPickerActivatedEventArgs args) { FileOpenPickerUi = args.FileOpenPickerUI; FileOpenPickerUi.Title = "github"; Window.Current.Content = this; OnNavigatedTo(null); Window.Current.Activate(); }
public void Activate(FileOpenPickerActivatedEventArgs args) { // cache FileOpenPickerUI fileOpenPickerUI = args.FileOpenPickerUI; Window.Current.Content = this; this.OnNavigatedTo(null); Window.Current.Activate(); }
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); }); } }
public async void Activate(FileOpenPickerActivatedEventArgs args) { _fileOpenPickerUI = args.FileOpenPickerUI; _fileOpenPickerUI.FileRemoved += this.FilePickerUI_FileRemoved; _fileOpenPickerUI.Title = "Select files from the video library"; QueryOptions qo = new QueryOptions(); var qr = KnownFolders.VideosLibrary.CreateFileQuery(); FileInformationFactory fif = new FileInformationFactory(qr, ThumbnailMode.VideosView); lstView.ItemsSource = (await fif.GetFilesAsync()); Window.Current.Content = this; Window.Current.Activate(); }
public void Initialize(FileOpenPickerUI fileOpenPicker) { throw new NotImplementedException(); }
private void FilePickerUI_FileRemoved(FileOpenPickerUI sender, FileRemovedEventArgs args) { }
public void Initialize(FileOpenPickerUI fileOpenPicker) { _fileOpenPicker = fileOpenPicker; }
public FileOpenPickerUIEvents(FileOpenPickerUI This) { this.This = This; }