有可以兼容分辨率的控件吗? [英] Is there the control which can compatible resolution ?
本文介绍了有可以兼容分辨率的控件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Silverlight时是否存在可以兼容分辨率的控件?
例如:
在"telerik"中有可以兼容分辨率的控件吗?
如您所知,与屏幕分辨率兼容是一个难题.
Is there the control which can compatible resolution when use silverlight ?
For example:
Is there the control which can compatible resolution in "telerik" ?
As you know , compatible with screen resolution is a difficult problem .
How to do it???
推荐答案
将控件放在 Grid 元素内.然后将 RowsDefinitions 和 ColumnDefinitions 与 Height 和/或 Width 设置为 Auto 并使用 * .
示例:
Put your controls inside a Grid element. Then use RowsDefinitions and ColumnDefinitions with Height and/or Width sets to Auto and *.
Example:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
我建议对所有控件使用 Auto ,但较大的控件(例如GridView)必须使用 * 以获得完整的屏幕分辨率.
希望它会有所帮助.
I recommend use of Auto for all controls except the bigger (a GridView, for example) that must use * for complete screen resolution.
Hope its helps.
这篇关于有可以兼容分辨率的控件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文