Properties order in Margin

前端 未结 4 1662
后悔当初
后悔当初 2020-12-22 14:58

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- r

4条回答
  •  既然无缘
    2020-12-22 15:58

    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.

提交回复
热议问题