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; }
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; }