In my application, the user is supposed to click over an image, and as he clicks some dots appear. Also he can remove them by right clicking, etc.
So I have a test project composed of a single Window (xaml + codebehind) with a canvas, and I am handling some of its events, as MouseMove
and MouseLeftButtonDown
which are going to add points to an ObservableCollection<Point>
in code behind.
I already have this, what I don't know is how I'm supposed to implement data-templating and databinding so that my grid will contain an ItemsControl
and every point will be displayed as a dot (Path
with an EllipseGeometry
, so that I can set its Center
).
I took a look at some tutorials, but most of them have a lot of extra code and I am confused.