Beispiel #1
0
 // Code to execute when a contract activation such as a file open or save picker returns
 // with the picked file or other return values
 private void Application_ContractActivated(object sender, Windows.ApplicationModel.Activation.IActivatedEventArgs e)
 {
 }
Beispiel #2
0
        private async void RefreshUI(CoreApplicationView sender, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
        {
            await SyncSideBarItemsUI();

            CoreApplication.MainView.Activated -= RefreshUI;
        }
Beispiel #3
0
        private async void RemoveEnumerateDrivesAsync(CoreApplicationView sender, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
        {
            await RemoveLibrarySideBarItemsUI();

            CoreApplication.MainView.Activated -= RemoveEnumerateDrivesAsync;
        }
 // Code to execute when the application is activated (brought to foreground)
 // This code will not execute when the application is first launched
 private void Application_ContractActivated(object sender, Windows.ApplicationModel.Activation.IActivatedEventArgs e)
 {
     ViewModel.HandleAppContractActivated(e);
 }
Beispiel #5
0
 protected override async void OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs args)
 {
     base.OnActivated(args);
     var activationService = Ioc.Default.GetService <IActivationService>();
     await activationService.ActivateAsync(args);
 }
Beispiel #6
0
 private void RemoveLibraryItems(CoreApplicationView sender, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
 {
     RemoveLibrarySideBarItemsUI();
     CoreApplication.MainView.Activated -= RemoveLibraryItems;
 }
        private void ApplicationView_Activated(CoreApplicationView sender, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
        {
            var window = CoreWindow.GetForCurrentThread();

            window.Activate();
        }
 // Code to execute when a contract activation such as a file open or save picker returns
 // with the picked file or other return values
 private void Application_ContractActivated(object sender, Windows.ApplicationModel.Activation.IActivatedEventArgs e)
 {
     Debug.WriteLine("ContractActivated: " + e.ToString());
 }