Android Guides | Samples

Android.Views.View.OnAttachedToWindow Method

This is called when the view is attached to a window.

Syntax

[Android.Runtime.Register("onAttachedToWindow", "()V", "GetOnAttachedToWindowHandler")]
protected virtual Void OnAttachedToWindow ()

See Also

Remarks

This is called when the view is attached to a window. At this point it has a Surface and will start drawing. Note that this function is guaranteed to be called before View.OnDraw(Canvas), however it may be called any time before the first onDraw -- including before or after View.OnMeasure(Int32,Int32).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1