Resize All Child Views When Resizing GridLayout

Nathan Sokalski 4,111 Reputation points
2023-02-28T03:28:26.6266667+00:00

I have a simple GridLayout with several child View(s). I need the widths & heights of the child View(s), as well as any of their attributes (such as font size, margin, padding, etc.), to be relative to the width/height of the GridLayout. Right now, all child View(s), as well as the GridLayout itself, have fixed widths & heights to maintain these ratio. However, the GridLayout will be dynamically resized depending on the layout of the page, and I want the GridLayout AND it's children to be resized. This obviously does not happen when the GridLayout has a fixed size. How can I dynamically resize the GridLayout AND it's children?

Developer technologies | .NET | Xamarin
Developer technologies | .NET | Other
{count} votes

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.