Android.App.Dialog.OnCreate Method
Similar to Activity.OnCreate(Android.OS.Bundle), you should initialize your dialog in this method, including calling Dialog.SetContentView(Android.Views.View).

Syntax

[Android.Runtime.Register("onCreate", "(Landroid/os/Bundle;)V", "GetOnCreate_Landroid_os_Bundle_Handler")]
protected virtual void OnCreate (Android.OS.Bundle savedInstanceState)

Parameters

savedInstanceState
If this dialog is being reinitalized after a the hosting activity was previously shut down, holds the result from the most recent call to Dialog.OnSaveInstanceState, or null if this is the first time.

Remarks

Similar to Activity.OnCreate(Android.OS.Bundle), you should initialize your dialog in this method, including calling Dialog.SetContentView(Android.Views.View).

[Android Documentation]

Requirements

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