DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View 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;
}
}
}