I'm creating WPF application that needs to display about 100 (number is changing) small diamond and circle (10px) shapes in square area with image background. I know that this isn't many shapes and method doesn't really matter.
But I would like to know and learn the most efficient and WPF way to display many small moving shapes in wpf application.
Also I'd like to know what is the best way to supply "new" coordinates to drawing those elements.
What I have: For passing data I have simple array of points. That each frame (60fps) I remove array and "send" new one via event. Than screen is cleared and all shapes drawn. But it has poor performance.
I was thinking that I should use XAML and binding. But I really don't know how to set that biding. Q: How to setup binding in XAML to display many small shapes whose coordinates are supplied in list with points.