Ejemplo n.º 1
0
        public void BeginAnimation(IAnimatable Item, DependencyProperty dp, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue)
        {
            object FromValue, ToValue;

            CuxExtentCommon.GetValues(m_AniUKF, out FromValue, out ToValue);
            CuxExtentCommon.BeginAnimation(Item, dp, m_AniUKF, FromValue, ToValue, OnCompleted, SetExtentValue);
        }
Ejemplo n.º 2
0
        public static void CuxTransformAnimation <T>(FrameworkElement Item, DependencyProperty dp, double FromValue, double ToValue, double Second, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue) where T : Transform, new()
        {
            T Transform = CuxExtentCommon.GetRTInstance <T>(Item);

            if (Transform != null)
            {
                CuxAnimation.CuxDoubleAnimation(Transform, dp, FromValue, ToValue, Second, OnCompleted, SetExtentValue);
            }
        }
Ejemplo n.º 3
0
        public void BeginAnimation(FrameworkElement Item, DependencyProperty dp, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue)
        {
            T Transform = CuxExtentCommon.GetRTInstance <T>(Item);

            if (Transform != null)
            {
                base.BeginAnimation(Transform, dp, OnCompleted, SetExtentValue);
            }
        }
Ejemplo n.º 4
0
        public static void CuxThicknessAnimation(IAnimatable Item, DependencyProperty dp, Thickness ToValue, double Second, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue)
        {
            ThicknessAnimation Ani = new ThicknessAnimation(ToValue, new Duration(TimeSpan.FromSeconds(Second)));

            CuxExtentCommon.BeginAnimation(Item, dp, Ani, null, ToValue, OnCompleted, SetExtentValue);
        }
Ejemplo n.º 5
0
        public static void CuxDoubleAnimation(IAnimatable Item, DependencyProperty dp, double FromValue, double ToValue, double Second, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue)
        {
            DoubleAnimation Ani = new DoubleAnimation(FromValue, ToValue, new Duration(TimeSpan.FromSeconds(Second)));

            CuxExtentCommon.BeginAnimation(Item, dp, Ani, FromValue, ToValue, OnCompleted, SetExtentValue);
        }