private static void MapContent(WindowHandlerStub handler, IWindow window) { _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class."); var windowManager = handler.MauiContext.GetNavigationRootManager(); windowManager.Connect(handler.VirtualView.Content); var rootPanel = handler.PlatformView.Content as WPanel; if (rootPanel == null) { return; } if (!rootPanel.Children.Contains(windowManager.RootView)) { rootPanel.Children.Add(windowManager.RootView); } }
private static void MapContent(WindowHandlerStub handler, IWindow window) { var view = window.Content.ToPlatform(handler.MauiContext); handler.PlatformView.RootViewController.View.AddSubview(view); }
public static void MapContent(WindowHandlerStub handler, IWindow window) { handler.UpdateContent(); }
private static void MapContent(WindowHandlerStub handler, IWindow window) { }