摘要:
这几天写代码的时候一直被一个奇怪的现象困扰:明明是看起来没有任何问题的C#代码,目的是实现在程序中水平移动一个按钮。代码是如此写的: Storyboard s = new Storyboard(); DoubleAnimation da = new DoubleAnimation(); da.To = 100; da.Duration = TimeSpan.FromSeconds(0.1); Storyboard.SetTarget(da, t); //此处t为TranslateT... 阅读全文