我写下面的代码来显示按钮上的图像,但是当我运行该项目时,它不显示任何东西。无法看到图像蒙上了按钮
<Button x:Name="Employee">
<Button.Template>
<ControlTemplate>
<Border HorizontalAlignment="Center" VerticalAlignment="Center" >
<Image Source="images/Employee.png"
Width="50"
Height="50"/>
</Border>
</ControlTemplate>
</Button.Template>
<TextBlock>Add New Epmloyee</TextBlock>
</Button>
我测试你的XAML代码在我的项目中,它的工作原理。 –