Ejemplo n.º 1
0
        }//ButtonUp method ends here

        private void ButtonLeave(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("ButtonLeave");
            Button      myButton    = sender as Button;
            Brush       buttonDark  = myButton.Background;
            Colorpicker colorPicker = new Colorpicker(buttonDark);

            myButton.Background = colorPicker.light();
        }
Ejemplo n.º 2
0
        }//Label Mouse Enter Event End Here

        private void mouseleaveLabel(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Exit");
            Label mylabel    = sender as Label;
            Brush labelLight = new SolidColorBrush();

            labelLight = mylabel.Background;
            Colorpicker colorPicker = new Colorpicker(labelLight);

            mylabel.Background = colorPicker.light();
        }//Label Mouse Leave Event End Here