* 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.8 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to: Animate a 3D Rotation Using Storyboards | 03/30/2017 |
|
1020e44e-e21e-49a8-be53-53cbc1910e83 |
How to: Animate a 3D Rotation Using Storyboards
The following example shows how to make a 3D object rotate while it "wobbles" by animating the xref:System.Windows.Media.Media3D.AxisAngleRotation3D.Angle%2A and xref:System.Windows.Media.Media3D.AxisAngleRotation3D.Axis%2A properties of an xref:System.Windows.Media.Media3D.AxisAngleRotation3D object. This xref:System.Windows.Media.Media3D.AxisAngleRotation3D object specifies the rotation transform of the 3D object and so animating its properties creates the desire rotation effect. Within the Storyboard, xref:System.Windows.Media.Animation.DoubleAnimation is used to animate the xref:System.Windows.Media.Media3D.AxisAngleRotation3D.Angle%2A property while xref:System.Windows.Media.Animation.Vector3DAnimation is used to animate the xref:System.Windows.Media.Media3D.AxisAngleRotation3D.Axis%2A property.
Example
[!code-xamlAnimation3DGallery_snip#Rotate3DUsingAxisAngleRotation3DExampleWholePage]