wp后台更新瓷片

下载源码

还有一种方式,更新瓷片方式

1、

  /// <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();
            }
        }
    }

  

posted @ 2014-03-02 01:11  walleyekneel  阅读(190)  评论(0编辑  收藏  举报