How to set the background image?

I am trying to set the background image of an image all over my grid. This is a small image with a bit of random noise to give it a texture.

This is currently what I am doing:

<Grid.Background>
    <ImageBrush ImageSource="Images/mainBg.png" Stretch="UniformToFill" />
</Grid.Background>

But it explodes the image and makes the noise look terrible. I would like the image to be repeated on the x and y axes to fill the space that it can.

Is it possible?

+5
source share
2 answers

Short answer:
It is not possible to create image tiles on the phone.

:
. () , , , . , .

. , WrapPanel ( Silverlight Toolkit). , /. ( - ! - .)

+5

  <ImageBrush ImageSource="xyz.png" Stretch="None" TileMode="Tile"/>

, TileMode WPF. Microsoft. . , /. WrapPanel .

0

All Articles