简体   繁体   English

可以将Silverlight应用程序设置为Kiosk模式吗?

[英]Can you put Silverlight app into Kiosk mode?

Is it possible to tell an out-of-browser Silverlight app to run in kiosk mode ? 是否可以告诉浏览器外的Silverlight应用以kiosk mode运行?

I can set it to full screen, but can we disable keystrokes that would allow a user with a keyboard to interact with Windows ie ctrl + alt + del , alt + tab , ctrl + esc etc.? 我可以将其设置为全屏显示,但是我们可以禁用允许使用键盘的用户与Windows交互的按键,即ctrl + alt + delalt + tabctrl + esc等吗?

This is for an app that will run in full screen on a touchscreen tablet, most of the time there won't be a keyboard on-screen, but there is a Connect to Facebook function that will pop-up a keyboard for them to use to log-in. 这是针对将在触摸屏平板电脑上全屏运行的应用程序,大多数情况下不会在屏幕上显示键盘,但是有一个“ Connect to Facebook功能会弹出一个键盘供他们使用登录。

You need to install your application as a trusted Silverlight application. 您需要将应用程序安装为受信任的Silverlight应用程序。 See reference: 请参阅参考:

http://msdn.microsoft.com/en-us/library/cc189023(v=vs.95).aspx http://msdn.microsoft.com/en-us/library/cc189023(v=vs.95).aspx

Full-Screen Mode with Trusted Applications 具有受信任应用程序的全屏模式

The full-screen message, user-initiation requirement, keyboard restrictions, and dialog-box restrictions do not apply to trusted applications. 全屏消息,用户初始化要求,键盘限制和对话框限制不适用于受信任的应用程序。 Additionally, trusted applications do not display the user-consent dialog box when using the StaysFullScreenWhenUnfocused setting. 此外,使用StaysFullScreenWhenUnfocused设置时,受信任的应用程序不会显示用户同意对话框。

In trusted applications, you can enter full-screen mode in a Application.Startup or FrameworkElement.Loaded event handler. 在受信任的应用程序中,您可以在Application.Startup或FrameworkElement.Loaded事件处理程序中进入全屏模式。 However, you must do so by setting the IsFullScreen property in a delegate passed to the Dispatcher.BeginInvoke method. 但是,必须通过在传递给Dispatcher.BeginInvoke方法的委托中设置IsFullScreen属性来执行此操作。

Because the ESC key has no built-in effect for trusted applications, you can use it for your own purposes. 因为ESC密钥对于受信任的应用程序没有内置效果,所以可以将其用于自己的目的。 In this case, you should implement and document an alternative so that users can exit full-screen mode. 在这种情况下,您应该实现并记录替代方法,以便用户可以退出全屏模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM