I'm trying to bind the size of a Grid to the size of the parent container (Relativepanel with size on auto, named 'MainPanel') in the XAML of a Page like this:
<Grid Width="{Binding ElementName=MainPanel, Path=ActualWidth}">
After doing so, it works in the Designer, but as soon as I run the App it shrinks again (and does so in the Designer).
I've also tried:
<Grid Width="{Binding ActualWidth, ElementName=MainPanel}">
And removed all of my code interacting with the controls.
What is the problem here? (Universal Windows App in VS 2019)