UIKit.UICollectionView.SetCollectionViewLayout Method
Changes the UIKit.UICollectionViewLayout used by the UIKit.UICollectionView.

Syntax

[Foundation.Export("setCollectionViewLayout:animated:")]
public virtual void SetCollectionViewLayout (UICollectionViewLayout layout, bool animated)

Parameters

layout
The new UIKit.UICollectionViewLayout.
animated
true if the transition to the new layout should be animated.

Remarks

A UIKit.UICollectionView must have its UICollectionView.CollectionViewLayout assigned before being displayed. The application developer must either instantiate the UIKit.UICollectionView with the UIKit.UICollectionView.UICollectionView(System.Drawing.RectangleF, UIKit.UICollectionViewLayout) constructor or call this method prior to displaying the UIKit.UICollectionView.

Requirements

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