还有一种方式,更新瓷片方式
1、
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 |
/// <summary> /// 定时更新磁贴 /// </summary> public
class ShellUpdate { ShellTileSchedule schedule; public
void CreateShell( string
remoteUri, UpdateRecurrence updateOption = UpdateRecurrence.Interval) { schedule = new
ShellTileSchedule { Interval = UpdateInterval.EveryHour, MaxUpdateCount = 10, Recurrence = updateOption, RemoteImageUri = new
Uri(remoteUri), }; schedule.Start(); } public
void StopShell() { if
(schedule!= null ) { schedule.Stop(); } } } |
原文:http://www.cnblogs.com/walleyekneel/p/3576179.html