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(); } }
private void ButtonUnlock_ManipulationCompleted(object sender, System.Windows.Input.ManipulationCompletedEventArgs e) { if (!swipeComplete) { ExtensibilityApp.EndUnlock(); MainSnapBack.Begin(); } else { if (!App.MainViewModel.HasPasscode) { SystemProtection.RequestScreenUnlock(); } } }