Silverlight中的解析问题 [英] Resolution Problem in Silverlight
本文介绍了Silverlight中的解析问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个在1400 * 1050和更高的屏幕分辨率下运行良好的应用程序,但是当我查看该应用程序时,它的显示方式不正确(文本文本部分显示)并且外观和感觉均不正确.
请帮忙.
谢谢与问候
Mohd Wasif
Hi All,
I have an application that is running well in 1400*1050 and higher screen resolution but when I view this application then it is not showing properly means(textbox texts are showing partially) and not getting proper look and feel.
Please help.
Thanks & Regards
Mohd Wasif
推荐答案
将控件放入 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.
这篇关于Silverlight中的解析问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文