Usually, when you develop a Windows 10 UWP game, it’s a common requirement that the host window has to go full screen.
UWP offers this chance through a fairly simply API. When the window launches, you can set your desired size and attempt to enter in full screen mode.
Activate call, you can specify the preferred display mode - which is kept over restarts. Then you can try to go full screen.
If you adopted HTML/JS as your the technology stack of choice and you render the game using a canvas or any HTML element, it happens the EDGE engine will draw an ugly and utterly annoying dotted border all along the window perimeter.
The issue lays on the default focus style of some elements. And, of course, you can override the style and set your own.
In order to get rid of the inaesthetic border, CSS is your friend. Just refine the focus style of the affected elements.
In our games, since there’s a main canvas element, it’s enough to use the following rule:
This will remove the border and give a clear looking background.
Hope it helps some of you, easing one of the many hassles that enrich our days.