diff --git a/Bookmarkly.App/App.xaml.cs b/Bookmarkly.App/App.xaml.cs index 7329918..b505bb4 100644 --- a/Bookmarkly.App/App.xaml.cs +++ b/Bookmarkly.App/App.xaml.cs @@ -28,6 +28,8 @@ public partial class App : Application { private Window? _window; + public static Window? MainWindow { get; private set; } + /// /// 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(). @@ -44,6 +46,7 @@ public App() protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) { _window = new MainWindow(); + MainWindow = _window; _window.Activate(); } } diff --git a/Bookmarkly.App/Bookmarkly.App.csproj b/Bookmarkly.App/Bookmarkly.App.csproj index 7863261..509b12d 100644 --- a/Bookmarkly.App/Bookmarkly.App.csproj +++ b/Bookmarkly.App/Bookmarkly.App.csproj @@ -8,6 +8,7 @@ win-$(Platform).pubxml true true + true @@ -36,6 +37,10 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +