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