⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

AppWindow.RequestFullscreen

void RequestFullscreen(bool fullscreen)

Asks for this window to cover its whole display, or to go back to a normal window. This is only ever a request, and it’s never immediate! Window managers can refuse it, browsers wait for a user gesture, and some platforms don’t implement it at all. None of those report back a refusal, so watch the Fullscreen property to see if and when it takes effect. Going fullscreen resizes the window, so expect the render surface to follow along.

   
bool fullscreen True to ask for fullscreen, false to ask for a normal window.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!