0

为什么ActualWidthaDataGridColumn的值不受更改其Width属性值的影响,而是当我更改其值时MinWidth?换句话说,如何ActualWidth计算或更改?

4

1 回答 1

0

使用之间实际上是有区别的:

double width = 25.0;
myDataGridColumn.Width = width;

和:

double width = 25.0;
myDataGridColumn.Width = new DataGridLength(width, DataGridLengthUnitType.Pixel);

最新的激活重新计算ActualWidth但不是第一个。

不知道为什么。

于 2010-09-15T15:27:49.897 回答