wieslawsoltes / PanAndZoom

Pan and zoom control for Avalonia.

Home Page:http://wieslawsoltes.github.io/PanAndZoom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ahancock1 opened this issue · comments

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.

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

2017-11-27_15-52-43

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.

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

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

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.

Closing as I could not find solution.