<Canvas Background="AliceBlue">
<TextBlock x:Name="MessageBox" Text="Press the black holder and drag to change Size" FontWeight="Bold" FontSize="13"/>
<TextBlock x:Name="Height_block"></TextBlock>
<TextBlock x:Name="Width_block"></TextBlock>
<Border x:Name="Holder" Height="8" Width="8" Background="Black"/>
<Border x:Name="border" BorderThickness="2" BorderBrush="Purple">
<Image x:Name="image" Source="{StaticResource svg_source}" />
</Border>
</Canvas>
我已将 svg 作为子项添加到边框,并将其高度和宽度设置为边框的高度和宽度,但图像正在缩放而不是扩展。我已将 svg 的高度和宽度属性设置为自动,我应该做什么做