protected override async void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { var page = new RecordingPickerPage(args.FileOpenPickerUI); Window.Current.Content = page; Window.Current.Activate(); await page.ShowRecordings(); }
public void Activate(FileOpenPickerActivatedEventArgs args) { // cache FileOpenPickerUI fileOpenPickerUI = args.FileOpenPickerUI; Window.Current.Content = this; this.OnNavigatedTo(null); Window.Current.Activate(); }
public void Activate(FileOpenPickerActivatedEventArgs args) { FileOpenPickerUi = args.FileOpenPickerUI; FileOpenPickerUi.Title = "github"; Window.Current.Content = this; OnNavigatedTo(null); Window.Current.Activate(); }
/// <summary> /// Invoked when another application wants to open files from this application. /// </summary> /// <param name="args">Activation data used to coordinate the process with Windows.</param> public void Activate(FileOpenPickerActivatedEventArgs args) { this._fileOpenPickerUI = args.FileOpenPickerUI; _fileOpenPickerUI.Closing += _fileOpenPickerUI_Closing; Messenger.Default.Register<PickerFileMessage>(this, pickerSelectionChanged); Window.Current.Content = this; Window.Current.Activate(); }
/// <summary> /// 在其他应用程序想要打开此应用程序中的文件时进行调用。 /// </summary> /// <param name="e">用于与 Windows 协调进程的激活数据。</param> public void Activate(FileOpenPickerActivatedEventArgs e) { this._fileOpenPickerUI = e.FileOpenPickerUI; _fileOpenPickerUI.FileRemoved += this.FilePickerUI_FileRemoved; // TODO: 将 this.DefaultViewModel["Files"] 设置为显示一个项集合, // 其中每个项都应有可绑定的 Image、Title 和 Description this.DefaultViewModel["CanGoUp"] = false; Window.Current.Content = this; Window.Current.Activate(); }
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(); }
/// <summary> /// Invoked when the application is activated to display a file open picker. /// </summary> /// <param name="args">Details about the activation request.</param> protected override async void OnFileOpenPickerActivated(Windows.ApplicationModel.Activation.FileOpenPickerActivatedEventArgs args) { if (_baconProvider == null) { _baconProvider = new BaconProvider(); _baconProvider.AddService(typeof(IDynamicViewLocator), new DynamicViewLocator()); await _baconProvider.Initialize(null); ViewModelLocator.Initialize(_baconProvider); } var fileOpenPickerPage = new FileOpenPickerView(); fileOpenPickerPage.Activate(args); }
/// <summary> /// 在应用程序激活以显示文件打开选取器时调用。 /// </summary> /// <param name="e">有关激活请求的详细信息。</param> protected override void OnFileOpenPickerActivated(Windows.ApplicationModel.Activation.FileOpenPickerActivatedEventArgs e) { var fileOpenPickerPage = new StoreCozy.FileOpenPickerPage1(); fileOpenPickerPage.Activate(e); }
protected virtual Task OnFileOpenPickerStartAsync(FileOpenPickerActivatedEventArgs args, AppStartInfo info) { return Task.FromResult<object>(null); }
protected override sealed async void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { AppStartInfo info = AppStartInfo.Default; await this.OnPreStartAsync(args, info); await this.OnFileOpenPickerStartAsync(args, info); this.InternalStartAsync(args, info); }
/// <summary> /// Invoked when the application is activated to display a file open picker. /// </summary> /// <param name="e">Details about the activation request.</param> protected override void OnFileOpenPickerActivated(Windows.ApplicationModel.Activation.FileOpenPickerActivatedEventArgs e) { var fileOpenPickerPage = new IntegrationExampleLauncher.InternalFileListingPickerPage(); fileOpenPickerPage.Activate(e); }
protected override void OnFileOpenPickerActivated(Windows.ApplicationModel.Activation.FileOpenPickerActivatedEventArgs args) { var fileOpenPickerPage = new FileOpenPickerPage(); fileOpenPickerPage.Activate(args); }
protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { base.OnFileOpenPickerActivated(args); Frame rootFrame = Window.Current.Content as Frame; var page = rootFrame.Content as MainPage; if (page != null) page.LoadKml(args); }
protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { ViewModelLocator.FileOpenPickerUiManager.Initialize(args.FileOpenPickerUI); Window.Current.Content = new FileOpenPickerPage(); Window.Current.Activate(); }
protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { base.OnFileOpenPickerActivated(args); Activate(args); }
protected sealed override async void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { await Activated(args); }
protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { var FileOpenPickerPage = new SDKTemplate.FileOpenPickerPage(); FileOpenPickerPage.Activate(args); }
/// <summary> /// Invoked when the application is activated to display a file open picker. /// </summary> /// <param name="e">Details about the activation request.</param> protected override void OnFileOpenPickerActivated(Windows.ApplicationModel.Activation.FileOpenPickerActivatedEventArgs e) { }
protected override async void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { await InternalActivatedAsync(args); }
protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args) { var fileOpenPickerPage = new FileOpenPickerPage(); fileOpenPickerPage.Activate(args); }