diff --git a/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.Windows.cs b/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.Windows.cs index 317dbc163..999a87590 100644 --- a/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.Windows.cs +++ b/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.Windows.cs @@ -32,7 +32,7 @@ namespace Microsoft.Maui.DeviceTests await CreateHandlerAndAddToWindow(mainPage, (handler) => { var mainWindow = handler.VirtualView as Window; - + mainWindow.Page = secondaryPage; Assert.Equal(mainWindow.Page, secondaryPage); diff --git a/src/Core/src/Handlers/ContentView/ContentViewHandler.Windows.cs b/src/Core/src/Handlers/ContentView/ContentViewHandler.Windows.cs index d2818df25..46e9fbc71 100644 --- a/src/Core/src/Handlers/ContentView/ContentViewHandler.Windows.cs +++ b/src/Core/src/Handlers/ContentView/ContentViewHandler.Windows.cs @@ -50,7 +50,7 @@ namespace Microsoft.Maui.Handlers { platformView.CrossPlatformLayout = null; platformView.Children?.Clear(); - + base.DisconnectHandler(platformView); } } diff --git a/src/Core/src/Platform/Windows/NavigationRootManager.cs b/src/Core/src/Platform/Windows/NavigationRootManager.cs index bd31b7b58..61598b4e1 100644 --- a/src/Core/src/Platform/Windows/NavigationRootManager.cs +++ b/src/Core/src/Platform/Windows/NavigationRootManager.cs @@ -116,7 +116,7 @@ namespace Microsoft.Maui.Platform if (_rootView.Content is RootNavigationView navView) navView.Content = null; - + _rootView.Content = null; _disconnected = true; }