以全屏模式查看Silverlight应用程序(F11) [英] To view the silverlight app in fullscreen mode(F11)

查看:67
本文介绍了以全屏模式查看Silverlight应用程序(F11)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以直接以F11模式加载我的silverlight应用程序? 我用过

Is there any way to load my silverlight app in F11 mode directly? I have used

window.open(url, '_self',
    'toolbar=no,status=no,location=no,menubar=no,resizable=yes,scrollbars=no,fullscreen=yes',
    'true');
HtmlPage.window.invoke("launchPage",url);

但是问题是我的应用的两个实例已打开.一个在普通屏幕中,另一个在全屏幕中.

But the problem is that two instances of my app are opened. One in normal screen and the other in fullscreen.

我尝试过

App.Current.Host.Content.IsFullScreen = true; 

在App.xaml的构造函数中

in the constructor of the App.xaml

仍然无法正常工作. :( 我要去哪里错了?

Still its not working. :( Where am I going wrong??

推荐答案

由于安全限制,无法在全屏模式下自动运行Silverlight应用程序.就像下面的...

running a Silverlight application automatically in full-screen is not possible because of security restriction. It is like the following...

  1. 您已在Firefox标签中打开银行登录页面.这是您当前的标签.
  2. 您正在另一个标签上打开一个恶意的Silverlight应用程序.
  3. 恶意的Silverlight应用程序会加载并创建与您的银行登录页面完全匹配的全屏屏幕.
  4. 您正在与Silverlight应用程序加载时的某人交谈. (您的眼睛不在屏幕上)因此您错过了弹出的全屏消息.
  5. 现在,当您查看计算机屏幕时,会看到银行登录页面,该页面实际上是silverlight应用程序的全屏页面,与您的银行登录页面匹配.
  6. 您输入用户名和密码...并且
  7. 单击登录后,恶意应用程序已获得所需的一切.

这不仅适用于Silverlight.解决此问题之前,必须对每个ACTIVEX控件都存在一个限制.

This is not only for Silverlight. It is a restriction that SHOULD BE THERE WITH EVERY ACTIVEX CONTROL UNTIL THIS PROBLEM IS SOLVED.

您正在使用javascript做的是打开一个没有菜单栏,地址栏等的新弹出窗口.它不能替代F11.以我的经验,大多数用户都讨厌自动弹出.而且大多数现代浏览器仍然会阻止它们.

What you are doing with javascript is you are opening a new pop up window without menubar, addressbar etc. It is not a replacement of F11. And to my experience most of the users hate automatic poping up. And most modern browsers will block them anyway.

最好的方法是告诉用户她需要全屏查看您的应用程序,然后让她决定替代它.

The best way is to tell the user she needs to view your application on fullscreen and LET HER DECIDE INSTEAD OF FORCING IT.

这篇关于以全屏模式查看Silverlight应用程序(F11)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆