public AnimationClock(AnimationTimeline animation, bool controllable) : this(NoesisGUI_PINVOKE.new_AnimationClock(AnimationTimeline.getCPtr(animation), controllable), true) { if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } }
public void BeginAnimation(DependencyProperty dp, AnimationTimeline animation, HandoffBehavior handoffBehavior) { if (dp == null) { throw new ArgumentNullException("dp"); } if (animation != null && !animation.IsValidTarget(dp)) { throw new ArgumentException("AnimationTimeline type mismatch: " + animation.GetType() + " on property " + dp.OwnerType.GetType() + "." + dp.Name + " of type " + dp.PropertyType); } if (base.IsFrozen) { throw new InvalidOperationException("Resource is frozen and cannot be animated"); } if (animation == null) { base.ClearAnimation(dp); } else { Storyboard storyboard = new Storyboard(); storyboard.Children.Add(animation); storyboard.Begin(FrameworkElement.FindTreeElement(this), handoffBehavior); } }
public AnimationClock(AnimationTimeline animation, bool controllable) : this(NoesisGUI_PINVOKE.new_AnimationClock(AnimationTimeline.getCPtr(animation), controllable), true) { #if UNITY_EDITOR || NOESIS_API if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } #endif }
internal static HandleRef getCPtr(AnimationTimeline obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
public AnimationClock(AnimationTimeline animation, bool controllable) : this(NoesisGUI_PINVOKE.new_AnimationClock(AnimationTimeline.getCPtr(animation), controllable), true) { }
public void BeginAnimation(DependencyProperty dp, AnimationTimeline animation) { this.BeginAnimation(dp, animation, HandoffBehavior.SnapshotAndReplace); }