如何在Windows Phone 8中将控件的宽度或高度调整为设备宽度 [英] How to adjust my control's width or height to device width in Windows Phone 8

查看:70
本文介绍了如何在Windows Phone 8中将控件的宽度或高度调整为设备宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我正在开发一个Windows手机应用程序,我已经完成了它,但当它在另一个Windows移动设备中使用时,控件存在于我开发的移动设备的固定长度,

因此我需要知道如何自动将控制位置设置为其设备宽度或高度。



任何类型的帮助代码都会被赞赏。

提前谢谢

HI ,
I am developing a windows phone application, i have done with it, but when it is used in another windows mobile the controls present are in fixed length of my developing mobile ,
Hence i need to know how to make a control place automatically to its device width or height.

Any kind of help are code will be Appreciated.
Thanks in advance

推荐答案

使用*来适应所有可用空间。

高度=*

或自动

或0.8 *设定80%等

(0.8和星级)
Use * to fit all available space.
Height="*"
Or "Auto"
Or "0.8*" to set 80% etc
(0.8 and star)


这篇关于如何在Windows Phone 8中将控件的宽度或高度调整为设备宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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