I have the following xaml code:
<Window.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" Storyboard.TargetName="BackgroundBrush" From="0.5">
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
Also, I want to call some function when MouseEnter is raised
void UpdateTimeAfterMouseOver()
{
timeAfterLastMouseOver = _timeAfterLastMouseOver_init;
}
how to do it? I imaging it to do via command model, but can't imaging how :)