}//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(); }
}//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