In the code-behind of a XAML page I'm checking whether a text field from my model is null, if not I update a labels text property with the field, if it is null I want to completely remove it from the XAML.
At first I tried to set the IsVisible to false and the HeightRequest to 0, but I could still see the space in the stackLayout where the label would have been, so I tried removing inner stack that contains the label from the main stack
TopStack.Children.Remove(addressStack);
But again I can still see a space where the removed stack would have been.
I there a way to remove the inner stack completely, including the space it would have occupied?
InvalidateMeasureafter removal - Gerald VersluisParentStack.ForceLayout()after setParentStack.Children[X].IsVisible = false;? - Diego Rafael Souza