本文整理汇总了C#中DeactivatedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DeactivatedEventArgs类的具体用法?C# DeactivatedEventArgs怎么用?C# DeactivatedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeactivatedEventArgs类属于命名空间,在下文中一共展示了DeactivatedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: 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)
{
PhoneApplicationService.Current.UserIdleDetectionMode = OriginalIdleMode;
}
开发者ID:kakaruto,项目名称:CodingDojo-HTML5-WP7,代码行数:6,代码来源:App.xaml.cs
示例17: AppDeactivated
void AppDeactivated(object sender, DeactivatedEventArgs e)
{
Debug.WriteLine("AppDeactivated");
try
{
GapBrowser.InvokeScript("PhoneGapCommandResult", new string[] { "pause" });
}
catch (Exception)
{
Debug.WriteLine("Pause event error");
}
}
开发者ID:roadlabs,项目名称:phonegap-1,代码行数:13,代码来源:PGView.xaml.cs
示例18: Application_Deactivated
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
{
LampDevice.Dispose();
}
开发者ID:shaftware,项目名称:Torch,代码行数:4,代码来源:App.xaml.cs
示例19: Application_Deactivated
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
{
Debug.WriteLine("Application_Deactivated Called");
SpawnLightstreamerClientStop();
}
开发者ID:psrodriguez,项目名称:CIAPI.CS,代码行数:5,代码来源:App.xaml.cs
示例20: 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)
{
//Try to save collections, in case we are terminated
AppContext.CurrentUser.TrySaveCollectedHighlightsLocally();
//Anything else?
}
开发者ID:totobogy,项目名称:ReadmillDotNet,代码行数:9,代码来源:App.xaml.cs
注:本文中的DeactivatedEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论