What is the equivalent to Java's canvas object in C#?

Posted by Winston on Stack Overflow See other posts from Stack Overflow or by Winston
Published on 2010-03-31T15:51:31Z Indexed on 2010/03/31 15:53 UTC
Read the original article Hit count: 343

Filed under:
|
|
|

I'm working on creating a basic application that will let a user draw (using a series of points) and I plan to do something with these points.

If this were Java, I think I would probably use a canvas object and some Java2D calls to draw what I want.

All the tutorials I've read on C#/Drawing involve writing your own paint method and adding it to the paint event for the form. However, I'm interested in having some traditional Form controls as well and I don't want to be drawing over them. So, is there a "Canvas" object where I can constrain what I'm drawing on?

Also, is WinForms a poor choice given this use case? Would WPF have more features that would help enable me to do what I want? Or Silverlight?

© Stack Overflow or respective owner

Related posts about c#

Related posts about drawing