private void ButtonUnlock_ManipulationCompleted(object sender, System.Windows.Input.ManipulationCompletedEventArgs e) { if (!swipeComplete) { ExtensibilityApp.EndUnlock(); MainSnapBack.Begin(); } else { if (!App.MainViewModel.HasPasscode) { SystemProtection.RequestScreenUnlock(); } } }
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { ExtensibilityApp.EndUnlock(); MainSnapBack.Begin(); e.Cancel = true; }