Neighbourhood.omg.lol/App.xaml.cs

23 lines
734 B
C#
Raw Permalink Normal View History

2024-05-30 01:06:08 +00:00
namespace Neighbourhood.omg.lol {
public partial class App : Application {
public static string Name { get; set; }
public static string Version { get; set; }
public App(NavigatorService navigatorService) {
2024-05-30 01:06:08 +00:00
InitializeComponent();
//MainPage = new AppShell();
NavigatorService = navigatorService;
2024-05-30 01:06:08 +00:00
}
internal NavigatorService NavigatorService { get; private set; }
protected override Window CreateWindow(IActivationState? activationState) {
// always create new windows. This allows share intents to not crash on android
// (with the side effect that multiple windows are opened, which is messy but better than a crash)
return new Window(new AppShell());
}
2024-05-30 01:06:08 +00:00
}
}