コード例 #1
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        private void RadioButtonLeave(object sender, RoutedEventArgs e)
        {
            Border      border      = sender as Border;
            Colorpicker colorPicker = new Colorpicker(border.Background);

            border.Background = colorPicker.light();
        }
コード例 #2
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        private void MenuMouseLeave(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("MouseLeave");
            MenuItem    menuItem      = sender as MenuItem;
            Brush       menuItemColor = menuItem.Background;
            Colorpicker colorPicker   = new Colorpicker(menuItemColor);

            menuItem.Background = colorPicker.light();
        }
コード例 #3
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        }//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();
        }
コード例 #4
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        private void FocusLost(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("KeyBoard Focused Lost!!");
            MenuItem    menuItem    = sender as MenuItem;
            Brush       itemColor   = menuItem.Background;
            Colorpicker colorPicker = new Colorpicker(itemColor);

            menuItem.Background = colorPicker.light();
        }
コード例 #5
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        private void ButtonGroupMouseLeave(object sender, RoutedEventArgs e)
        {
            //Creating the borderbrush..
            RadioButton border = sender as RadioButton;

            //Getting the darker color of the background..
            Colorpicker colorPicker = new Colorpicker(border.Background);

            border.Background = colorPicker.light();
        }
コード例 #6
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        private void CheckBoxMouseLeave(object sender, RoutedEventArgs e)
        {
            CheckBox checkBox = sender as CheckBox;

            Console.WriteLine("Mouse leave CheckBox");

            Colorpicker colorPicker = new Colorpicker(checkBox.Background);

            checkBox.Background = colorPicker.light();
        }
コード例 #7
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
        private void TabRadioButtonMouseLeave(object sender, RoutedEventArgs e)
        {
            RadioButton button = sender as RadioButton;

            Console.WriteLine("TabRadioButton Mouse Enter ");
            BulletDecorator bullet      = VisualTreeHelper.GetChild(button, 0) as BulletDecorator;
            Border          border      = VisualTreeHelper.GetChild(bullet, 0) as Border;
            Colorpicker     colorPicker = new Colorpicker(border.Background);

            border.Background = colorPicker.light();
        }
コード例 #8
0
ファイル: Dictionary1.cs プロジェクト: cleanSlate2014/Robins
//------------------------------------------------BUTTONGROUP REGION START---------------------------------------------------------------------------------

        private void ButtonGroupLoaded(object sender, RoutedEventArgs e)
        {
            //Creating the borderbrush..
            Border border = sender as Border;
            //Getting the darker color of the background..
            Colorpicker colorPicker = new Colorpicker(border.Background);

            RadioButton button = VisualTreeHelper.GetParent(border) as RadioButton;

            if (button.IsChecked == true)
            {
                border.BorderBrush = colorPicker.light();
            }
            else
            {
                border.BorderBrush = colorPicker.dark();
            }
        }