Here is the problem that has been with me for the past several days. I have 10000+ Line
objects on a Canvas
and a Slider
that I use to scale the canvas to create a zoom effect.
Everything is OK and the performance is great.
The only thing that bothers me is that the StrokeThickness
of the Line
gets scaled too. I tried to Bind
the StrokeThickness
to the inverse of the slider's value so that I get a uniform thickness whenever I move the slider. This worked but has decreased the performance substantially.
Is there any other way that would be suitable to this situation. I want to have a zero-width line thickness no matter how far I scale the canvas (like in CAD programs).