How to set an Image as Background of a WPF Button?

To set an image as background of a Button, we can set an image as the Background of the Button. The following code snippet sets the background of a Button to an image. 

<Button.Background>

    <ImageBrush ImageSource="dock.jpg" />

</Button.Background>