Exemplo n.º 1
0
        private static void MapContent(WindowHandlerStub handler, IWindow window)
        {
            var view = window.Content.ToPlatform(handler.MauiContext);

            if (window.Content is Shell)
            {
                var vc =
                    (window.Content.Handler as IPlatformViewHandler)
                    .ViewController;

                handler.PlatformView.RootViewController.PresentViewController(vc, false, null);
            }
            else
            {
                handler.PlatformView.RootViewController.View.AddSubview(view);
            }
        }
Exemplo n.º 2
0
 public static void MapContent(WindowHandlerStub handler, IWindow window)
 {
     handler.UpdateContent();
 }