Ejemplo n.º 1
0
        private void mouse_leftup(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Up");
            Button      myBorder    = sender as Button;           // myBorder is a Instance of Border
            Brush       labelDark   = myBorder.Background;
            Colorpicker colorPicker = new Colorpicker(labelDark); // Creating Objet Of ColorPicker

            myBorder.Background = colorPicker.lighter();
            //((Button)sender).Background = new SolidColorBrush(Color.FromRgb(51,51,51));
        }
Ejemplo n.º 2
0
        private void mouse_enter(object sender, RoutedEventArgs e)
        {
            Button      myBorder    = sender as Button;           // myBorder is a Instance of Border
            Brush       labelDark   = myBorder.Background;
            Colorpicker colorPicker = new Colorpicker(labelDark); // Creating Objet Of ColorPicker

            myBorder.Background = colorPicker.dark();
            // ((Button)sender).Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            //((Button)sender).Background = new SolidColorBrush(Color.FromRgb(200,200,200));
        }