保证金中的属性顺序 [英] Properties order in Margin
本文介绍了保证金中的属性顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我在XAML中有这样的字符串:
If I have such string in XAML:
Storyboard.TargetProperty="Margin" From="1,2,3,4" To="0,0,0,0"
上下左右是什么?
1-右
2-顶部
3-左
4-底部
What is Top Bottom Right and Left? 1- right 2- top 3- left 4 - bottom
对吗?
推荐答案
Margin="1,2,3,4"
- 左,
- 顶部,
- 右
- 底部
- Left,
- Top,
- Right,
- Bottom
也可以仅指定两个大小像这样:
It is also possible to specify just two sizes like this:
Margin="1,2"
- 左和右
- 顶部和底部
最后,您可以指定单个大小:
Finally you can specify a single size:
Margin="1"
- 用于所有方面
顺序与WinForms中的顺序相同。
The order is the same as in WinForms.
这篇关于保证金中的属性顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文