wpf 图片倒影效果
<Image x:Name="image" Source="{Binding Path=Source}" Width="70" Height="70" VerticalAlignment="Bottom" Stretch="Uniform" />
<Rectangle x:Name="rct" Width="70" Grid.Row="1" Margin="0,5">
<Rectangle.Fill>
<VisualBrush Visual="{Binding ElementName=image}">
<VisualBrush.RelativeTransform>
<ScaleTransform ScaleY="-1" CenterY="0.5"></ScaleTransform>
</VisualBrush.RelativeTransform>
</VisualBrush>
</Rectangle.Fill>
<Rectangle.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#7F000000" Offset="0"></GradientStop>
<GradientStop Color="Transparent" Offset="0.5"></GradientStop>
</LinearGradientBrush>
</Rectangle.OpacityMask>
</Rectangle>