From 61af0286eb2ab68c36d614e960510e059ca5169f Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Mon, 9 Feb 2026 17:23:01 +0100 Subject: [PATCH] [init:] repo --- App.axaml | 10 +++++++++ App.axaml.cs | 23 ++++++++++++++++++++ MainWindow.axaml | 52 +++++++++++++++++++++++++++++++++++++++++++++ MainWindow.axaml.cs | 11 ++++++++++ Program.cs | 21 ++++++++++++++++++ app.manifest | 18 ++++++++++++++++ spplus.csproj | 22 +++++++++++++++++++ 7 files changed, 157 insertions(+) create mode 100644 App.axaml create mode 100644 App.axaml.cs create mode 100644 MainWindow.axaml create mode 100644 MainWindow.axaml.cs create mode 100644 Program.cs create mode 100644 app.manifest create mode 100644 spplus.csproj diff --git a/App.axaml b/App.axaml new file mode 100644 index 0000000..7d09b2c --- /dev/null +++ b/App.axaml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/App.axaml.cs b/App.axaml.cs new file mode 100644 index 0000000..e29f47d --- /dev/null +++ b/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace spplus; + +public partial class App : Application +{ + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow(); + } + + base.OnFrameworkInitializationCompleted(); + } +} \ No newline at end of file diff --git a/MainWindow.axaml b/MainWindow.axaml new file mode 100644 index 0000000..47e5215 --- /dev/null +++ b/MainWindow.axaml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs new file mode 100644 index 0000000..8289a7e --- /dev/null +++ b/MainWindow.axaml.cs @@ -0,0 +1,11 @@ +using Avalonia.Controls; + +namespace spplus; + +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..c4121ad --- /dev/null +++ b/Program.cs @@ -0,0 +1,21 @@ +using Avalonia; +using System; + +namespace spplus; + +class Program +{ + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. + [STAThread] + public static void Main(string[] args) => BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + + // Avalonia configuration, don't remove; also used by visual designer. + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure() + .UsePlatformDetect() + .WithInterFont() + .LogToTrace(); +} diff --git a/app.manifest b/app.manifest new file mode 100644 index 0000000..60ccd76 --- /dev/null +++ b/app.manifest @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + diff --git a/spplus.csproj b/spplus.csproj new file mode 100644 index 0000000..0463f13 --- /dev/null +++ b/spplus.csproj @@ -0,0 +1,22 @@ + + + WinExe + net9.0 + enable + app.manifest + true + + + + + + + + + + None + All + + + +