public static void MapFlyoutHeader(ShellHandler handler, Shell view) { if (handler.PlatformView.PaneHeader == null) { handler.PlatformView.PaneHeader = new ShellHeaderView(view); } }
public static void MapFlyoutBackground(ShellHandler handler, Shell view) { handler.PlatformView.UpdatePaneBackground( !Brush.IsNullOrEmpty(view.FlyoutBackground) ? view.FlyoutBackground : view.FlyoutBackgroundColor?.AsPaint()); }
public static void MapIsPresented(ShellHandler handler, IFlyoutView flyoutView) { // WinUI Will close the pane inside of the apply template code // so we wait until the control is loaded before applying IsPresented if (handler.PlatformView.IsLoaded) { handler.PlatformView.IsPaneOpen = flyoutView.IsPresented; } }
public static void MapFlyout(ShellHandler handler, IFlyoutView flyoutView) { if (handler.PlatformView is RootNavigationView rnv) { rnv.FlyoutView = flyoutView.Flyout; } handler.PlatformView.FlyoutCustomContent = flyoutView.Flyout?.ToPlatform(handler.MauiContext); }
public static void MapFlyoutBackdrop(ShellHandler handler, Shell view) { if (Brush.IsNullOrEmpty(view.FlyoutBackdrop)) { handler.PlatformView.FlyoutBackdrop = null; } else { handler.PlatformView.FlyoutBackdrop = view.FlyoutBackdrop; } }
public static void MapIsPresented(ShellHandler handler, IFlyoutView flyoutView) { handler.PlatformView.IsPaneOpen = flyoutView.IsPresented; }
public static void MapFlyout(ShellHandler handler, IFlyoutView flyoutView) { handler.PlatformView.FlyoutCustomContent = flyoutView.Flyout?.ToPlatform(handler.MauiContext); }
public static void MapFlyoutVerticalScrollMode(ShellHandler handler, Shell view) { handler.PlatformView.UpdateFlyoutVerticalScrollMode((WScrollMode)(int)view.FlyoutVerticalScrollMode); }
public static void MapCurrentItem(ShellHandler handler, Shell view) { handler.PlatformView.SwitchShellItem(view.CurrentItem, true); }
public static void MapFlyoutItems(ShellHandler handler, Shell view) { handler.PlatformView.UpdateMenuItemSource(); }
public static void MapFlyoutBehavior(ShellHandler handler, IFlyoutView flyoutView) { handler.PlatformView.UpdateFlyoutBehavior(flyoutView); }
public static void MapFlyoutWidth(ShellHandler handler, IFlyoutView flyoutView) { handler.PlatformView.UpdateFlyoutWidth(flyoutView); }
public static void MapFlyout(ShellHandler handler, IFlyoutView flyoutView) { handler.PlatformView.ReplacePaneMenuItemsWithCustomContent(flyoutView.Flyout); }
public static void MapFlyoutHeaderBehavior(ShellHandler handler, Shell view) { handler.UpdateFlyoutHeaderBehavior(view); }