浏览器外模式下的 Silverlight 透明背景
我确信以前有人问过这个问题(但找不到任何可以解决我的问题的资源),我正在创建一个 Silverlight 应用程序,用户可以使用提升的信任在 OOB 模式下安装和使用该应用程序。我希望我的“无窗口窗口”背景是透明的,因此我将应用程序设置为在 OOB 模式下无窗口运行,并在网格(主网格)周围放置一些边距以及阴影效果。我想要实现的是“zune 窗口”效果:带有阴影的矩形主无边框窗口。我能够在 WPF 中做到这一点,但在 Silverlight 中,我得到了白色背景:
我不知道不想要这个白色背景,我已经仔细检查过没有设置白色背景,但我仍然得到这个。我怎样才能摆脱那个白色边框(显然同时保持投影效果)?
I'm sure it has been asked before (but couldn't find any resources that solves my problem), I'm creating a Silverlight application where users may install and use in OOB mode, using elevated trust. I want my "windowless window"s background to be transparent so I've set the app to run windowless in OOB mode, and put some margin around my Grid (main grid) along with a drop shadow effect. What I'm trying to achieve is the "zune window" effect: a rectangular main borderless window with drop shadow. I was able to do it in WPF but in Silverlight, I'm getting a white background:
I don't want this white background, and I've double checked that NOTHING has a white background set, but I'm still getting this. How can I get rid of that white border (obviously while keeping the drop shadow effect)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答是:你不能。
长答案是:
Window
对象表示具有纯色背景的客户端窗口,并且无法更改该颜色。The short answer is: you can't.
The long answer is: The
Window
object represents a client window with a solid color background and there is no way to change that color.