title: Can I have a custom parameter linked to a style in my control?
body: <p>I have a series of images, and I want them all the have MouseOver replacements.  I could implement a style for each of them with something like:</p>
  
  <pre><code>&lt;Image Source="C:\Image1.png" Style="{StaticResource Image1Style}"/&gt;
  
  ...
  
  &lt;Image&gt;
    &lt;Image.Style&gt;
      &lt;Style TargetType="{x:Type Image}" x:Key="Image1Style"&gt;
        &lt;Setter Property="Source" Value="C:\Image1.jpg"/&gt;
        &lt;Style.Triggers&gt;
          &lt;Trigger Property="IsMouseOver" Value="True"&gt;
            &lt;Setter Property="Source" Value="C:\Image2.jpg"/&gt;
          &lt;/Trigger&gt;
        &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
    &lt;/Image.Style&gt;
  &lt;/Image&gt;
  </code></pre>
  
  <p>But such an implementation would require a whole style block for every image.  I'd rather want one unified style that I can then specify the IsMouseOver property in the tag of the actual control, like so:</p>
  
  <pre><code>&lt;Image Source="C:\Image1.png" Style="{StaticResource Image1Style}" IsMouseOver="C:\Image1MouseOver.png" /&gt;
  </code></pre>
  
  <p>I thought I was on to something with Templating, but I've not been able to put the pieces together to make this work.</p>