public static void MapToolbar(WindowHandler handler, IWindow view) { if (view is IToolbarElement tb) { ViewHandler.MapToolbar(handler, tb); } }
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); }
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); } }
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(); } }
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(); } }
public static void MapTitle(WindowHandler handler, IWindow window) { }
public static void MapTitle(WindowHandler handler, IWindow window) => handler.NativeView?.UpdateTitle(window);
public static void MapToolbar(WindowHandler handler, IWindow view) { handler.UpdateToolbar(); }
public static void MapContent(WindowHandler handler, IWindow window) { }