Canvas advantages/disadvantages


  • Hello,

    I am new to WPF but have been programming traditional user interfaces in C# for some time now.  I was wondering what the disadvantages of using a "canvas" over a "grid" are.  I have read on many different sites that it is not generally good practice to use the canvas, and you should avoid it if possible.  However, I have not been able to find a good explanation as to why this is.

    As I am coming straight from visual studio 2005, I am used to this style of user interface building, and canvas seems to be the closest thing to it.  Why should I use stackpanels and grids over a canvas?  Any links or suggestions would be much appreciated.

    Tuesday, September 02, 2008 7:08 PM


All replies