public override void ViewWillTransitionToSize(CGSize toSize, IUIViewControllerTransitionCoordinator coordinator) { base.ViewWillTransitionToSize(toSize, coordinator); //update capture session with new interface orientation _captureSession.UpdateVideoOrientation( GetCaptureVideoOrientation(UIApplication.SharedApplication.StatusBarOrientation)); coordinator.AnimateAlongsideTransition(context => { UpdateContentInset(); }, context => { UpdateItemSize(); }); }