请更新GridRow上的MinHeight值 [英] HOw to update MinHeight value baed on GridRow

查看:70
本文介绍了请更新GridRow上的MinHeight值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我有以下布局:

在上面的图片中你可以看到我有 根网格,它基于2列和2行。

当行0和1的大小基于其内容时,我在第1列上有一个userControl,它的MinHeight需要设置到Row0和Row1的高度

In the picture on top you can see that I have  root grid which is based on 2 columns and 2 rows.
When rows 0 and 1 have a size based on their content , I have a userControl on the column 1 which have its MinHeight which need to be set to the Height of Row0 and Row1

当Row1的高度为0时,只有行0具有高度值,那时我需要将UserrControl MinHeight更新到所有time根据Row0或Row0 + Row1调整其默认值。

When Row1 have a height of 0, then only the Row 0 which have a Height value and at that time I need to get the UserrControl MinHeight update to all time gets its default value sized based on Row0 or Row0 + Row1.

任何想法如何根据第0列的高度更新UserControl的MinHeight?

示例将帮助

请注意,当为MinHeight设置默认值后,用户可以自由调整高度使用GridSplitter的垂直尺寸网格。

Please note that when after default value is set for MinHeight, user can freely adjust the height of the grid in vertical size suing a GridSplitter.

推荐答案

您的描述有点令人困惑。 你能告诉我们你现在使用的XAML(只是网格)吗?

Your description is a bit confusing.  Can you show us the XAML (just the grids) that you are using now?


这篇关于请更新GridRow上的MinHeight值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆