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(...);
這是怎麼回事?謝謝!