UIKit.UIView.WillMoveToWindow Method

This method is called by the runtime when assigning a new UIKit.UIWindow to the UIKit.UIView's view hierarcy. This method will be called on all UIKit.UIViews in the hierarchy, not just the top-level UIKit.UIView.

By default, this method does nothing. Application developers can override the method in order to perform additional processing.

Syntax

[Foundation.Export("willMoveToWindow:")]
public virtual void WillMoveToWindow (UIWindow window)

Parameters

window

Called before the window at the root of the UIKit.UIView's view hierarchy changes.

This parameter can be null.

Remarks

Requirements

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