WPF按钮图像未显示

时间:2015-12-26 14:50:16

标签: c# wpf

我创建了一个带图像的按钮:

<Button x:Name="btnAddRow" Grid.Row="0" Grid.Column="5" Margin="5, 5" Command="{Binding CmdAddRow}">
    <Image Source="pack://application:,,,/Resources/help_16.png" Stretch="None" HorizontalAlignment="Center" />
</Button>

图像包含在资源中。在Designer中,显示图像(蓝色帮助图标): enter image description here

但在运行时,它没有显示: enter image description here

有人可以帮助我吗,这可能有什么问题?

非常感谢。

0 个答案:

没有答案
相关问题