Possible Duplicate:
Improving Canvas performance
in my wpf application I load a image as bitmap and draw it as a background on my control. On this picture I want to draw some geometries, for example ellipses. So i have to recieve mouseclick and mousemove events in this control for knowing where to draw my geometry.
Actually I derive my control class from the "canvas" class, but i fullscreen this is to slow. And if I derive from the "control" class, only mouse events on allready drawn images or geometries can be recieved.
So the Question is: What is the best class to derive from in WPF for drawing some geometries with the best performance and where alway mouse events can occure?
Thanks :)