How can I change the Mouse Cursor over a Button?
c#, wpf, xaml
Solution
You do not need to create a event handler for this. Just add to the `Style` of your `Button` this trigger:
<Style TargetType="{x:Type Button}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Cursor" Value="Wait" />
</Trigger>
</Style.Triggers>
</Style>
Besides, the Cursor and the Mouse event is related to a `View`. This means that it is desirable to do this action in not the `ViewModel`, and do it on the side of `View`.
Problem
I'm currently Implementing Caliburn and having a mouseover implementation. I'm wondering how do I change the mouse cursor to the mouse on button. Xaml Side: ``` <Button cal:Message.Attach="[Event MouseOver] = [ChangeIcon]" /> ```