GameWindow.AllowAltF4 Property (Microsoft.Xna.Framework)

Gets or sets a bool that enables usage of Alt+F4 for window closing on desktop platforms. Value is true by default.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.271)
  • C#
  • VB
  • F#
public bool AllowAltF4 { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Boolean
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web