Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private DoubleAnimation AnimateCursor = new DoubleAnimation();
- private Storyboard CursorAnimation = new Storyboard();
- AnimateCursor.From = 0;
- AnimateCursor.To = 1150;
- AnimateCursor.Duration = new Duration(TimeSpan.FromSeconds(30));
- AnimateCursor.RepeatBehavior = RepeatBehavior.Forever;
- Storyboard.SetTargetName(AnimateCursor, "timeCurLine");
- Storyboard.SetTargetProperty(AnimateCursor, new PropertyPath(Canvas.LeftProperty));
- CursorAnimation.Children.Add(AnimateCursor);
- public void StartNavCursor() => CursorAnimation.Begin(timeCurLine);
- public void StopNavCursor() => CursorAnimation.Stop(timeCurLine);
Add Comment
Please, Sign In to add comment