I need to repeat or tile a single image (size 9×9) across the Windows Phone 7.5 background.
How can this be done? I haven’t found anything using Bing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In WPF you normally would do it with a tiled
Grid.Backgroundas described here. But in WP7 this unfortunately is not possible. So the only ways of achieving this are writing something yourself or using a component.One component is presented in this blog post. It is basically a panel filling itself with the same image over and over again. At the end of the article there is a download link. Download the zip, unzip it and add
TilePanel.csto your project.Then you can use it as follows in your XAML:
Don’t forget to add the namespace:
The panel will be filled with the image specified in your XAML. Adjust image and size as needed.