1
我找到了一个蹦出来的图像一个很好的例子:http://tozon.info/blog/post/2007/10/14/three-ways-to-make-your-wpf-images-pop-out-on-mouseover.aspx图片蹦出来“从右至左”与分镜动画
的问题是我需要向相反的方向成长吧。示例中的图像从左向右增长。我希望它长到左侧。
<!-- This storyboard will make the image grow to double its size in 0.2 seconds -->
<Storyboard x:Key="expandStoryboard">
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX"
To="2"
Duration="0:0:0.2" />
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY"
To="2"
Duration="0:0:0.2" />
</Storyboard>
<!-- This storyboard will make the image revert to its original size -->
<Storyboard x:Key="shrinkStoryboard">
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX"
To="1"
Duration="0:0:0.2" />
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY"
To="1"
Duration="0:0:0.2" />
</Storyboard>
太棒了!我用RenderTransformOrigin =“1,0”来制作它。所以它从右上角向外扩展 – 2013-04-11 16:57:57
@ masterchris_99太棒了! – 2013-04-11 17:04:44