要使silverlight能够在IIS中顺利运行,需要设置的东西.

扩展名                       MIME 类型
.xaml                           application/xaml+xml
.xap                            application/x-silverlight-app
.dll                              application/x-msdownload
.manifest                     application/manifest
.application                 application/x-ms-application
.xbap                          application/x-ms-xbap
.deploy                       application/octet-stream
.xps                            application/vnd.ms-xpsdocument


红色的两行是关键的
也有人说这样就可以了,
.xaml                             text/xml

变灰的效果。

<style type="text/css">
body{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);}
</style>

posted @ 2008-11-13 22:17  遥望星空  阅读(277)  评论(0编辑  收藏  举报