Share via


GameBar.Visible Property

Definition

Indicates whether Game bar is currently visible.

Use the property to determine the visibility state of Game bar. Games can choose to pause gameplay or present an idle state when Game bar is visible and being drawn over the game. While paused or idle, a best practice is to continue rendering the current frame or scene, so that the recording is smooth and seamless if the player begins recording or is already recording. Multiplayer games might choose to continue gameplay rather than to pause.

To be notified of changes to , handle the VisibilityChanged event.

public:
 static property bool Visible { bool get(); };
static bool Visible();
public static bool Visible { get; }
var boolean = GameBar.visible;
Public Shared ReadOnly Property Visible As Boolean

Property Value

Boolean

bool

true if Game bar is currently visible; false otherwise.

Applies to

See also