Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-specify-whether-a-timeline-automatically-reverses.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

14 lines
1.2 KiB
Markdown

---
title: "How to: Specify Whether a Timeline Automatically Reverses"
ms.date: "03/30/2017"
helpviewer_keywords:
- "AutoReverse property of timelines [WPF]"
- "Timelines [WPF], AutoReverse property"
ms.assetid: 1648dd90-1bee-409a-ac69-ac729867f557
---
# How to: Specify Whether a Timeline Automatically Reverses
A timeline's <xref:System.Windows.Media.Animation.Timeline.AutoReverse%2A> property determines whether it plays in reverse after it completes a forward iteration. The following example shows several animations with identical duration and target values, but with different <xref:System.Windows.Media.Animation.Timeline.AutoReverse%2A> settings. To demonstrate how the <xref:System.Windows.Media.Animation.Timeline.AutoReverse%2A> property behaves with different <xref:System.Windows.Media.Animation.Timeline.RepeatBehavior%2A> settings, some animations are set to repeat. The last animation shows how the <xref:System.Windows.Media.Animation.Timeline.AutoReverse%2A> property works on nested timelines.
## Example
[!code-xaml[timingbehaviors_snip#AutoReverseAndRepeatBehaviorExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/timingbehaviors_snip/CSharp/AutoReverseExample.xaml#autoreverseandrepeatbehaviorexamplewholepage)]