Evaluating UWP for a Windows desktop app which must run in portrait mode for kiosk hardware. This seem to be a problem for UWP as desktop apps apparently assume landscape... any workarounds or is this just the wrong technology?
Is it possible to extend the list of target devices available in the design view?
Locally, in Settings: The Set up a kiosk (previously named Set up assigned access) option in Settings is a quick and easy method to set up a single device as a kiosk for a local standard user account. This option supports: Windows 10 Pro, Enterprise, and Education. Windows 11.
To enable kiosk mode on your Android devices, Navigate to the Manage Tab and select the Devices/Device Groups/Users/User Groups for which kiosk mode is to be enabled. Click on Actions and select Enable Kiosk Mode.
With the multi-app kiosk mode, you can allow device users to access the device home screen, device settings, and any number of preselected apps.
Kiosk Mode using Windows 10 HomeMicrosoft has recently introduced a new Kiosk Mode feature in Windows 10. At first glance, this feature seems appealing as it incorporates the ability to run a single app in a locked down state.
I see a lot of sub sections to your question, do let me know if I've missed out something. Below are the sections:
So in-case you have a desirable screen height and width what you can do are:
<Page>
tag of the xaml
add the below declarations along with the namespace declarations.xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="500"
d:DesignWidth="300"
The above code would set your designer to the size you want and the scale and aspect ratio is set from the device that you had picked. And you can design for the size your hardware as you know the size of the deployed machine won't change.
Well the UWP
apps are meant to be adaptive which is kinda the best part about them, make once and deploy to a wide variety of your machines.
That being said, refer to this section only if you have a case scenario where in your app can be deployed to a landscape mode hardware and you want your app to still be in portrait mode. If so, then there are two ways you can go about it.
MaxHeight
and MaxWidth
of your root grid
or any parent (except for page) to set it to what you want so that even if the app is running fullscreen, your content will be aligned vertically center and won't go more than what you've set and the remaining window would be filled with the background that you've set.I am writing up a quick demo app for your better understanding. I'll add the link in a while.
Personally I think, a UWP app is best suited for your use case, as you have no idea what would be size of your deployment screen and you can actually leverage the adaptive layout of UWP, to ship your app to different vendors
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With