Browse Source

Revert "sandbox demo of shutdown cancel."

This reverts commit 851baa6537859ea6df8d774911003c97aa1e1bf8.
Dan Walmsley 4 years ago
parent
commit
6c3ba87cab
1 changed files with 0 additions and 7 deletions
  1. 0 7
      samples/Sandbox/App.axaml.cs

+ 0 - 7
samples/Sandbox/App.axaml.cs

@@ -16,14 +16,7 @@ namespace Sandbox
             if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime)
             if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime)
             {
             {
                 desktopLifetime.MainWindow = new MainWindow();
                 desktopLifetime.MainWindow = new MainWindow();
-
-                desktopLifetime.ShutdownRequested += DesktopLifetime_ShutdownRequested;
             }
             }
         }
         }
-
-        private void DesktopLifetime_ShutdownRequested(object sender, System.ComponentModel.CancelEventArgs e)
-        {
-            e.Cancel = true;
-        }
     }
     }
 }
 }