我利用一些WPF的估算,在垂直上将用户群迁移。
这里是法典
public void RestartAnimation(double contentControlHeight, double thisHeight)
{
if (cp != null && IsLoaded)
da.From = contentControlHeight;
da.To = -thisHeight;
da.RepeatBehavior = RepeatBehavior.Forever;
da.Duration = new Duration(TimeSpan.FromSeconds(this.Duration));
sb.Children.Clear();
sb.Children.Add(da);
Storyboard.SetTargetProperty(da, new PropertyPath("(Canvas.Top)"));
Storyboard.SetTarget(da, cp);
sb.Begin();
}
}
It works fine but I have discovered if the height is greater then the motion is faster.
因此,我需要认识到两点:
一些速度范围值为1-100(非常缓慢――超快),在内部,我需要一些<斯特隆>普图拉/科莱/斯特隆”。
I did some experiments with the static speed and different height and got some table.
请帮助我标出计算方法的。 我必须做的是仅仅确定速度范围(1-100年),并且不管怎么说,它应当做细微的工作。
谢谢你!