dimanche 10 mai 2015

How to draw polygons on canvas using mouse events?

Hello members of stackoverflow, I'm approaching WPF drawing world (using .NET 4.5 and VS2013) and I'm struggling with the following question: I'd like to draw a polygon on a canvas using mouse click/move events. On the web I saw some static examples(i.e. points carved in XAML/C# code), using WebForms or GDI but that doesn't suites my needs. It would be great if someone could provide a simple example, no need for the fancy stuff (like moving or resizig the polygon).

Aucun commentaire:

Enregistrer un commentaire