--- 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 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 settings. To demonstrate how the property behaves with different settings, some animations are set to repeat. The last animation shows how the property works on nested timelines. ## Example [!code-xaml[timingbehaviors_snip#AutoReverseAndRepeatBehaviorExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/timingbehaviors_snip/CSharp/AutoReverseExample.xaml#autoreverseandrepeatbehaviorexamplewholepage)]