Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Is it possible to place two buttons side by side in a Grid cell?

SuperSimonSuperSimon Member
edited November 2018 in Xamarin.Forms

Hey guys,

I am currently trying to create a simple calendar, which uses a GridLayout, where each event is placed as a button in the correct cell.
When there are two buttons placed in the same grid cell, they stack on top of each other instead of side-by-side. Is it possible to get them to fit the cell side by side and in this case, how? Preferably without adding a stacklayout to the cell first.

Apparently I cannot post pictures, as I am new at this forum.
Sorry

Thanks,

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭

    @SuperSimon said:
    Hey guys,

    I am currently trying to create a simple calendar, which uses a GridLayout, where each event is placed as a button in the correct cell.
    When there are two buttons placed in the same grid cell, they stack on top of each other instead of side-by-side. Is it possible to get them to fit the cell side by side and in this case, how? Preferably without adding a stacklayout to the cell first.

    Apparently I cannot post pictures, as I am new at this forum.
    Sorry

    Thanks,

    Sounds like you want to use a StackLayout within the cell, with Orientation set to Horizontal.

  • ColeXColeX Member, Xamarin Team Xamurai

    GridLayout ? Are you developing android in Xamarin.forms ? Can you post your code ?

Sign In or Register to comment.