2
执行此代码后...为什么我不能在动画后修改对象?
DoubleAnimation a = new DoubleAnimation(newWidth, new Duration(...));
ThicknessAnimation b = new ThicknessAnimation(new Thickness(...), new Duration(...));
border.BeginAnimation(Border.MarginProperty, b);
border.BeginAnimation(Border.WidthProperty, a);
...此代码将不再有效(保证金不分配一个新的值后更改):
// doesn't have any effect
border.Margin = new Thickness(...);
这是怎么回事?谢谢!