fix logic in app initialization

This commit is contained in:
Hazel Megan 2022-04-07 19:42:20 +01:00
Родитель 4700663607
Коммит 55f28673d6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -49,7 +49,7 @@ namespace CanvasLayout.UnitTests.Uwp
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (Window.Current.Content is Frame rootFrame)
if (Window.Current.Content is not Frame rootFrame)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();

Просмотреть файл

@ -49,7 +49,7 @@ namespace CommunityToolkit.Labs.UnitTests.Uwp
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (Window.Current.Content is Frame rootFrame)
if (Window.Current.Content is not Frame rootFrame)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();