最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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>
发布评论

评论列表(0)

  1. 暂无评论