How to Autosize a container like Grid on navigating away, change window size and navigate back on UWP?

Dave 1 Reputation point

I have a landing page that has a Grid to layout various visual elements. All works fine as expected when resizing the window on UWP.
If however I navigate away from that page, change the window bounds (width and height) and navigate back to the first page, the container doesn't autosize to the new ContentPage bounds. Sorry, this looks like an elementary question and only came up for UWP as there is a need to resize the window size.

Landing page: A Grid as child of ContentPage with HorizontalOptions and VerticalOptions and FillAndExpand; assume size is (1024, 600) on a screen size of, say, (1920,1080).

Navigate away and back: Set the page navigated to any size other than (1024, 600) and then navigate back.
Issue: The Landing Page Grid doesn't adjust to the new page bounds while ContentPage assumes the new size. Grid (and its contents) therefore look odd as zoomed in or out.

Is it possible that containers like the Grid can autosize in such scenario? Or, do I need to use some coding for autosizing?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
{count} votes