Exemple #1
0
        }//Button Down method ends here

        private void ButtonUp(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Button Up");

            Button      myButton    = sender as Button;
            Brush       buttonDark  = myButton.Background;
            Colorpicker colorPicker = new Colorpicker(buttonDark);

            myButton.Background = colorPicker.lighter();
        }//ButtonUp method ends here
Exemple #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
Exemple #3
0
        }//Method For Focus End Here

        private void mouseenterLabel(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Enter");
            Label mylabel   = sender as Label;       // myBorder is a Instance of Border
            Brush labelDark = new SolidColorBrush(); // Creating Object Of Brush

            labelDark = mylabel.Background;
            Colorpicker colorPicker = new Colorpicker(labelDark);// Creating Objet Of ColorPicker

            mylabel.Background = colorPicker.dark();
        }//Label Mouse Enter Event End Here