简体   繁体   中英

Universal Apps Live Tiles

I have reached the stage in my universal windows app where I would like to create a live tile.

The articles I have read suggest that you should create a BackgroundTask in a separate assembly to keep the footprint small, so I have created a new portable class library for this purpose.

There are a number of templates available for your live tile, some are not supported on windows phone and some are not supported on windows store apps.

The problem I have is, if I want to create different live tiles for windows phone and windows store platforms, I cannot tell which platform it is running on because the portable class library I have created don't have anyway of identifying this.

Is there a better way of doing this?

经过深思熟虑后,我决定最好的答案是创建两个版本的BackgroundTask,一个用于Windows Phone,一个用于Windows Store,然后在运行主应用程序时注册正确的版本。

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