I want to programatically draw a few simple 2D shapes in a WPF application. Which control should I use for that? I’ve heard that Canvas can do that but that it’s mostly designed to be a container for other controls and not a “drawing” canvas.
I want to programatically draw a few simple 2D shapes in a WPF application.
Share
Those other controls could be shapes like rectangles, lines, etc., so Canvas may be a good start. If you want to render directly through a function, you could basically use any (user)control as base class, though.