コード例 #1
0
 public static EaseObject XTo(this UIElement obj, double X, double time, PercentHandler transition, double delay)
 {
     return(ArtefactAnimator.AddEase(obj, AnimationTypes.X, X, time, transition, delay));
 }
コード例 #2
0
 public static EaseObject AutoAlphaCollapsedTo(this UIElement obj, double alpha, double time, PercentHandler transition, double delay)
 {
     ArtefactAnimator.StopEase(obj, new string[] { AnimationTypes.Alpha, AnimationTypes.AutoAlpha, AnimationTypes.AutoAlphaCollapsed });
     return(ArtefactAnimator.AddEase(obj, AnimationTypes.AutoAlphaCollapsed, alpha, time, transition, delay));
 }
コード例 #3
0
 //  instant
 public static void AutoAlphaCollapsedTo(this UIElement obj, double alpha)
 {
     ArtefactAnimator.StopEase(obj, new string[] { AnimationTypes.Alpha, AnimationTypes.AutoAlpha, AnimationTypes.AutoAlphaCollapsed });
     obj.Opacity    = alpha;
     obj.Visibility = alpha > 0 ? Visibility.Visible : Visibility.Collapsed;
 }
コード例 #4
0
 /// <summary>
 /// Sets and Returns Model3D.Transform with Children in standard order [ TranslateTransform3D, ScaleTransform3D, RotateTransform3D, ... ]
 /// </summary>
 public static Transform3DGroup NormalizeTransform3DGroup(this Camera obj)
 {
     obj.Transform = ArtefactAnimator.NormalizeTransform3DGroup(obj.Transform as Transform3DGroup);
     return(obj.Transform as Transform3DGroup);
 }
コード例 #5
0
 /// <summary>
 /// Get Model3D.Transform with Children in standard order [ TranslateTransform3D, ScaleTransform3D, RotateTransform3D, ... ]
 /// </summary>
 public static Transform3DGroup NormalizedTransform3DGroup(this Model3D obj)
 {
     return(ArtefactAnimator.NormalizeTransform3DGroup(obj.Transform as Transform3DGroup));
 }
コード例 #6
0
        // UTILS



        /// <summary>
        /// Get FrameworkElement.RenderTransform with Children in standard order [ ScaleTransform, SkewTransform, RotateTransform, TranslateTransform, ... ]
        /// </summary>
        public static TransformGroup NormalizedTransformGroup(this FrameworkElement element)
        {
            return(ArtefactAnimator.NormalizeTransformGroup(element));
        }
コード例 #7
0
 public static EaseObject DimensionsTo(this UIElement obj, double width, double height, double time, PercentHandler transition, double delay)
 {
     return(ArtefactAnimator.AddEase(obj, new[] { AnimationTypes.Width, AnimationTypes.Height }, new object[] { width, height }, time, transition, delay));
 }
コード例 #8
0
 public static EaseObject SlideTo(this UIElement obj, double x, double y, double time, PercentHandler transition, double delay)
 {
     return(ArtefactAnimator.AddEase(obj, new[] { AnimationTypes.X, AnimationTypes.Y }, new object[] { x, y }, time, transition, delay));
 }