实现效果如下:
思路:利用Geometry的Clip属性结合路径动画DoubleAnimationUsingPath来实现。
步骤:
1、窗体布局xaml
<Grid>
<Grid.Background>
<ImageBrush ImageSource="Images/1.jpg" Stretch="Uniform"/>
</Grid.Background>
<Grid x:Name="gridShadow" Background="#E54E4E4E"></Grid>
<Path Fill="Transparent">
<Path.Data>
<EllipseGeom