コード例 #1
0
ファイル: RepeatBehavior.cs プロジェクト: yonglehou/Photon
 /// <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
ファイル: Storyboard.cs プロジェクト: yonglehou/Photon
 /// <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
ファイル: Storyboard.cs プロジェクト: yonglehou/Photon
 /// <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
ファイル: Storyboard.cs プロジェクト: yonglehou/Photon
 /// <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;
 }