コード例 #1
0
ファイル: library.cs プロジェクト: cleanSlate2014/Ravi-Gupta
        }//Progress Bar End Here

        //ToolBar Event Handler Start Here
        private void mouseenterToolbar(object sender, RoutedEventArgs e)
        {
            Button      myButton    = sender as Button;
            Brush       buttonDark  = myButton.Background;
            Colorpicker colorPicker = new Colorpicker(buttonDark);// Creating Objet Of ColorPicker

            myButton.Background = colorPicker.dark();
        }//mouse enter toolbar end here
コード例 #2
0
ファイル: library.cs プロジェクト: cleanSlate2014/Ravi-Gupta
        }//Label Mouse Leave Event End Here

        //Label End Here

        //Badge Events Start here
        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
コード例 #3
0
ファイル: library.cs プロジェクト: cleanSlate2014/Ravi-Gupta
        }//Method For Focus End Here

        //TextBox Events End Here


        //Label Start 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