ElementExtensions.Margin<T> method (1 of 3)
Sets the margin uniformly.
public static T Margin<T>(this T element, double uniform) where T : FrameworkElement| parameter | description |
|---|---|
| T | Visual type. |
| element | Target element. |
| uniform | Uniform margin value. |
Return Value
Section titled “Return Value”The element for chaining.
Sets: FrameworkElement.Margin
See Also
Section titled “See Also”- class FrameworkElement
- class ElementExtensions
- namespace Aprillz.MewUI.Controls
ElementExtensions.Margin<T> method (2 of 3)
Section titled “ElementExtensions.Margin<T> method (2 of 3)”Sets the margin with horizontal and vertical values.
public static T Margin<T>(this T element, double horizontal, double vertical) where T : FrameworkElement| parameter | description |
|---|---|
| T | Visual type. |
| element | Target element. |
| horizontal | Horizontal margin. |
| vertical | Vertical margin. |
Return Value
Section titled “Return Value”The element for chaining.
See Also
Section titled “See Also”- class FrameworkElement
- class ElementExtensions
- namespace Aprillz.MewUI.Controls
ElementExtensions.Margin<T> method (3 of 3)
Section titled “ElementExtensions.Margin<T> method (3 of 3)”Sets the margin with individual values.
public static T Margin<T>(this T element, double left, double top, double right, double bottom) where T : FrameworkElement| parameter | description |
|---|---|
| T | Visual type. |
| element | Target element. |
| left | Left margin. |
| top | Top margin. |
| right | Right margin. |
| bottom | Bottom margin. |
Return Value
Section titled “Return Value”The element for chaining.
See Also
Section titled “See Also”- class FrameworkElement
- class ElementExtensions
- namespace Aprillz.MewUI.Controls