예제 #1
0
 /// <summary>
 /// Determines whether or not the animation should be repeated
 /// </summary>
 /// <param name="animation">The <see cref="Animation{T}"/> to check</param>
 /// <returns>A boolean indicating whether or not the animation should be repeated</returns>
 public bool RepeatAnimation(AnimationTimeline animation)
 {
     switch (this.Mode)
     {
         case RepeatMode.Forever:
             return true;
         default:
             return false;
     }
 }
예제 #2
0
 /// <summary>
 /// Sets the targeted <see cref="DependencyProperty"/> of the specified <see cref="AnimationTimeline"/>
 /// </summary>
 /// <param name="animation">The <see cref="AnimationTimeline"/> for which to set the specified targeted property</param>
 /// <param name="property">The <see cref="AnimationTimeline"/>'s targeted <see cref="DependencyProperty"/></param>
 public static void SetTargetProperty(AnimationTimeline animation, DependencyProperty property)
 {
     animation.TargetProperty = new PropertyPath(new DependencyProperty[] { property });
 }
예제 #3
0
 /// <summary>
 /// Sets the targeted <see cref="DependencyProperty"/> of the specified <see cref="AnimationTimeline"/>
 /// </summary>
 /// <param name="animation">The <see cref="AnimationTimeline"/> for which to set the specified targeted property</param>
 /// <param name="propertyPath">The <see cref="AnimationTimeline"/>'s targeted <see cref="PropertyPath"/></param>
 public static void SetTargetProperty(AnimationTimeline animation, PropertyPath propertyPath)
 {
     animation.TargetProperty = propertyPath;
 }
예제 #4
0
 /// <summary>
 /// Sets the target <see cref="DependencyObject"/> of the specified <see cref="AnimationTimeline"/> 
 /// </summary>
 /// <param name="animation">The <see cref="AnimationTimeline"/> for which to set the specified target</param>
 /// <param name="target">The <see cref="AnimationTimeline"/>'s target <see cref="DependencyObject"/></param>
 public static void SetTarget(AnimationTimeline animation, DependencyObject target)
 {
     animation.Target = target;
 }