我尝试了几种方法将图像图标放在边框顶部,但所有解决方案均失败。该图像显示在编辑器中,但是当我运行该应用程序时,该图像不显示
<Border BorderThickness="1" HorizontalAlignment="Left" Height="104" Margin="73,77,0,0" VerticalAlignment="Top" CornerRadius="8,8,3,3" Width="253">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF568F3C" Offset="0"/>
<GradientStop Color="#FF89E45F" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<Image x:Name="imgBtn2" Source="icon_arrow.png" VerticalAlignment="Top" Height="13" Margin="120,84,92,0"/>
</Border>