Method wpfBuilder.Align(+ 1 overload)
Overload
Sets horizontal and/or vertical alignment of the last added element.
public wpfBuilder Align(HorizontalAlignment? x = null, VerticalAlignment? y = null)
Parameters
x (HorizontalAlignment?)
Horizontal alignment. |
y (VerticalAlignment?)
Vertical alignment. |
Returns
Exceptions
InvalidOperationException
Current panel is Canvas. |
Overload(top)
Sets horizontal and/or vertical alignment of the last added element.
public wpfBuilder Align(string x = null, string y = null)
Parameters
x (string)
Horizontal alignment. String that starts with one of these letters, uppercase or lowercase: |
y (string)
Vertical alignment. String that starts with one of these letters, uppercase or lowercase: |
Returns
Exceptions
InvalidOperationException
Current panel is Canvas. |
ArgumentException
Invalid alignment string. |