You can set the initial volume setting of the C1MediaPlayer control by setting the C1MediaPlayer.Volume property to a value between 0 and 1. In this topic, you will set the volume so that it's at its midway point upon page load.
At Design Time
To set the volume, complete the following steps:
In XAML
To set the volume, complete the following steps:
Volume="0.5"
to the <c1mediaplayer:C1MediaPlayer> tag so that the markup resembles the following:
<c1mediaplayer:C1MediaPlayer Name="C1MediaPlayer1" Volume="0.5">
In Code
To set the volume, complete the following steps:
Visual Basic |
Copy Code
|
---|---|
C1MediaPlayer1.Volume = 0.5 |
C# |
Copy Code
|
---|---|
c1MediaPlayer1.Volume = 0.5; |