UIView.WillMoveToWindow(UIWindow) UIView.WillMoveToWindow(UIWindow) Method


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

public virtual void WillMoveToWindow (UIKit.UIWindow window);
abstract member WillMoveToWindow : UIKit.UIWindow -> unit
override this.WillMoveToWindow : UIKit.UIWindow -> unit


UIWindow UIWindow

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

This parameter can be null.

Applies to