Example #1
0
        private async void VolumeUpWrapper_Tapped(object sender, TappedRoutedEventArgs e)
        {
            int currentVolume = await Applikation.GetVolume();

            await Applikation.SetVolume(++currentVolume);

            SetVolumeSliderValue(currentVolume);
        }
Example #2
0
        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);
 }
Example #4
0
 private async void slider_PointerReleased(object sender, PointerRoutedEventArgs e)
 {
     int value = (int)Math.Round(VolumeSlider.Value);
     await Applikation.SetVolume(value);
 }