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

            await Applikation.SetVolume(++currentVolume);

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