简体   繁体   English

Windows 7桌面小工具+ Silverlight 3(GDR2)问题

[英]Windows 7 Desktop Gadget + Silverlight 3 (GDR2) Issues

I am having load of issues getting my SL-based gadgets to work! 我有很多问题让我的基于SL的小工具正常工作! I do the following: 我做以下事情:

Create a standard silverlight application (Silverlight 3 GDR 2 - 3.0.40818.0) and run it - it works! 创建一个标准的Silverlight应用程序(Silverlight 3 GDR 2 - 3.0.40818.0)并运行它 - 它的工作原理! I then take the ClientBin folder, the test page (html) and the silverlight.js files and place them in a folder! 然后,我将ClientBin文件夹,测试页(html)和silverlight.js文件放在一个文件夹中! I then double click on the html test page to run it. 然后我双击html测试页面来运行它。 IE8 warns me that its a active x control. IE8警告我它是一个有效的x控件。 If I accept it opens fine! 如果我接受它打开罚款! I then add a very basic gadget.xml file (to make it a valid gadget) and place it in the correct folder. 然后,我添加一个非常基本的gadget.xml文件(使其成为有效的小工具)并将其放在正确的文件夹中。 Right click on the desktop and select add gadget - select my gadget and drag it to the desktop! 右键单击桌面并选择添加小工具 - 选择我的小工具并将其拖到桌面上! The gadget show but I always get the image to install silverlight? 小工具显示,但我总是得到图像安装silverlight? Why? 为什么?

I also updated the params to x-gadget 我还将params更新为x-gadget

<param name="source" value="x-gadget://ClientBin/MyBusiness.xap"/>

Is their any known issues with running it on x64? 他们在x64上运行它有任何已知问题吗? Here is a article about flash + x64... does this somehow relate to silverlight? 是一篇关于flash + x64的文章......这是否与Silverlight有关?

Ok, found the answer! 好的,找到了答案!

Because I am running Windows 7 64-bit, by default the 64-bit version of sidebar.exe is run, which in turn uses IE 64-bit! 因为我运行的是Windows 7 64位,默认情况下会运行64位版本的sidebar.exe,而后者又使用IE 64位! Silverlight and flash is not supported on these OS'es! 这些操作系统不支持Silverlight和闪存!

to proof that it's the case, try the following! 要证明是这种情况,请尝试以下方法! Close all your gadgets and run C:\\Program Files (x86)\\Windows Sidebar\\sidebar.exe (The 32 bit version) and add your gadget! 关闭所有小工具并运行C:\\ Program Files(x86)\\ Windows Sidebar \\ sidebar.exe(32位版本)并添加小工具! This should now work! 这应该工作了! You can add sidebar to you startup programs which should solve most of you issues but this still sucks! 您可以为您的启动程序添加侧边栏,这应该可以解决您的大多数问题,但这仍然很糟糕! Would be great if the gadget.xml file asked you if you want to force 32 bit mode? 如果gadget.xml文件询问您是否要强制使用32位模式,那会很棒吗?

http://brandonlive.com/2008/03/11/dont-write-gadgets-with-flash-or-silverlight/ http://brandonlive.com/2008/03/11/dont-write-gadgets-with-flash-or-silverlight/

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

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