public static void MapSelectionMode(VirtualListViewHandler handler, IVirtualListView virtualListView)
 {
     if (handler?.NativeView != null)
     {
         handler.NativeView.AllowsSelection         = virtualListView.SelectionMode != SelectionMode.None;
         handler.NativeView.AllowsMultipleSelection = virtualListView.SelectionMode == SelectionMode.Multiple;
     }
 }
 public static void MapSetDeselected(VirtualListViewHandler handler, IVirtualListView virtualListView, object parameter)
 {
     if (parameter is ItemPosition[] items)
     {
         handler?.collectionView?.ReloadItems(
             items.Select(i => NSIndexPath.FromItemSection(i.ItemIndex, i.SectionIndex)).ToArray());
     }
 }
 public static void MapOrientation(VirtualListViewHandler handler, IVirtualListView virtualListView)
 {
     handler.layoutManager.Orientation = virtualListView.Orientation switch
     {
         ListOrientation.Vertical => LinearLayoutManager.Vertical,
         ListOrientation.Horizontal => LinearLayoutManager.Horizontal,
         _ => LinearLayoutManager.Vertical
     };
     handler.adapter.NotifyDataSetChanged();
 }
        public static void MapOrientation(VirtualListViewHandler handler, IVirtualListView virtualListView)
        {
            handler.layout.ScrollDirection = virtualListView.Orientation switch
            {
                ListOrientation.Vertical => UICollectionViewScrollDirection.Vertical,
                ListOrientation.Horizontal => UICollectionViewScrollDirection.Horizontal,
                _ => UICollectionViewScrollDirection.Vertical
            };

            handler?.InvalidateData();
        }
 public static void MapViewSelector(VirtualListViewHandler handler, IVirtualListView virtualListView)
 => handler?.InvalidateData();
 public static void MapAdapter(VirtualListViewHandler handler, IVirtualListView virtualListView)
 => handler?.InvalidateData();
 public static void MapInvalidateData(VirtualListViewHandler handler, IVirtualListView virtualListView, object?parameter)
 => handler?.InvalidateData();
Exemplo n.º 8
0
 public CvDelegate(VirtualListViewHandler handler)
     : base()
 {
     Handler = handler;
 }
Exemplo n.º 9
0
 internal RvAdapter(Context context, VirtualListViewHandler handler, PositionalViewSelector positionalViewSelector)
 {
     Context      = context;
     this.handler = handler;
     this.positionalViewSelector = positionalViewSelector;
 }
 public CvLayout(VirtualListViewHandler handler) : base()
 {
     Handler = handler;
     isiOS11 = UIDevice.CurrentDevice.CheckSystemVersion(11, 0);
 }
Exemplo n.º 11
0
 public CvDataSource(VirtualListViewHandler handler)
     : base()
 {
     Handler = handler;
 }
 public static void MapSetDeselected(VirtualListViewHandler handler, IVirtualListView virtualListView, object?parameter)
 {
     handler.adapter.NotifyDataSetChanged();
 }
 public static void MapSelectionMode(VirtualListViewHandler handler, IVirtualListView virtualListView)
 {
 }
 public static void MapHeader(VirtualListViewHandler handler, IVirtualListView virtualListView)
 => handler.InvalidateData();