Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么ActualWidthaDataGridColumn的值不受更改其Width属性值的影响,而是当我更改其值时MinWidth?换句话说,如何ActualWidth计算或更改?
ActualWidth
DataGridColumn
Width
MinWidth
使用之间实际上是有区别的:
double width = 25.0; myDataGridColumn.Width = width;
和:
double width = 25.0; myDataGridColumn.Width = new DataGridLength(width, DataGridLengthUnitType.Pixel);
最新的激活重新计算ActualWidth但不是第一个。
不知道为什么。