maui icon indicating copy to clipboard operation
maui copied to clipboard

Allow fullscreen by MAUI.Blazor calls

Open Xyncgas opened this issue 1 year ago • 2 comments

Description

I desire a support to the scenario of requesting fullscreen using javascript in MAUI.Blazor

Public API Changes

: .

Intended Use-Case

For making the app fullscreen by using javascript in Blazor

Xyncgas avatar Apr 14 '24 15:04 Xyncgas

Could you please provide some more detail? What is the API in JavaScript to do this? Does this not do this today? Did you try anything to make it work? Does it have to be JavaScript? Can it be .NET APIs?

jfversluis avatar Apr 15 '24 07:04 jfversluis

In Maui.Blazor one can press F12 to open developer console as you can in a web app

Input await document.activeElement.requestFullscreen() nothing happens

It makes browser fullscreen according to (https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen)

I request it can be for me to use

the result for calling this inside javascript should let the blazor document occupy the entire computer sceen without showing application border / window controls (minimize, maximize, closing) on the windows platform

Xyncgas avatar Apr 17 '24 00:04 Xyncgas