c# - In .Net MAUI when used data template the child height is not updated to parent height - Stack Overflow

In . NET MAUI when used data template and inside the data template when used grid or stack layout and i

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>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744273437a4566213.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信