Exemple #1
0
        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);
            }
        }
Exemple #2
0
        private static void MapContent(WindowHandlerStub handler, IWindow window)
        {
            var view = window.Content.ToPlatform(handler.MauiContext);

            handler.PlatformView.RootViewController.View.AddSubview(view);
        }
Exemple #3
0
 public static void MapContent(WindowHandlerStub handler, IWindow window)
 {
     handler.UpdateContent();
 }
 private static void MapContent(WindowHandlerStub handler, IWindow window)
 {
 }