当前位置: 首页>>代码示例>>C#>>正文


C# DeactivatedEventArgs类代码示例

本文整理汇总了C#中DeactivatedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DeactivatedEventArgs类的具体用法?C# DeactivatedEventArgs怎么用?C# DeactivatedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DeactivatedEventArgs类属于命名空间,在下文中一共展示了DeactivatedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     if (wasLocked & ((e.Reason == DeactivationReason.ApplicationAction) | (e.Reason == DeactivationReason.UserAction)))
     {
         this.Terminate();
     }
 }
开发者ID:LONELY-WOLF,项目名称:LockScreenTest,代码行数:9,代码来源:App.xaml.cs

示例2: Deactivated

 public void Deactivated(object sender, DeactivatedEventArgs e)
 {
     // save state
     double vscroll = ListBoxOne.GetVerticalScrollOffset();
     Configuration.SaveStateSetting<object>("DataContext", DataContext);
     Configuration.SaveStateSetting<double>("VScrollPosition", vscroll);
 }
开发者ID:garyjohnson,项目名称:Remotive,代码行数:7,代码来源:AlbumsPage.xaml.cs

示例3: appService_Deactivated

 void appService_Deactivated(object sender, DeactivatedEventArgs e)
 {
     string key = "pause";
     if (appService.State.ContainsKey(key))
         appService.State[key] = Manager.manager.pause;
     else
         appService.State.Add(key,Manager.manager.pause);
 }
开发者ID:Ahmed310,项目名称:SpaceFighter,代码行数:8,代码来源:Game1.cs

示例4: Application_Deactivated

        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
			if (_vm != null)
            {
                var phoneApplicationPage = RootFrame.Content as PhoneApplicationPage;
                if (phoneApplicationPage != null)
                    _vm = (VMBase)phoneApplicationPage.DataContext;
            }
        }
开发者ID:violabazanye,项目名称:Fashionista,代码行数:9,代码来源:App.xaml.cs

示例5: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // get a tombstonedata item...
     TombstoneData data = TombstoneData.GetTombstoneItem("UserToken", true);
     if (data == null)
         throw new InvalidOperationException("'data' is null.");
     data.Value = RestServiceProxy.Token;
     data.SaveChanges();
 }
开发者ID:mbrit,项目名称:AmxMobile.Phone7.SixBookmarks-1.2,代码行数:11,代码来源:App.xaml.cs

示例6: Application_Deactivated

 // Código para ejecutar cuando la aplicación se desactiva (se envía a segundo plano)
 // Este código no se ejecutará cuando la aplicación se cierre
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     var viewModelLocatorService = Current.Resources["ViewModelLocator"] as ViewModelLocator;
     if (viewModelLocatorService != null)
     {
         viewModelLocatorService.MainViewModel.SaveRecipesToIs();
         viewModelLocatorService.MainViewModel.UpdateTile();
     }
 }
开发者ID:JavierErdozain,项目名称:Events,代码行数:11,代码来源:App.xaml.cs

示例7: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     CameraExplorer.DataContext d = CameraExplorer.DataContext.Singleton;
     if (d.Device != null)
     {
         d.Device.Dispose();
         d.Device = null;
     }
 }
开发者ID:flair2005,项目名称:RGBDVideoStreams,代码行数:11,代码来源:App.xaml.cs

示例8: Application_Deactivated

        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            Debug.WriteLine("App is deactivating");
            if (OnNewTilePinned != null)
            {
                OnNewTilePinned();
                OnNewTilePinned = null;
            }

        }
开发者ID:SoftwareFactoryUPC,项目名称:ProjectTemplates,代码行数:12,代码来源:App.xaml.cs

示例9: Deactivated

        public void Deactivated(object sender, DeactivatedEventArgs e)
        {
            Configuration.SaveStateSetting<int>("SelectedPivot", pivot.SelectedIndex);

            if (pivot.SelectedItem != null && pivot.SelectedItem is PivotItem)
            {
                PivotItem selectedItem = (PivotItem)pivot.SelectedItem;
                if (selectedItem.Content != null && selectedItem.Content is NavigationPanel)
                {
                    ((NavigationPanel)selectedItem.Content).Deactivated(sender, e);
                }
            }
        }
开发者ID:garyjohnson,项目名称:Remotive,代码行数:13,代码来源:MusicPage.xaml.cs

示例10: Application_Deactivated

        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            // Ensure that required application state is persisted here.
            // If there is data in the application member variable...
            if (!string.IsNullOrEmpty(ApplicationDataObject))
            {
                // Store it in the State dictionary.
                PhoneApplicationService.Current.State["ApplicationDataObject"] = ApplicationDataObject;

                // Also store it in isolated storage, in case the application is never reactivated.
                SaveDataToIsolatedStorage("Quran360DataFile.txt", ApplicationDataObject);
            }
        }
开发者ID:hostrings,项目名称:Quran360WindowsPhone,代码行数:15,代码来源:App.xaml.cs

示例11: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // Ensure that required application state is persisted here.
 }
开发者ID:AntonioJorgeFlorindo,项目名称:StarterKits,代码行数:6,代码来源:App.xaml.cs

示例12: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     UnityPlayer.UnityApp.Deactivate();
 }
开发者ID:Tinytoot,项目名称:SumoBlocks,代码行数:6,代码来源:App.xaml.cs

示例13: ApplicationDeactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void ApplicationDeactivated(object sender, DeactivatedEventArgs e)
 {
     SaveSettings();
 }
开发者ID:EchoDemon,项目名称:MediaBrowser.WindowsPhone,代码行数:6,代码来源:App.xaml.cs

示例14: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     BlobCache.UserAccount.Flush().Wait();
 }
开发者ID:journeyman,项目名称:PodcastReader,代码行数:6,代码来源:App.xaml.cs

示例15: Application_Deactivated

 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     Countly.EndSession();
 }
开发者ID:jvlstudio,项目名称:countly-sdk-windows-phone,代码行数:6,代码来源:App.xaml.cs


注:本文中的DeactivatedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。