Show / Hide Table of Contents

Method wpfBuilder.And


Overload

Sets to add next element in the same grid cell as previous element.

public wpfBuilder And(double width)
Parameters
width  (double)

Width of next element. If negative - width of previous element. Also it adds to the corresponding margin of other element. If 0, simply adds in the same place as previous element.

Returns
wpfBuilder
Exceptions
InvalidOperationException

In non-grid panel or in a wrong place.

Remarks

Can be used to add 2 elements in 1 cell as a cheaper and more concise way than with a StartX function. Next element will inherit column index and span of previous element but won't inherit row span.

Examples

b.Add("File", out TextBox _).And(70).AddButton("Browse...", null);