How to TILE a background image in WinRT?

可紊 提交于 2019-11-30 14:46:32

问题


With the absence of VisualBrush in WinRT, I am not sure the approach. Anyone?


回答1:


At the moment I don't believe there is a way, while ImageBrush inherits from TileBrush it's missing the important property TileMode. It's unclear whether this will be included in later versions.




回答2:


Indeed there hasn't been much information given in regards to XAML styling WinRT besides changing Dark and Light themes...

so I guess we have to fiddle and experiment...

While doing some googling on the web I came with the following link... might as well give it a shot...

Creating tiled backgrounds in Metro style XAML apps

http://www.robfe.com/2012/07/creating-tiled-backgrounds-in-metro-style-xaml-apps/

Note that it might work in full screen though I ain't sure on how well it responds to snap and rotation.




回答3:


http://www.mindscapehq.com/ now have a TiledBackground control.

http://www.philliphaydon.com/2013/01/windows-store-app-tiled-background/

<ms:TileBackground ImageSource="/Assets/debut_dark.png" />

Requires a license to access the nightly build.



来源:https://stackoverflow.com/questions/11235813/how-to-tile-a-background-image-in-winrt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!