Display random count of items in a screen

Aleksandrs Maksimovs 40 Reputation points
2023-03-17T18:59:24.8+00:00

I have a screen with random count of buttons.

I can place only 3 buttons in a row.

How can I move additional buttons to a new row? Like DIVs in HTML.

Ex. if you have 2 buttons, they are shown in a 1 row

if you have 4 - 3 in 1 row, 1 in 2d row

if 7- 3 in first, 3 in second, and 1 in 3d row.

Thanks!

Developer technologies | .NET | .NET MAUI
{count} votes

Accepted answer
  1. Viorel 122.6K Reputation points
    2023-03-18T17:41:57.9166667+00:00

    Consider putting your buttons inside the <FlexLayout Wrap="Wrap" > control.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.