Tech
Forums
Jobs
Books
Events
Conference
Annual Conference
Bcrypt
Live
Learn
More
Training
Interviews
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Slider Control to maintain Volume
Sarva Siddartha
Dec 15 2015 2:21 AM
446
Reply
Hello,
I am just making an simple media player application. In that I am trying to keep a Slider in order to maintain the volume of the audio. But I am getting an exception like object reference not set to instance of a object
The code is like below:
//volrocker is name of the slider
//me is the name of the media player
private void volrocker_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (me.IsMuted)
{
me.IsMuted = false;
}
if (me.Volume > 0)
{
me.Volume -= volrocker.Value;
}
}
Help me in writing the code..........
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Rearranging ListView and GridView columns in Winrt, UWP xaml
Submenu in HamBurgerMenu OR Using Spiltview Control