简体   繁体   中英

How to create a background with a texture on Windows Phone 8.0/8.1 using XAML

I need to create a backgroud using a single image (100x100px) and repeat (using code) it on the screen (like a texture ), how I can realize all of this? A simple code:

<phone:Panorama>
    <phone:Panorama.Background>
            <ImageBrush Strech="????" ImageSource="/img/texture.png"/>
    </phone:Panorama.Background>
</phone:Panorama>

THE PROBLEM :

在此处输入图片说明

Thank you for the help.

Since there is no options to tile ImageBrush , you should try to set the tiling background for panorama control via overrided panorama template. Here is example with xaml code on a background . You can put the tiling image instead of xaml code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM