Margin, Padding are similar but have some important differences. By applying Margin to an item you specify the offset a certain edge of the item should have from it’s closest sibling or parent. With Padding on the other hand you specify the offset children should have from a certain edge on the parent. Border behaves nearly identically to Padding and is only separate from Padding to make it easier to implement border effect such as color. In the below illustrations the green box is a child of the dark gray box.

MarginStart = 50;

MarginEnd = 50;

MarginAll = 50;

PaddingAll = 50;

BorderWidth = 50;