我想在此控件中设置图像如何执行此操作?
<Image x:Name="ghngfhn" HorizontalAlignment="Left" Height="100" Margin="-8,-47,0,-2" VerticalAlignment="Top" Width="100"/>
答案 0 :(得分:1)
在xaml:
<Image Source="Images/EnterName.png" x:Name="ghngfhn" HorizontalAlignment="Left" Height="100" Margin="-8,-47,0,-2" VerticalAlignment="Top" Width="100"/>