scrollview bar on CollectionView

2019-05-10  本文已影响0人  ColeX
class MyRenderer : CollectionViewRenderer
{
    protected override void OnElementChanged(ElementChangedEventArgs<CollectionView> e)
    {
        base.OnElementChanged(e);

        if(Control != null)
        {
            NSArray s = Control.ValueForKey(new NSString("_subviewCache")) as NSMutableArray;
            UICollectionView c = s.GetItem<UICollectionView>(0);
            c.ShowsVerticalScrollIndicator = false;
        }
    }
}
上一篇 下一篇

猜你喜欢

热点阅读