WPF - Trigger to change Foreground and Background of multiple Button's object
问题 I am trying to do a RoutedEvent to activate ColorAnimation over a TextBlock and a Panel inside Buttons . My goal is to change the TextBlock's Foreground and the Panel's Background when using the MouseEnter and MouseLeave RoutedEvents. The below code is actually working. But it works only when the mouse cursor is over one of these two objects (which makes sense). I can't figure what should I do to activate both ColorAnimations when the mouse is over the Button (specially if it is not over the