mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +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
26 lines
1.1 KiB
Markdown
26 lines
1.1 KiB
Markdown
---
|
|
title: "How to: Repeat Media Playback"
|
|
ms.date: "03/30/2017"
|
|
helpviewer_keywords:
|
|
- "media [WPF], repeating playback"
|
|
- "repeating media playback [WPF]"
|
|
- "multimedia [WPF], repeating media playback"
|
|
- "playback of media [WPF], repeating"
|
|
ms.assetid: 02ab486d-c6b6-4918-9edd-45a12aca4683
|
|
---
|
|
# How to: Repeat Media Playback
|
|
This example shows how to playback media indefinitely, that is, to set media so that it plays in an infinite loop.
|
|
|
|
## Example
|
|
The following example uses <xref:System.Windows.Controls.MediaElement> and <xref:System.Windows.Media.MediaTimeline> in a <xref:System.Windows.Media.Animation.Storyboard> to play a media clip in an infinite loop.
|
|
|
|
[!code-xaml[MediaGallery_snippet#SoundRepeatExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/MediaGallery_snippet/CSharp/SoundRepeatExample.xaml#soundrepeatexamplewholepage)]
|
|
|
|
## See also
|
|
|
|
- <xref:System.Windows.Controls.MediaElement>
|
|
- <xref:System.Windows.Media.MediaTimeline>
|
|
- <xref:System.Windows.Media.Animation.Storyboard>
|
|
- [How-to Topics](audio-and-video-how-to-topics.md)
|
|
- [Graphics and Multimedia](index.md)
|