Reputation: 393
I need to create a control that would allow a user to manipulate (reposition, rotate) shapes (widgets?) inside a canvas control. The shapes can vary: triangle, square, even geometric paths and could potentially have thousands of them inside the canvas.
The shapes' attributes are bound to strongly-typed classes that indicate positioning, angle of rotation, etc.
My current thought is:
Am I on the right track or way off? Are there similar samples out there (I tried looking, but maybe not enough).
Upvotes: 0
Views: 109
Reputation: 31724
If there's any chance to have item count ranging in thousands - I'd recommend using DirectX or Direct2D. You can still use C# if you use SharpDX or Win2D but XAML doesn't have the performance to move so many elements around.
Upvotes: 2