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

            handler.TypedNativeView.OnCloseRequested(request);
        }
Beispiel #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);
        }
Beispiel #7
0
        public static void MapRequestOpen(ISwipeViewHandler handler, ISwipeView swipeView, object?args)
        {
            if (args is not SwipeViewOpenRequest request)
            {
                return;
            }

            handler.PlatformView.OnOpenRequested(request);
        }
Beispiel #8
0
 public static void MapBackground(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     if (swipeView.Background == null)
     {
         handler.TypedNativeView.Control?.SetWindowBackground();
     }
     else
     {
         ViewHandler.MapBackground(handler, swipeView);
     }
 }
Beispiel #9
0
 public static void MapBottomItems(ISwipeViewHandler handler, ISwipeView view)
 {
 }
Beispiel #10
0
 public static void MapRightItems(ISwipeViewHandler handler, ISwipeView view)
 {
 }
Beispiel #11
0
 public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView)
 {
 }
Beispiel #12
0
 public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.TypedNativeView.UpdateSwipeTransitionMode(swipeView.SwipeTransitionMode);
 }
Beispiel #13
0
 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)
 {
 }
Beispiel #15
0
 public static void MapSwipeTransitionMode(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.PlatformView.UpdateSwipeTransitionMode(swipeView.SwipeTransitionMode);
 }
Beispiel #16
0
 public static void MapIsEnabled(ISwipeViewHandler handler, ISwipeView swipeView)
 {
     handler.PlatformView.UpdateIsSwipeEnabled(swipeView);
     ViewHandler.MapIsEnabled(handler, swipeView);
 }