diff --git a/AvaloniaWhatKey.sln b/AvaloniaWhatKey.sln new file mode 100644 index 0000000..e1dc613 --- /dev/null +++ b/AvaloniaWhatKey.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvaloniaWhatKey", "AvaloniaWhatKey\AvaloniaWhatKey.csproj", "{C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/AvaloniaWhatKey/App.axaml b/AvaloniaWhatKey/App.axaml new file mode 100644 index 0000000..c643fad --- /dev/null +++ b/AvaloniaWhatKey/App.axaml @@ -0,0 +1,7 @@ + + + + + diff --git a/AvaloniaWhatKey/App.axaml.cs b/AvaloniaWhatKey/App.axaml.cs new file mode 100644 index 0000000..2d320a6 --- /dev/null +++ b/AvaloniaWhatKey/App.axaml.cs @@ -0,0 +1,24 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace AvaloniaWhatKey +{ + 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/AvaloniaWhatKey/AvaloniaWhatKey.csproj b/AvaloniaWhatKey/AvaloniaWhatKey.csproj new file mode 100644 index 0000000..ece3506 --- /dev/null +++ b/AvaloniaWhatKey/AvaloniaWhatKey.csproj @@ -0,0 +1,27 @@ + + + WinExe + net6.0 + enable + + copyused + true + + + + + + + + + + + + + + + + + diff --git a/AvaloniaWhatKey/MainWindow.axaml b/AvaloniaWhatKey/MainWindow.axaml new file mode 100644 index 0000000..4c37565 --- /dev/null +++ b/AvaloniaWhatKey/MainWindow.axaml @@ -0,0 +1,35 @@ + + + +