A difficult question to ask… probably because I just misunderstood how to deal with.
Adding a custom canvas that has its methods, properties, etc., then putting an instance of this class in a window. Everything is ok.
Then in another window I need another canvas with many of the methods and properties of the custom canvas, so logically I will put there another instance of the original custom canvas.
The confusion comes with the Events. If in the Custom Canvas I've defined, for example, a Paint event, everything that happens there will then happens in each instance (will it?).
So, is the solution maybe just to raise in the Event Paint a myEventPaint and then allow for each instance do a different behavior? Or alternatively not to define any event in the Custom Canvas?
Which is the correct way? Or is there another better approach that I am missing?.