[C#] 纯文本查看 复制代码
/// </summary>
/// <param name="translation_control">需动画的组件</param>
/// <param name="mode">模式:0-弹性,2-惯性</param>
/// <param name="orientation">方向:0-正向,1-反向</param>
/// <param name="axis">轴:0-左右,1-上下</param>
/// <param name="delay">延时</param>
/// <param name="_begin">开始动画位置</param>
/// <param name="_end">结束动画位置</param>
/// <param name="amplitude">振幅</param>
/// <param name="suppression">硬度</param>
public void Translation(FrameworkElement translation_control, int mode, int orientation, int axis, double delay, double _begin, double _end, double amplitude = 8, double suppression = 3)
/// </summary>
/// <param name="main">在哪个Grid内</param>
/// <param name="width">组件宽度</param>
/// <param name="height">组件高度</param>
/// <param name="direction">方向:0-横向,1-纵向</param>
/// <param name="rotate_control">组件</param>
/// <param name="begin_angel">起始角度</param>
/// <param name="timeDelay">延时</param>
public CushionRotate(Grid main, double width, double height, int direction, UserControl rotate_control, double begin_angel, double timeDelay)
/// </summary>
/// <param name="mode">模式:0-弹性,1-惯性</param>
/// <param name="amplitude">振幅</param>
/// <param name="suppression">硬度</param>
public void Rotate(int mode, double amplitude = 8, double suppression = 3)