When specifying a field in XAML, you can specify 1, 2, or 4 parameters.
If you specify 1 (for example, Margin="10" ), this value will be applied to all sides.
If you specify 2 (for example, Margin="10, 20" ), the first value will be applied left and right, and the second value will be applied to the upper and lower.
If you specify 4 (for example, Margin="10,20,30,40" ), the first value will be applied to the left side, the second value will be applied to the top, the third to the right, and then the fourth to the bottom.
Matt lacey
source share