mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* 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
14 lines
1.2 KiB
Markdown
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)]
|