Forum Xamarin.Forms

Change Size within a ViewCell

JorgeRochaJorgeRocha USMember
edited August 2017 in Xamarin.Forms

Hello and good day, I'm too new to the world of Xmarin.

I need to know if it is possible to change the size of a StackLayout or Grid inside a ViewCell, I have a TapGestureRecognizer that in this I want to change the Size, specifically the Height of the row, that is to say that to give Tap to the row this will change of size .

Example Code:




  • N_BauaN_Baua INMember ✭✭✭✭✭
    edited August 2017

    @JorgeRocha ,

    Yes you can , (Do not set any height request to viewcell as you've shown in your code above.)

    Use the following code to achieve what you want.

      var StackTapped = (StackLayout)sender;
      if (StackTapped != null) {
         StackTapped.HeightRequest = StackTapped.Height + 50;

    Hope it helps,

    N Baua

Sign In or Register to comment.