我寫下面的代碼來顯示按鈕上的圖像,但是當我運行該項目時,它不顯示任何東西。無法看到圖像蒙上了按鈕
<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代碼在我的項目中,它的工作原理。 –