public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object?args) { if (args is not SwipeViewCloseRequest request) { return; } }
public static void MapContent(ISwipeViewHandler handler, ISwipeView swipeView) { _ = handler.NativeView ?? throw new InvalidOperationException($"{nameof(NativeView)} should have been set by base class."); _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class."); _ = handler.TypedVirtualView ?? throw new InvalidOperationException($"{nameof(VirtualView)} should have been set by base class."); handler.TypedNativeView.UpdateContent(); }
public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object?args) { if (args is not SwipeViewCloseRequest request) { return; } handler.PlatformView.ResetSwipe(request.Animated); }
public static void MapContent(ISwipeViewHandler handler, ISwipeView view) { _ = handler.PlatformView ?? throw new InvalidOperationException($"{nameof(PlatformView)} should have been set by base class."); _ = handler.MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set by base class."); _ = handler.VirtualView ?? throw new InvalidOperationException($"{nameof(VirtualView)} should have been set by base class."); handler.PlatformView.UpdateContent(view, handler.MauiContext); }
public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object?args) { if (args is not SwipeViewCloseRequest request) { return; } handler.TypedNativeView.OnCloseRequested(request); }
public static void MapRequestOpen(ISwipeViewHandler handler, ISwipeView swipeView, object?args) { if (args is not SwipeViewOpenRequest request) { return; } handler.PlatformView.ProgrammaticallyOpenSwipeItem(request.OpenSwipeItem, request.Animated); }
public static void MapRequestOpen(ISwipeViewHandler handler, ISwipeView swipeView, object?args) { if (args is not SwipeViewOpenRequest request) { return; } handler.PlatformView.OnOpenRequested(request); }
public static void MapBackground(ISwipeViewHandler handler, ISwipeView swipeView) { if (swipeView.Background == null) { handler.TypedNativeView.Control?.SetWindowBackground(); } else { ViewHandler.MapBackground(handler, swipeView); } }
public static void MapBottomItems(ISwipeViewHandler handler, ISwipeView view) { }
public static void MapRightItems(ISwipeViewHandler handler, ISwipeView view) { }
public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView) { }
public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView) { handler.TypedNativeView.UpdateSwipeTransitionMode(swipeView.SwipeTransitionMode); }
public static void MapIsEnabled(ISwipeViewHandler handler, ISwipeView swipeView) { handler.TypedNativeView.UpdateIsSwipeEnabled(swipeView.IsEnabled); ViewHandler.MapIsEnabled(handler, swipeView); }
public static void MapContent(ISwipeViewHandler handler, ISwipeView view) { }
public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView) { handler.PlatformView.UpdateSwipeTransitionMode(swipeView.SwipeTransitionMode); }
public static void MapIsEnabled(ISwipeViewHandler handler, ISwipeView swipeView) { handler.PlatformView.UpdateIsSwipeEnabled(swipeView); ViewHandler.MapIsEnabled(handler, swipeView); }