Calling one button's IsMouseOver style on mouseEnter of another button
-
I have a small button placed upon a bigger button. Both buttons have their own style. Both buttons work independently with their IsMouseOver/IsPressed styles. My requirement is that Click on big/small button should evoke both buttons, also mouseEnter/Leave on big button should evoke both buttons. As small button is placed on big button and user will not be able to see that there are two buttons, mouseLeave/Enter on small button should not evoke a new response. I don't want to make any change in styles, because that will complicate the thing. I can make change in XAML where i am setting the style or in the code-behind CS file. I assume that it is possible with XAML only, and without writing any code in C#. A reply with a bit code(XAML/C#) will help a lot.
modified on Wednesday, August 25, 2010 4:40 AM