Ejemplo n.º 1
0
 public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object?args)
 {
     if (args is not SwipeViewCloseRequest request)
     {
         return;
     }
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object?args)
 {
     if (args is not SwipeViewCloseRequest request)
     {
         return;
     }
     handler.PlatformView.ResetSwipe(request.Animated);
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object?args)
        {
            if (args is not SwipeViewCloseRequest request)
            {
                return;
            }

            handler.TypedNativeView.OnCloseRequested(request);
        }
Ejemplo n.º 6
0
        public static void MapRequestOpen(ISwipeViewHandler handler, ISwipeView swipeView, object?args)
        {
            if (args is not SwipeViewOpenRequest request)
            {
                return;
            }

            handler.PlatformView.ProgrammaticallyOpenSwipeItem(request.OpenSwipeItem, request.Animated);
        }
Ejemplo n.º 7
0
        public static void MapRequestOpen(ISwipeViewHandler handler, ISwipeView swipeView, object?args)
        {
            if (args is not SwipeViewOpenRequest request)
            {
                return;
            }

            handler.PlatformView.OnOpenRequested(request);
        }
Ejemplo n.º 8
0
 public static void MapBackground(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     if (swipeView.Background == null)
     {
         handler.TypedNativeView.Control?.SetWindowBackground();
     }
     else
     {
         ViewHandler.MapBackground(handler, swipeView);
     }
 }
Ejemplo n.º 9
0
 public static void MapBottomItems(ISwipeViewHandler handler, ISwipeView view)
 {
 }
Ejemplo n.º 10
0
 public static void MapRightItems(ISwipeViewHandler handler, ISwipeView view)
 {
 }
Ejemplo n.º 11
0
 public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView)
 {
 }
Ejemplo n.º 12
0
 public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.TypedNativeView.UpdateSwipeTransitionMode(swipeView.SwipeTransitionMode);
 }
Ejemplo n.º 13
0
 public static void MapIsEnabled(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.TypedNativeView.UpdateIsSwipeEnabled(swipeView.IsEnabled);
     ViewHandler.MapIsEnabled(handler, swipeView);
 }
Ejemplo n.º 14
0
 public static void MapContent(ISwipeViewHandler handler, ISwipeView view)
 {
 }
Ejemplo n.º 15
0
 public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.PlatformView.UpdateSwipeTransitionMode(swipeView.SwipeTransitionMode);
 }
Ejemplo n.º 16
0
 public static void MapIsEnabled(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.PlatformView.UpdateIsSwipeEnabled(swipeView);
     ViewHandler.MapIsEnabled(handler, swipeView);
 }