问题描述
我了解背景实际上是一张图片(WideLogo.png/SmallLogo.png),并已在应用清单文件中指定.但是是否可以通过编程将它们与一组新的图像交换?根据图块上显示的信息,我想更改图块的背景颜色.
I understand the background is actually an image (WideLogo.png/SmallLogo.png) and specified in the app manifest file. But is it possible to swap these with a new set of images programatically? Based on the information displayed on the tile, I want to change the background color of the tile.
推荐答案
您无法编辑应用清单以更改默认颜色.但是,您可以使用适当的背景颜色和内容来渲染图像,然后将其设置为图块.
You cannot edit the app manifest to change the default color. However, you can render an image with the appropriate background color and content then set it as tile.
有关如何实现此目的的更多详细信息,请阅读: Windows 8 Metro App-Render PNG
For more details on how to achieve that, read: Windows 8 Metro App - Render PNGs
这篇关于以编程方式更改图块的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!