using ComputeSharp.SwapChain.WinUI.Views;
using Microsoft.UI.Xaml;
namespace ComputeSharp.SwapChain.WinUI;
///
/// Provides application-specific behavior to supplement the default Application class.
///
public partial class App : Application
{
///
/// The main application window
///
private Window? mainWindow;
///
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
///
public App()
{
this.InitializeComponent();
}
///
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
mainWindow = new MainWindow();
mainWindow.Closed += (_, _) => Exit();
mainWindow.Activate();
}
}