wieslawsoltes / PanAndZoom

Pan and zoom control for Avalonia.
http://wieslawsoltes.github.io/PanAndZoom/
MIT License
337 stars 44 forks source link

When large content is used the render area is not updated correctly #15

Closed ahancock1 closed 6 years ago

ahancock1 commented 6 years ago

When the content is large say 3222x3222 pixels and the render area is considerably less, the contents render area is not updated correctly. I'll fork the latest branch and create a pull request later today.

wieslawsoltes commented 6 years ago

@ahancock1 I could not reproduce this issue on my machine.

2017-11-27_15-52-43

ahancock1 commented 6 years ago

It seems the issue is i wasn't using a Canvas. If you change that Canvas to a Grid, you might see the behaviour i'm seeing which is where only a portion of the content is rendered.

wieslawsoltes commented 6 years ago

@ahancock1 Grid layout in WPF is causing all sorts of issues. I have same control for Avalonia and works as expected.

ahancock1 commented 6 years ago

No trouble, thanks for looking into this. I settled to using Canvas in the end as i couldn't get a work around working with the Grid

wieslawsoltes commented 6 years ago

I did try to get Grid working but WPF layout and transforms are just to unpredictable and so many special cases exists that it would take a lot of time.

wieslawsoltes commented 6 years ago

Closing as I could not find solution.