Ejemplo n.º 1
0
        public static bool StartAnimationInlineTranslate(VisualElement element, ref ComputedStyle computedStyle, StyleTranslate translate, int durationMs, int delayMs, Func <float, float> easingCurve)
        {
            var to     = translate.keyword == StyleKeyword.Initial ? InitialStyle.translate : translate.value;
            var result = element.styleAnimation.Start(StylePropertyId.Translate, computedStyle.transformData.Read().translate, to, durationMs, delayMs, easingCurve);

            if (result && (element.usageHints & UsageHints.DynamicTransform) == 0)
            {
                element.usageHints |= UsageHints.DynamicTransform;
            }

            return(result);
        }
Ejemplo n.º 2
0
        public static bool StartAnimationInlineTranslate(VisualElement element, ref ComputedStyle computedStyle, StyleTranslate translate, int durationMs, int delayMs, Func <float, float> easingCurve)
        {
            var to = translate.keyword == StyleKeyword.Initial ? InitialStyle.translate : translate.value;

            return(element.styleAnimation.Start(StylePropertyId.Translate, computedStyle.transformData.Read().translate, to, durationMs, delayMs, easingCurve));
        }
Ejemplo n.º 3
0
 /// <undoc/>
 public bool Equals(StyleTranslate other)
 {
     return(other == this);
 }