Beispiel #1
0
        private void OnSliderColorValueChanged(object sender, ValueChangedEventArgs e)
        {
            var v        = e.NewValue / 255.0;
            var newColor = Color.FromRgb(v, v, v);

            ButtonGradientEffect.SetGradientColor(buttonClick, newColor);
        }
Beispiel #2
0
        private void OnSliderColorValueChanged(object sender, ValueChangedEventArgs e)
        {
            Color gradColor = new Color(e.NewValue / 255.0, e.NewValue / 255.0, e.NewValue / 255.0);

            ButtonGradientEffect.SetGradientColor(buttonClick, gradColor);
        }