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;
}
}
}