使用Rectangle+ImageBrush来代替Image,解决图片模糊的问题

时间:2022-11-13 17:35:39
 <Rectangle Margin="0" Stroke="Black" HorizontalAlignment="Right" Width="151.5" Grid.Row="1" StrokeThickness="0">
<Rectangle.Fill>
<ImageBrush ImageSource="skin/logo.png" Stretch="Uniform"/>
</Rectangle.Fill>
</Rectangle>