I'm making an application to dynamically add user controls on a Canvas and drag them around. First I made a window with a canvas to drag them in and everything worked fine. Then i made a user control with the code from the window. I added the control to a new window and everything still was working fine.
Now I try to add my control to the main application and the performance is very slow. The controls still follow the mouse but very slow. The application does have several other user controls. Where does this huge performance hit come from and how can I avoid it? The cpu only uses 50% and when it was working good it went to 100%.
Thank you for you're help
David
EDIT: I resolved the problem. By moving the user-controls there was an error in the image url wich prevented the application to run smoothly.
By changing the url's everything went back to normal.