Welcome to MSDN Blogs Sign in | Join | Help

August 2007 - Posts

How to set MyControl.X and MyControl.Y in a Windows Presentation Foundation (WPF) Canvas?

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().
Posted by PermanentTan | 1 Comments
 
Page view tracker