Relative Content

Tag Archive for c#xamlmaui

View element accessed in code-behind is null when it should be initialized – why?

I have three classes involved in my problem. PopupView, CardView, and TestPopup. PopupView represents a base class for popups, and uses CardView, to display 3 ContentView linerally with header body and footer. TestPopup inherits PopupView which itself exposes a Body property that sets the CardView Body property with the latter.

Empty space between elements .NET MAUI

The entire page is a grid. I’m trying to position a child grid on top of the parent grid. This works on Android. On Apple up to iPhone 14 too. On iPhones 14 and 15, the space between the parent and child grids is displayed.