在 class App 加上这个
private class QuitException : Exception { }
public static void Quit()
{
throw new QuitException();
}
private class QuitException : Exception { }
public static void Quit()
{
throw new QuitException();
}
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Button Content="showPopup" Height="72" HorizontalAlignment="Left"