public static void MapToolbar(WindowHandler handler, IWindow view)
 {
     if (view is IToolbarElement tb)
     {
         ViewHandler.MapToolbar(handler, tb);
     }
 }
Ejemplo n.º 2
0
        public static void MapContent(WindowHandler handler, IWindow window)
        {
            _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class.");

            var nativeContent = window.Content.ToUIViewController(handler.MauiContext);

            handler.NativeView.RootViewController = nativeContent;
        }
        public static void MapContent(WindowHandler handler, IWindow window)
        {
            _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class.");

            var nativeContent = window.Content.ToContainerView(handler.MauiContext);

            handler.NativeView.SetContentView(nativeContent);
        }
        public static void MapContent(WindowHandler handler, IWindow window)
        {
            _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class.");

            var nativeContent = window.Content.ToNative(handler.MauiContext);

            handler?._rootPanel?.Children?.Clear();
            handler?._rootPanel?.Children?.Add(nativeContent);
        }
Ejemplo n.º 5
0
        public static void MapToolbar(WindowHandler handler, IWindow view)
        {
            _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(handler.MauiContext)} null");

            if (view is IToolbarElement tb && tb.Toolbar != null)
            {
                _ = tb.Toolbar.ToNative(handler.MauiContext);
            }
        }
Ejemplo n.º 6
0
        public static void MapContent(WindowHandler handler, IWindow window)
        {
            _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class.");

            var nativeContent = window.Content.ToUIViewController(handler.MauiContext);

            handler.NativeView.RootViewController = nativeContent;

            if (window.VisualDiagnosticsOverlay != null)
            {
                window.VisualDiagnosticsOverlay.Initialize();
            }
        }
        public static void MapContent(WindowHandler handler, IWindow window)
        {
            _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class.");

            var rootManager = handler.MauiContext.GetNavigationRootManager();

            rootManager.Connect(window.Content);
            handler.NativeView.SetContentView(rootManager.RootView);
            if (window.VisualDiagnosticsOverlay != null && rootManager.RootView is ViewGroup group)
            {
                window.VisualDiagnosticsOverlay.Initialize();
            }
        }
Ejemplo n.º 8
0
        public static void MapContent(WindowHandler 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);
            handler?._rootPanel?.Children?.Clear();

            handler?._rootPanel?.Children?.Add(windowManager.RootView);

            if (window.VisualDiagnosticsOverlay != null && handler?._rootPanel != null)
            {
                window.VisualDiagnosticsOverlay.Initialize();
            }
        }
Ejemplo n.º 9
0
 public static void MapTitle(WindowHandler handler, IWindow window)
 {
 }
 public static void MapTitle(WindowHandler handler, IWindow window) =>
 handler.NativeView?.UpdateTitle(window);
Ejemplo n.º 11
0
 public static void MapToolbar(WindowHandler handler, IWindow view)
 {
     handler.UpdateToolbar();
 }
Ejemplo n.º 12
0
 public static void MapContent(WindowHandler handler, IWindow window)
 {
 }