C1MediaPlayer Task-Based Help > Looping Media Files |
By default, the C1MediaPlayer control will automatically run through its item list only once. But if you'd prefer to have the player continuously loop through its items, you can set the C1MediaPlayer.IsLooping property to True.
At Design Time
To turn on looping, complete the following steps:
In XAML
To turn on looping, add IsLooping="True" to the <c1mediaplayer:C1MediaPlayer> tag so that the markup resembles the following:
<c1mediaplayer:C1MediaPlayer Name="C1MediaPlayer1" IsLooping="True">
In Code
To turn on looping, complete the following steps:
Visual Basic |
Copy Code
|
---|---|
C1MediaPlayer1.IsLooping = True
|
C# |
Copy Code
|
---|---|
c1MediaPlayer1.IsLooping = true;
|