【发布时间】:2011-01-28 09:09:22
【问题描述】:
如何在 C# 代码中将 WPF 控件的 Height 属性的值设置为“Auto”?
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
我想在后面的代码中重现这种行为。有什么想法吗?
【问题讨论】: