Skip to content

How to do vertical alignment #649

Answered by MarcinZiabek
Puge96 asked this question in Q&A
Discussion options

You must be logged in to vote

The table layout structure takes minimal vertical space as possible. To achieve your requirement, please use the Row element.

.Height(200).Border(1).Row(row =>
{
    row.Spacing(50);

    row.RelativeItem().ExtendVertical().AlignTop().Height(50).Background(Placeholders.BackgroundColor());
    row.RelativeItem().ExtendVertical().AlignMiddle().Height(50).Background(Placeholders.BackgroundColor());
    row.RelativeItem().ExtendVertical().AlignBottom().Height(50).Background(Placeholders.BackgroundColor());
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Puge96
Comment options

@MarcinZiabek
Comment options

Answer selected by MarcinZiabek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants