I want to make basic WPF graphics, i.e. Rectangles, lines, circles and text.
When should I use Drawing and when should I use DrawingVisual?
I have a code that uses Drawing, and I render them in DrawingImage and display it in the image control. Is it correct? I could not figure out how to add text to the drawing. I also had problems with positioning. Should I be rendering on canvas?
I have code that uses DrawingVisual and writes to a DrawingContext. This is similar to WinForms. Is this the recommended way?
Do you have any high level advice on using the API for basic graphics and shortcuts? Will they work on Silver Light and Desktop?
source
share