设计页面 [英] Design a page

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

问题描述

我想设计一个页面,我是Windows Phone UI设计的初学者.在下图中,我们有可单击的黑色按钮,其他是TextBlocks.

I want to design a page and I am a beginner in Windows Phone UI design.In the below image we have black buttons which are clickable and others are TextBlocks.

我应该有一个包含7行的网格,并且每行中都有一个用于放置文本块和按钮的堆栈.我已经创建了样式,并且能够创建带有圆角的按钮,但是想知道正确的方法放置物品.

Should I have a grid with 7 rows and in each row have a stack to place the textblock and buttons.I have already created styles and I am able to create the buttons with rounded corners,but want to know the correct way of placing the items.

每行网格的宽度和高度也将是什么.

Also what will be the width and height for each rows of Grid.

请提出建议.

推荐答案

您可以在具有几行包含StackPanel的网格中执行此操作,也可以使用包含水平StackPanel的垂直StackPanel.哪种方法最好取决于应用程序及其动态程度.

You could do this in a Grid with several rows containing StackPanels, or you can use a vertical StackPanel containing horizontal StackPanels. Which is best really depends on the app and how dynamic it will be.

我可能会让行填满整个宽度.垂直高度再次取决于应用程序以及最终的按钮大小.

I'd probably let the Rows fill the full width. The vertical height again depends on the app and on how big the buttons end up being.

您可能要考虑根据设计应用程序 Windows Phone设计主体而不是iPhone设计主体.

You might want to consider designing your app to the Windows Phone design principals rather than the iPhone design principals.

-Rob


这篇关于设计页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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