So, I understand that I am deciding beyond the intended use of the canvas here and I may have to come up with a more manual solution. However, without being overly experienced in WPF, I was hoping there might be some solution that would allow me to continue to use the Canvas element and the functions that it gives you for free.
The problem revolves around the canvas, which is used to enlarge and reduce the image and the number of child controls that belong to the canvas. These child controls should be placed at different positions on the image, and thus Canvas works great in that it handles the entire layout / layout for me when I zoom in or out.
However, one of the drawbacks is that Canvas scales these child controls when I zoom in, causing them to become too large to be usable in practice. What I'm looking for is a solution that allows me to scale the image that belongs to the canvas without also increasing the size of the child controls, preferably processing the layout for me.
I tried to change the width and height of these child controls as the enlargement ratio increases or decreases, but there is a slight delay time, and it all looks a bit "jerky."
If it comes to me, I will just do all the zooming / panning / layout myself, but I thought I would ask first to make sure that I have nothing that would let me tell Canvas not to scale the size of certain controls. Thanks in advance.
Ed S. source
share