Resize All Child Views When Resizing GridLayout

Nathan Sokalski 4,126 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?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,648 questions
{count} votes