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.
好吧,标准的 DoubleAnimation 似乎不再起作用了 - Duration 没有参数。
有没有办法以编程方式而不是 XAML 编写动画?
您不能再直接创建持续时间。您需要使用辅助类来创建持续时间。
d.Duration = DurationHelper.FromTimeSpan(TimeSpan.FromSeconds(1));