コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: StarGate01/LockEx
 private void ButtonUnlock_ManipulationCompleted(object sender, System.Windows.Input.ManipulationCompletedEventArgs e)
 {
     if (!swipeComplete)
     {
         ExtensibilityApp.EndUnlock();
         MainSnapBack.Begin();
     }
     else
     {
         if (!App.MainViewModel.HasPasscode)
         {
             SystemProtection.RequestScreenUnlock();
         }
     }
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: StarGate01/LockEx
 protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
 {
     ExtensibilityApp.EndUnlock();
     MainSnapBack.Begin();
     e.Cancel = true;
 }