wieslawsoltes / PanAndZoom

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

Nuget package fails compile, because packages are missing classes. #18

Closed AndrueCope closed 6 years ago

AndrueCope commented 6 years ago

It works but there's a problem when I zoom in the image expands outside of its original area and fills the entire window. Xaml also attached.

Images attached. Note how the image 'underlaps' the buttons when zoomed in :-/ afterzoom before

PictureViewer.txt

wieslawsoltes commented 6 years ago

Set ClipToBounds="True" on control or parent.

https://github.com/wieslawsoltes/PanAndZoom/blob/c93ea85be8ec5042d0f045fad241e9bac363a921/samples/WpfDemo/MainWindow.xaml#L52

AndrueCope commented 6 years ago

Thank you!