Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Prevent fitting content of Swipe to reveal Grid's view

$
0
0

I've created a grid consisting of two columns and one row. At the initial state, the left column width is 0* and the right is 100*. I wrote a custom renderer for the grid and overrode OnTouchEvent to make the grid swipeable by changing the grid's columns' width when I swipe to right. I added this custom grid as a DataTemplate of a ListView to give the swipe to reveal effect for each element.

The problem is, when the columns' width are changed, the views inside the right column fills the space instead of going outside the visible screen as expected. For example, when I swipe right the labels inside the right column begin to fit the space that's getting smaller instead of staying in place and going outside the screen's boundaries. How can I prevent this behavior?

Maybe even a more important question, should I use another layout for swipe to reveal behavior?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>