From 4d5371be5ea8d76cd330563cb2659d913e7edf6d Mon Sep 17 00:00:00 2001 From: shept Date: Mon, 15 Sep 2025 02:08:19 +0500 Subject: [PATCH] dummy ui --- MetaforceInstaller.UI/App.axaml | 10 ++ MetaforceInstaller.UI/App.axaml.cs | 23 +++ MetaforceInstaller.UI/MainWindow.axaml | 49 +++++++ MetaforceInstaller.UI/MainWindow.axaml.cs | 131 ++++++++++++++++++ .../MetaforceInstaller.UI.csproj | 22 +++ MetaforceInstaller.UI/Program.cs | 21 +++ MetaforceInstaller.UI/app.manifest | 18 +++ MetaforceInstaller.sln | 6 + 8 files changed, 280 insertions(+) create mode 100644 MetaforceInstaller.UI/App.axaml create mode 100644 MetaforceInstaller.UI/App.axaml.cs create mode 100644 MetaforceInstaller.UI/MainWindow.axaml create mode 100644 MetaforceInstaller.UI/MainWindow.axaml.cs create mode 100644 MetaforceInstaller.UI/MetaforceInstaller.UI.csproj create mode 100644 MetaforceInstaller.UI/Program.cs create mode 100644 MetaforceInstaller.UI/app.manifest diff --git a/MetaforceInstaller.UI/App.axaml b/MetaforceInstaller.UI/App.axaml new file mode 100644 index 0000000..d947dd9 --- /dev/null +++ b/MetaforceInstaller.UI/App.axaml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/MetaforceInstaller.UI/App.axaml.cs b/MetaforceInstaller.UI/App.axaml.cs new file mode 100644 index 0000000..16212ac --- /dev/null +++ b/MetaforceInstaller.UI/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace MetaforceInstaller.UI; + +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/MetaforceInstaller.UI/MainWindow.axaml b/MetaforceInstaller.UI/MainWindow.axaml new file mode 100644 index 0000000..c1e1044 --- /dev/null +++ b/MetaforceInstaller.UI/MainWindow.axaml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + +