保证金按钮 [英] Margin button

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

问题描述

我正在为Windows Phone 8.1构建应用程序

I am building an app for windows phone 8.1

如何在c#中的2个按钮之间有一些空格或填充?

how do you have some space or padding between 2 buttons in c#?

在c#中,我制作了一个按钮网格。我想知道如何在创建的按钮之间留出一些余量。

In c#,i have made a grid of buttons. i would like to know how to have some margin between the buttons created.

Ashish Shah

Ashish Shah

推荐答案

您可以在每个按钮上设置保证金属性

You can set the Margin-Property on each Button

<Button Margin="10"/>
<Button Margin="10 5"/>
<Button Margin="10 20 30 40"/>

第一个按钮:保证金左,上,右和下是10

First Button: Margin left, top, right and bottom is 10

第二个按钮:左边和右边的边距是10,边距顶部和底部5

Second Button: Margin left and right is ten, margin top and bottom 5

第三个按钮:保证金左边10,前20,右边30,底部40

Third Button: Margin left 10, top 20, right 30, bottom 40


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

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