On button_click
I have to mute or unmute the sound. It works fine, but I would like to set slider value after unmuting to the value it was before muting and not to a fixed 0.7.
private void btnMute_Click(object sender, RoutedEventArgs e)
{
if (slider.Value <= 0.0)
{
slider.Value = 0.7;
btnMute.Content = "Mute";
}
if (slider.Value > 0.0)
{
slider.Value = 0.0;
btnMute.Content = " UnMute";
}
}