private async void VolumeUpWrapper_Tapped(object sender, TappedRoutedEventArgs e) { int currentVolume = await Applikation.GetVolume(); await Applikation.SetVolume(++currentVolume); SetVolumeSliderValue(currentVolume); }
async void timer_Tick(object sender, object e) { int value = (int)Math.Round(VolumeSlider.Value); await Applikation.SetVolume(value); timer.Stop(); timer.Tick -= timer_Tick; }
private async void VolumeSlider_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { double doubleValue = VolumeSlider.Value; int value = (int)Math.Round(doubleValue); int newValue = await Applikation.SetVolume(value); }
private async void slider_PointerReleased(object sender, PointerRoutedEventArgs e) { int value = (int)Math.Round(VolumeSlider.Value); await Applikation.SetVolume(value); }