MessageBox.Show Method (Microsoft.Xna.Framework.Input)

Displays the message box interface asynchronously.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static Task<Nullable<int>> Show(
	string title, 
	string description, 
	IEnumerable<string> buttons

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.String
Title of the message box.
Type: System.String
Description of the message box.
Type: IEnumerable<System.String>
Captions of the message box buttons. Up to three supported.

Return Value

Type: Task<Nullable<System.Int32>>
Index of button selected by the player. Null if back was used.
Supported in:

 Windows DirectX Desktop