ClipToBounds not working in Android
Posted: 06 Jan 2022, 16:33
Hi,
We are building for multiple platforms (Windows, Mac, iOS, Android, etc). In one view we have a collection of PNGs tiles that we pan and zoom around. This is basically a ItemsControl, inside a Canvas, Inside a Grid, with ClipToBounds="True" set on the Grid so that the PNGs do not show up outside of the confines of the Grid.
This works fine except on our Android test device, where the PNGs show up outside the confines of the Grid.
Any idea what this might be or where to start looking on this? We just don't get how it can work everywhere else!
Many thanks.
We are building for multiple platforms (Windows, Mac, iOS, Android, etc). In one view we have a collection of PNGs tiles that we pan and zoom around. This is basically a ItemsControl, inside a Canvas, Inside a Grid, with ClipToBounds="True" set on the Grid so that the PNGs do not show up outside of the confines of the Grid.
This works fine except on our Android test device, where the PNGs show up outside the confines of the Grid.
Any idea what this might be or where to start looking on this? We just don't get how it can work everywhere else!
Many thanks.