在中间开始一个Xamarin.Forms动画(循环)

时间:2019-02-07 16:55:47

标签: animation xamarin xamarin.forms

我正在 import CoreData class var sortedCourses: [Course] { let fetchRequest: NSFetchRequest<Course> = self.fetchRequest() fetchRequest.sortDescriptor = NSSortDescriptor(keyPath: \Course.coursename, ascending: true) return (try? pc.fetch(fetchRequest)) ?? [] } 调用中循环玩Animation类,我想给它加个香料:

  

我可以在中间开始播放(循环播放)动画吗?

假设我有以下代码可以在5秒内循环播放动画:

Commit

这将使处理程序// Time in seconds maxTime = 5; animation = new Animation(Animation_Handler, 0.0, maxTime * 1000); animation.Commit(owner: this, name: "test_animation", length: maxTime * 1000, repeat: () => true, easing: Easing.Linear); 以参数Animation_Handler开头,并被调用直到t = 0,然后以零再次调用。

是否可以从不为零的时间t = maxTime * 1000开始制作动画,避免在动画代码中进行时移手动制作

0 个答案:

没有答案