Show / Hide Table of Contents

Method wpfBuilder.XY


Overload

Sets position of the last added element in Canvas panel. Optionally sets size.

public wpfBuilder XY(double x, double y, WBLength? width = null, WBLength? height = null)
Parameters
x  (double)
y  (double)
width  (WBLength?)

Width or/and min/max width.

height  (WBLength?)

Height or/and min/max height.

Returns
wpfBuilder
Exceptions
InvalidOperationException

Current panel is not Canvas.

Remarks

Only in System.Windows.Controls.Canvas panel you can set position explicitly. In other panel types it is set automatically and can be adjusted with wpfBuilder.Margin, wpfBuilder.Align, container's wpfBuilder.AlignContent, etc.