}//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
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