Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-animate-a-3-d-rotation-using-storyboards.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.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
Storyboards [WPF]
3D translations [WPF], animating [WPF], with Storyboards
animation [WPF], 3D translations [WPF], with Storyboards
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]

See also