DotNet 4.8.1 build of DotNetBar
This commit is contained in:
49
PROMS/DotNetBar Source Code/Animation/AnimationInt.cs
Normal file
49
PROMS/DotNetBar Source Code/Animation/AnimationInt.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace DevComponents.DotNetBar.Animation
|
||||
{
|
||||
internal class AnimationInt : Animation
|
||||
{
|
||||
|
||||
#region Constructor
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Animation class.
|
||||
/// </summary>
|
||||
/// <param name="target">Target object for animation</param>
|
||||
/// <param name="targetPropertyName">Target property name for animation</param>
|
||||
public AnimationInt(AnimationEasing animationEasing, int animationDuration)
|
||||
:
|
||||
base(new AnimationRequest[0], animationEasing, animationDuration)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Animation class.
|
||||
/// </summary>
|
||||
/// <param name="target">Target object for animation</param>
|
||||
/// <param name="targetPropertyName">Target property name for animation</param>
|
||||
public AnimationInt(AnimationRequest animationRequest, AnimationEasing animationEasing, int animationDuration)
|
||||
:
|
||||
base(new AnimationRequest[] { animationRequest }, animationEasing, animationDuration)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Animation class.
|
||||
/// </summary>
|
||||
/// <param name="target">Target object for animation</param>
|
||||
/// <param name="targetPropertyName">Target property name for animation</param>
|
||||
public AnimationInt(AnimationRequest[] animationRequests, AnimationEasing animationEasing, int animationDuration)
|
||||
:
|
||||
base(animationRequests, animationEasing, animationDuration) { }
|
||||
#endregion
|
||||
|
||||
protected override object GetPropertyValueCorrectType(double value)
|
||||
{
|
||||
return (int)value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user