如何在 Vista 侧边栏小工具中显示 Silverlight 2.0 应用程序?每当我使用标准 Silverlight 2 对象标签加载小工具时,我都会得到无silverlight 默认内容而不是应用程序。那么,让它运行的诀窍是什么?
这就是我目前尝试实现的方式:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Unicode" />
<title>Silverlight Test</title>
<style type="text/css">
body {
margin: 0;
width: 130px;
}
</style>
</head>
<body>
<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="GTest.xap"/>
<param name="background" value="transparent" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="autoUpgrade" value="true" />
<param name="windowless" value="true" />
Get Silverlight
</object>
</body>
</html>
我可以在 IE 中使用影响侧边栏的设置,以便允许 Silverlight 执行吗?
即使我可以让它在我的电脑上运行,那也是一个好的开始。