WPF elements (like Button and Rectangle) do not have the X and Y properties as in the WinForms controls. Using procedural code, to place a WPF element at a specific XY on a free-form work area like a Canvas, you can use Canvas.SetLeft() and Canvas.SetTop().