Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-animate-the-position-of-an-object-by-using-pointanimation.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.6 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Animate the Position of an Object by Using PointAnimation 03/30/2017
csharp
vb
graphics [WPF], animation
animation [WPF], PointAnimation
42310977-cc90-438a-8a47-0345898e01be

How to: Animate the Position of an Object by Using PointAnimation

This example shows how to use the xref:System.Windows.Media.Animation.PointAnimation class to animate an object along a xref:System.Windows.Shapes.Path.

Example

The following example moves an ellipse along a xref:System.Windows.Shapes.Path from one point on the screen to another. The example animates the position of an xref:System.Windows.Media.EllipseGeometry by using xref:System.Windows.Media.Animation.PointAnimation to animate the xref:System.Windows.Media.EllipseGeometry.Center%2A property.

[!code-csharpBasicAnimations_snip#PointAnimationWholePage] [!code-vbBasicAnimations_snip#PointAnimationWholePage]

See also