How to set an event function via a style?
I have several GUI control elements of which some are supposed to generate the same action (code-behind function call) on mouse interaction (MouseEnter, MouseLeave). [edit] I am performing some non style related functionality in my event handlers. Right now I'm using event attributes in each control: <Button Name="Button" Content="Button 1" MouseEnter="GeneralMouseEnter" MouseLeave="GeneralMouseLeave" PreviewMouseDown="Button1_PreviewMouseDown" PreviewMouseUp="Button1_PreviewMouseUp" /> <Button Name="NotInteractingButton" Content="Button 2" /><!-- this button has no MouseOver-effects -->