Margin « Windows Presentation Foundation « C# / C Sharp






1.No marginNo margin
2.The same margin on all four sidesThe same margin on all four sides
3.Margin: Left,Top,Right,BottomMargin: Left,Top,Right,Bottom
4.Set margins, by changing any existing property value for the margin in code-behind with Thickness classSet margins, by changing any existing property value for the margin in code-behind with Thickness class
5.Change the margins of an element that is within a Grid by XAML and programmatic codeChange the margins of an element that is within a Grid by XAML and programmatic code