A solution given to me on another question was to write and add a custom easing function to my UWP code. The example provided was this piece of code:
public class StepEasingFunction : EasingFunctionBase
{
public double NormalizedStep { get; set; }
protected override Freezable CreateInstanceCore()
{
return new StepEasingFunction {NormalizedStep = NormalizedStep};
}
protected override double EaseInCore(double normalizedTime)
{
var stepIndex = Math.Round(normalizedTime / NormalizedStep);
return NormalizedStep * stepIndex;
}
}
I searched the web and try different ways to implement this code in my app but I'm not able to. I don't know if this code goes into my namespace or I need to create an external class.
If I put the code in my namespace I'm getting errors EaseInCore and CreateInstanceCore:
no suitable method found to override
and on Freezable:
Freezable does not exist in the namesape
I have read Microsoft and other sites info on easing functions but none shows a complete example on how to implement this in UWP C# code.
Any help would be appreciated.