void SliderValueChanged(object sender, SubsonicDesign.SliderValueChangedEventArgs e)
        {
            //return;
            //if (SelectTextTime == null)
            //    return;

            //SelectTextTime.Text = e.NewValue.ToString("00");
            //SelectTextTime.Text = Slider.CurrentValue.ToString("00");
            if (Slider != null)
            {
                SetValue(Slider.CurrentValue);
            }

            return;

            if (SelectTextTime == TextHour)
            {
                //TimeValue = new TimeSpan((int) e.NewValue, TimeValue.Minutes, TimeValue.Seconds);
                //HourValue = e.NewValue.ToString(CultureInfo.InvariantCulture);
                TextHour.Text = e.NewValue.ToString("00");
            }
            else if (SelectTextTime == TextMinute)
            {
                //TimeValue = new TimeSpan(TimeValue.Hours, (int) e.NewValue, TimeValue.Seconds);
                TextMinute.Text = e.NewValue.ToString("00");
            }
            else if (SelectTextTime == TextSecond)
            {
                //TimeValue = new TimeSpan(TimeValue.Hours, TimeValue.Minutes, (int)e.NewValue);
                TextSecond.Text = e.NewValue.ToString("00");
            }
        }
        private void sliderValueChanged(object sender, SubsonicDesign.SliderValueChangedEventArgs e)
        {
            if (radialSliderModernRed != null)
            {
                byte red   = Convert.ToByte(radialSliderModernRed.CurrentValue);
                byte green = Convert.ToByte(radialSliderModernGreen.CurrentValue);
                byte blue  = Convert.ToByte(radialSliderModernBlue.CurrentValue);
                byte alpha = Convert.ToByte(radialSliderModernAlpha.CurrentValue);

                Dispatcher.BeginInvoke(() =>
                {
                    LayoutRoot.Background = new SolidColorBrush(Color.FromArgb(alpha, red, green, blue));
                });
            }
        }
Exemplo n.º 3
0
 private void ColorSlider_SliderValueChanged(object sender, SubsonicDesign.SliderValueChangedEventArgs e)
 {
     UpdateColor();
 }