在 Silverlight 应用程序中禁用调整大小
如何在 Silverlight 应用程序中禁用调整浏览器大小
How to disable resizing the browser in Silverlight application
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在 Silverlight 应用程序中禁用调整浏览器大小
How to disable resizing the browser in Silverlight application
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
你不能也不应该能够。浏览器是属于用户的应用程序,它不应该由您的应用程序负责。
如果您想防止调整 Silverlight 内容的大小,请为托管 Silverlight 插件的 html 中的
You can't and nor should you be able to. The browser is an application that belongs to the user, it is not something that your application should allowed to take charge of.
If you want to prevent the resizing of your Silverlight content then specify a fixed width and height for the
<object>
tag in the html hosting the Silverlight plugin.