private void RadioButtonLeave(object sender, RoutedEventArgs e) { Border border = sender as Border; Colorpicker colorPicker = new Colorpicker(border.Background); border.Background = colorPicker.light(); }
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(); }
}//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(); }
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(); }
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(); }
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(); }
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(); }
//------------------------------------------------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(); } }