Silverlight 中的分辨率问题 [英] resolution issue in silverlight

查看:57
本文介绍了Silverlight 中的分辨率问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 Silverlight 应用程序中有一个独立于分辨率的 UI.它是隐式支持还是应该在执行 ScaleTransform 的代码中小心处理?

i need to have a resolution independant UI in silverlight application. Will it support implicitly or should it be taken care in code behind doing ScaleTransform ?

它是否也支持多个浏览器?

will it support multiple browsers as well ?

提前致谢.

推荐答案

您可以使用 Silverlight Toolkit 中的 ViewBox 控件进行缩放转换.它适用于所有支持的浏览器.

You can use The ViewBox control in the Silverlight Toolkit to do the scale transforming. It will work on all supported browsers.

您还可以将 UserControl 的宽度和高度设置为 Auto(或删除它们),然后让您的 UI 拉伸(但不调整大小)到您设置的规则(通常使用 Grid 控件).

You can also set the UserControl width and height to Auto (or remove them) and then have your UI stretch (but not resize) to rules that you set up (typically with a Grid control).

这篇关于Silverlight 中的分辨率问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆