Esempio n. 1
0
        private void mouseenterBadge(object sender, RoutedEventArgs e)
        {
            Label mybadge   = sender as Label;       // myBorder is a Instance of Border
            Brush badgeDark = new SolidColorBrush(); // Creating Object Of Brush

            badgeDark = mybadge.Background;
            Colorpicker colorPicker = new Colorpicker(badgeDark);// Creating Objet Of ColorPicker

            mybadge.Background = colorPicker.dark();
        }//Badge Mouse Enter Event End Here
Esempio n. 2
0
        }//Badge Mouse Enter Event End Here

        private void mouseleaveBadge(object sender, RoutedEventArgs e)
        {
            Label mybadge    = sender as Label;
            Brush badgeLight = new SolidColorBrush();

            badgeLight = mybadge.Background;
            Colorpicker colorPicker = new Colorpicker(badgeLight);

            mybadge.Background = colorPicker.light();
        }//Badge Mouse Leave Event End Here
Esempio n. 3
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));
        }//Pager
Esempio n. 4
0
        }//Label Mouse Leave Event End Here

        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));
        }//Pager
Esempio n. 5
0
        private void mouse_leftdown(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Left");
            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.darker();
            //((Button)sender).Background = new SolidColorBrush(Color.FromRgb(10,10,10));
            // ((Button)sender).Foreground = new SolidColorBrush(Color.FromRgb(0,0,0));
        }
Esempio n. 6
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
Esempio n. 7
0
        }//loaded event of border 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