In . NET MAUI when used data template and inside the data template when used grid or stack layout and inside it used label or any and setting the height for the label but not for parent (grid or stack layout). And when converted the data template to view using Createcontent() and trying to get the height request of the view , I am getting -1 , and when height is set to parent(grid or stack layout) , height is updated correctly, why and how to fix this
When setting the height request for child items in the data template, it is not updated for the parent, it should be updated
<Data template>
<Grid>
<Label Height request="50"/>
</Grid>
</Data Template>