Windows Phone 8-方形按钮 [英] Windows Phone 8 - Button with quadratic shape

查看:61
本文介绍了Windows Phone 8-方形按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个方形的按钮.通常,这意味着宽度=高度,但是手机具有特定的长宽比,因此并不是真正的二次方.

I want a button with a quadratic shape. Normally, it means that the width = height, but the phone has a specific aspect ratio so it isn't really quadratic.

我需要手动计算二次按钮的确切大小吗?

Do I need to calculate manually the exact size for a quadratic button?

推荐答案

您的意思是除"; quadratic"?描述按钮形状没有任何意义.

Did you mean some other word besides "quadratic"? It makes no sense for describing a button shape.

您可以按照此处所述获得屏幕尺寸和方向:

You can get the screen size and orientation as described here: http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/36a60deb-dd55-45b5-8e64-36c667e4968e


这篇关于Windows Phone 8-方形按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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