private void Button_Unlock_Click(object sender, RoutedEventArgs e)
 {
     //((Button)sender).Content = "Yes";
     if (SystemProtection.ScreenLocked)
     {
         SystemProtection.RequestScreenUnlock();
     }
 }
 private void OverlayInformationPanel_ManipulationCompleted(object sender, System.Windows.Input.ManipulationCompletedEventArgs e)
 {
     if (SystemProtection.ScreenLocked && y < yToUnlock)
     {
         SystemProtection.RequestScreenUnlock();
     }
     else
     {
         OverlayInformationPanelDraggingToLockedStoryboard.Begin();
     }
 }
Beispiel #3
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();
         }
     }
 }