0
我有一个组合框,我想动态地将MaxDropDownHeight属性绑定到第二行高度。WPF将MaxDropDownHeight属性绑定到网格行高度
这里的XAML:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="6*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ComboBox MaxDropDownHeight="">
</ComboBox>
</Grid>
我怎么能这样做?