UIKit.UICollectionView.CollectionViewLayout Property
The UIKit.UICollectionViewLayout that will lay out this UIKit.UICollectionView's elements.

Syntax

[get: Foundation.Export("collectionViewLayout")]
[set: Foundation.Export("setCollectionViewLayout:")]
public virtual UICollectionViewLayout CollectionViewLayout { get; set; }

Value

This value must be set prior to presenting the UIKit.UICollectionView or the application will crash.

Remarks

This value must be set prior to presentation, either by instantiating the UIKit.UICollectionView with the UIKit.UICollectionView.UICollectionView(System.Drawing.RectangleF, UICollectionViewLayout) constructor or with the UICollectionView.SetCollectionViewLayout method.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0