Android.App.MediaRouteButton.OnAttachedToWindow Method
This is called when the view is attached to a window.

Syntax

[Android.Runtime.Register("onAttachedToWindow", "()V", "GetOnAttachedToWindowHandler")]
public virtual void OnAttachedToWindow ()

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 Android.Views.View.OnDraw(Android.Graphics.Canvas), however it may be called any time before the first onDraw -- including before or after Android.Views.View.OnMeasure(int, System.Int32).

[Android Documentation]

Requirements

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