美文网首页
scrollview bar on CollectionView

scrollview bar on CollectionView

作者: ColeX | 来源:发表于2019-05-10 21:10 被阅读0次
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;
        }
    }
}

相关文章

网友评论

      本文标题:scrollview bar on CollectionView

      本文链接:https://www.haomeiwen.com/subject/frmzoqtx.html