性质保证金点菜吗? [英] Properties order in Margin?

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

问题描述

如果我有这样的XAML字符串

  Storyboard.TargetProperty =保证金从=1,2,3, 4到=0,0,0,0

什么是顶部底部左,右?
1右
2-顶部
3左
4 - 底部



这是正确的。


解决方案

 保证金=1,2,3,4




  1. 左,

  2. 顶,

  3. 右键,




也可以指定只有两个尺寸像这样的:

  =保证金1,2




  1. 左右

  2. 顶部和底部



最后,您可以指定单个尺寸:

 保证金=1$ b $用于所有侧b  







的顺序是一样的WinForms


If I have such string in XAML

Storyboard.TargetProperty="Margin" From="1,2,3,4" To="0,0,0,0"

What is Top Bottom Right and left? 1- right 2- top 3- left 4 - bottom

that is right?

解决方案

Margin="1,2,3,4"

  1. Left,
  2. Top,
  3. Right,
  4. Bottom

It is also possible to specify just two sizes like this:

Margin="1,2"

  1. Left AND right
  2. Top AND bottom

Finally you can specify a single size:

Margin="1"

  1. used for all sides

The order is the same as in WinForms.

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

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