I have a Desktop Application written in WPF (originally for Windows 7) that I would like to run in Kiosk (Assign Access mode) on a Microsoft Surface Pro 2. The assigned access feature looked perfect, but it doesn't support non-store apps.
I just need a way to prevent the user from switching to another app or getting access to the OS etc.
Possible?
Make your application fullscreen as shown here: full screen wpf
In your main window constructor subscribe on Deactivate event or override OnDeactivate method:
Deactivated += delegate(object sender, EventArgs e) {
Activate();
};
You would also want to prevent the window from Alt+F4 closing by handling the Closing event on such a way:
Closing += delegate(object sender, CancelEventArgs e)
{
if(!Environment.HasShutdownStarted)
e.Cancel = true;
};
After all done, the application is closable only by task manager, sign out and shutdown.