* 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
2.1 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to: Animate a 3D Rotation Using Key Frames (QuaternionAnimationUsingKeyFrames) | 03/30/2017 |
|
09e5707b-7523-4a08-9aa7-bb13cbedccdf |
How to: Animate a 3D Rotation Using Key Frames (QuaternionAnimationUsingKeyFrames)
In the following example, xref:System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames is used to make a 3D object rotate. This animation uses the following key frames:
-
xref:System.Windows.Media.Animation.LinearRotation3DKeyFrame is used to create a smooth, linear interpolation between values.
-
xref:System.Windows.Media.Animation.DiscreteRotation3DKeyFrame is used to create sudden "jumps" between values (no interpolation).
-
xref:System.Windows.Media.Animation.SplineRotation3DKeyFrame is used to create a variable transition between values depending on the xref:System.Windows.Media.Animation.SplineRotation3DKeyFrame.KeySpline%2A property. In the example below, this part of the animation starts off slow but toward the end of the time segment, speeds up exponentially.
Example
[!code-xamlAnimation3DGallery_snip#QuaternionAnimationUsingKeyFramesExampleWholePage]