TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Red Naw
NA
1
0
WPF MatrixAnimationUsingPath
Sep 15 2008 5:14 PM
Hi
I´m trying to make an ellipse move along a path and there are some things I don´t get. What I don´t get is the positioning of the ellipse path. It moves along the path but not on the path. Actully it moves like an inch below. Why? They have the same pathgeo. Can anyone help me out?
I just have an ellipse and a path in my wpf app and the code looks like this.
private void button1_Click(object sender, RoutedEventArgs e)
{
MatrixAnimationUsingPath anima = new MatrixAnimationUsingPath();
MatrixTransform xform = new MatrixTransform();
PathGeometry pathGeo = path1.Data.GetFlattenedPathGeometry();
e1.RenderTransform = xform;
anima.PathGeometry = pathGeo;
anima.BeginTime = TimeSpan.FromSeconds(0);
xform.BeginAnimation(MatrixTransform.MatrixProperty, anima);
}
Rednaw
Reply
Answers (
0
)
RoutedEvent from Window to UserControl
May I render animation to multiple bitmaps?