Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-animate-3-d-translations.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.7 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Animate 3D Translations 03/30/2017
animation [WPF], 3D translations
3D translations [WPF], animating
d4eece1f-0cd2-4a2c-8370-293354c380e4

How to: Animate 3D Translations

This topic demonstrates how to animate a translation transformation set on a 3D model.

The code below shows the application of a xref:System.Windows.Media.Media3D.TranslateTransform3D object to the xref:System.Windows.Media.Media3D.Model3D.Transform%2A property of a xref:System.Windows.Media.Media3D.GeometryModel3D.

[!code-xamlAnimation3DGallery_snip#Translation3DAnimationInline1]

The xref:System.Windows.Media.Media3D.TranslateTransform3D.OffsetX%2A property of this xref:System.Windows.Media.Media3D.TranslateTransform3D object is animated using the code below.

[!code-xamlAnimation3DGallery_snip#Translation3DAnimationInline2]

Example

The following code shows the entire sample.

[!code-xamlAnimation3DGallery_snip#Translation3DAnimationExampleWholePage]

See also