Method wpfBuilder.AlignContent(+ 1 overload)
Overload
Sets content alignment of the last added element.
public wpfBuilder AlignContent(HorizontalAlignment? x = null, VerticalAlignment? y = null)
Parameters
x (HorizontalAlignment?)
Horizontal alignment. |
y (VerticalAlignment?)
Vertical alignment. |
Returns
Exceptions
InvalidOperationException
The last added element is not Control. |
Overload(top)
Sets content alignment of the last added element.
public wpfBuilder AlignContent(string x = null, string y = null)
Parameters
x (string)
Horizontal alignment. String like with wpfBuilder.Align. |
y (string)
Vertical alignment. |
Returns
Exceptions
InvalidOperationException
The last added element is not Control. |
ArgumentException
Invalid alignment string. |