Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Animating "panel" sliding left or right and proper dimensioning the rest

$
0
0

Hi. I've an issue I can't find a proper solution.
I've a Content Page and I'd like to divide it in left, center, right with "panels" where "panel" could be any of the common layout controls (let's say grid or stack layout), I don't really care.

The center panel is always visibile, while the left OR the right one are visible if the user select something in the center. If the left and right are not visible, center cover the whole width otherwise left or right are 2/3 and center 1/3 with content adjusted in the new width.
This is quite easy to achieve either through stack layout or grid. But I'd like to animate left or right panel when they come in while re-dimensioning the center panel.

I've tried some solutions: the main problem seems to be the fact when left (or right) panel are set with "WidthRequest = Width * 2 /3" suddenly center panel become 1/3 (of course).
In this forum I've found a solution with a relative layout but the animations just slide the view so the center panel is not re-dimentioned but just slide toward left or right (I can't manage to find the reference.. sorry).

So do you think there's a solution or at the time it's not quite possible?

Any help is welcome, thanks!


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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