mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* 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
1.7 KiB
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 |
|
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]