I was searching through UWP API Reference and I didn't find any way how to Lock the device from within app or with Secondary Tile.
And I am frustrated, because there is a proof that it can be done. I don't want to make any advertisements here but for example this app: https://www.microsoft.com/en-us/store/apps/quicktiles/9wzdncrfhzts Can create secondary tile that just locks the screen.
How can I do it myself?
Thanks.