Neighbourhood.omg.lol/App.xaml.cs
Gordon Pedersen 65276d4984 Loading app settings
and putting app name and version number in the app class on startup
2024-06-24 14:51:48 +10:00

22 lines
734 B
C#

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) {
InitializeComponent();
//MainPage = new AppShell();
NavigatorService = navigatorService;
}
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());
}
}
}