One way is to set the content of the button to <image/>
Another method is to set the style attribute of the button.
< Window X: Class = "Wpfapp. window1"
Xmlns = "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Xmlns: x = "Http://schemas.microsoft.com/winfx/2006/xaml"
Title = "Http://dotnet.5d6d.com" Height = "384" Width = "614" >
< Grid >
< Button Height = "140" Horizontalalignment = "Left" Margin = "10, 10, 0, 0" Verticalalignment = "TOP" Width = "140" >
< Image Source = "Img/bg1.jpg" > </ Image >
</ Button >
< Button Style =" {Dynamicresource btntemp} " > Hi </ Button >
</ Grid >
< Window. Resources >
< Style X: Key = "Btntemp" Targettype =" {X: type button} " >
< Setter Property = "Control. Background" Value = "Blue" > </ Setter >
< Setter Property = "Control. Margin" Value = "16" > </ Setter >
< Setter Property = "Control. width" Value = "140" > </ Setter >
< Setter Property = "Control. Height" Value = "140" > </ Setter >
< Setter Property = "Control. horizontalalignment" Value = "Left" > </ Setter >
< Setter Property = "Control. verticalalignment" Value = "TOP" > </ Setter >
</ Style >
</ Window. Resources >
</ Window >
Seohttp: // greatverve.cnblogs.com/archive/2011/06/03/button-background.html