chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 279 forks source link

Question: Is it possible to change to Kiosk mode during runtime? #313

Closed kroehne closed 3 years ago

kroehne commented 3 years ago

Hi, I find the option config.WindowOptions.KioskMode = true; quite useful, and it's working as expected if I configure it before calling AppBuilder. I was wondering, if it also possible to switch to Kisok mode during runtime (so only when the user decides to use Kiosk mode) and if so: How? Thanks and kind regards.

mattkol commented 3 years ago

@kroehne

Related to https://github.com/chromelyapps/Chromely/issues/185#issuecomment-617815483

You can either access the native host in the Controllers or Window.