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