1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

Complete UWP app (without translations)

This commit is contained in:
Michael Gordeev
2020-02-18 18:00:44 +03:00
parent 4363d25ff3
commit c23fd04f2d
58 changed files with 592 additions and 128 deletions
+1 -3
View File
@@ -38,11 +38,9 @@ namespace GUTSchedule.UWP
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
if (!(Window.Current.Content is Frame rootFrame))
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();