XAML Setter Property to Command

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2009-09-15T19:27:20Z Indexed on 2010/03/22 9:21 UTC
Read the original article Hit count: 173

Filed under:
|

I am trying to call a command when my mouse is over a toggle button.

I have the following code.

<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Cursor" Value="Hand"></Setter>
<Setter Property="Command" Value="{Binding Path=PushPinMouse}" />
</Trigger>

When I roll the mouse over, the hand shows. But when i roll the mouse over it doesn't hit my PushPinMouse method.. Why's that?

© Stack Overflow or respective owner

Related posts about xaml

Related posts about c#