Android.App.DialogFragment.OnCreateDialog Method
Override to build your own custom Dialog container.

Syntax

[Android.Runtime.Register("onCreateDialog", "(Landroid/os/Bundle;)Landroid/app/Dialog;", "GetOnCreateDialog_Landroid_os_Bundle_Handler")]
public virtual Dialog OnCreateDialog (Android.OS.Bundle savedInstanceState)

Parameters

savedInstanceState
The last saved instance state of the Fragment, or null if this is a freshly created Fragment.

Returns

Documentation for this section has not yet been entered.

Remarks

Override to build your own custom Dialog container. This is typically used to show an AlertDialog instead of a generic Dialog; when doing so, Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup) does not need to be implemented since the AlertDialog takes care of its own content.

This method will be called after DialogFragment.onCreate(android.os.Bundle) and before Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup). The default implementation simply instantiates and returns a Android.App.Dialog class.

Note: DialogFragment own the Dialog.SetOnCancelListener(Android.Content.IDialogInterfaceOnCancelListener) and Dialog.SetOnDismissListener(Android.Content.IDialogInterfaceOnDismissListener) callbacks. You must not set them yourself. To find out about these events, override DialogFragment.OnCancel(Android.Content.IDialogInterface) and DialogFragment.OnDismiss(Android.Content.IDialogInterface).

[Android Documentation]

Requirements

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