diff --git a/SessionZero/.gitignore b/SessionZero/.gitignore new file mode 100644 index 0000000..d8715dc --- /dev/null +++ b/SessionZero/.gitignore @@ -0,0 +1,3 @@ +.idea/ +bin/ +obj/ \ No newline at end of file diff --git a/SessionZero/App.axaml b/SessionZero/App.axaml new file mode 100644 index 0000000..61a4aa7 --- /dev/null +++ b/SessionZero/App.axaml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/SessionZero/App.axaml.cs b/SessionZero/App.axaml.cs new file mode 100644 index 0000000..a6f2ccb --- /dev/null +++ b/SessionZero/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace SessionZero; + +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/SessionZero/MainWindow.axaml b/SessionZero/MainWindow.axaml new file mode 100644 index 0000000..2a5c791 --- /dev/null +++ b/SessionZero/MainWindow.axaml @@ -0,0 +1,9 @@ + + Welcome to Avalonia! + diff --git a/SessionZero/MainWindow.axaml.cs b/SessionZero/MainWindow.axaml.cs new file mode 100644 index 0000000..5f76200 --- /dev/null +++ b/SessionZero/MainWindow.axaml.cs @@ -0,0 +1,11 @@ +using Avalonia.Controls; + +namespace SessionZero; + +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/SessionZero/Program.cs b/SessionZero/Program.cs new file mode 100644 index 0000000..de7b088 --- /dev/null +++ b/SessionZero/Program.cs @@ -0,0 +1,21 @@ +using Avalonia; +using System; + +namespace SessionZero; + +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(); +} \ No newline at end of file diff --git a/SessionZero/SessionZero.csproj b/SessionZero/SessionZero.csproj new file mode 100644 index 0000000..2faaf2b --- /dev/null +++ b/SessionZero/SessionZero.csproj @@ -0,0 +1,22 @@ + + + WinExe + net9.0 + enable + true + app.manifest + true + + + + + + + + + + None + All + + + diff --git a/SessionZero/SessionZero.sln b/SessionZero/SessionZero.sln new file mode 100644 index 0000000..8b328cf --- /dev/null +++ b/SessionZero/SessionZero.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SessionZero", "SessionZero.csproj", "{367C40AF-10C6-4F2B-9765-F93096DE6CF0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {367C40AF-10C6-4F2B-9765-F93096DE6CF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {367C40AF-10C6-4F2B-9765-F93096DE6CF0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {367C40AF-10C6-4F2B-9765-F93096DE6CF0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {367C40AF-10C6-4F2B-9765-F93096DE6CF0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/SessionZero/app.manifest b/SessionZero/app.manifest new file mode 100644 index 0000000..ed390dc --- /dev/null +++ b/SessionZero/app.manifest @@ -0,0 +1,18 @@ + + + + + + + + + + + + + +