To set an image as background of a TextBox, we can set an
image as the Background of the TextBox. The code snippet in Listing 4 sets the
background of a TextBox to an image.
<TextBox.Background>
<ImageBrush ImageSource="dock.jpg"
/>
</TextBox.Background>
Listing 4