Ejemplo n.º 1
0
        public void Slider_PointerCaptureLost(object sender, PointerRoutedEventArgs e)
        {
            huegroup.setRGBValue((float)Red.Value, (float)Green.Value, (float)Blue.Value);
            SolidColorBrush color = new SolidColorBrush(huegroup.getColor());

            ColorChanger.Fill = color;
        }
Ejemplo n.º 2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     huegroup = (HueGroup)e.Parameter;
     NameLight.Text = huegroup.name;
     int r, g, b;
     huegroup.getRGBValue(out r, out g, out b);
     Red.Value = r;
     Green.Value = g;
     Blue.Value = b;
     SetOn.IsOn = huegroup.OnLamp;
     SolidColorBrush color = new SolidColorBrush(huegroup.getColor());
     ColorChanger.Fill = color;
 }
Ejemplo n.º 3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            huegroup       = (HueGroup)e.Parameter;
            NameLight.Text = huegroup.name;
            int r, g, b;

            huegroup.getRGBValue(out r, out g, out b);
            Red.Value   = r;
            Green.Value = g;
            Blue.Value  = b;
            SetOn.IsOn  = huegroup.OnLamp;
            SolidColorBrush color = new SolidColorBrush(huegroup.getColor());

            ColorChanger.Fill = color;
        }