Learn about Windows Phone7 Development (12. Two shelltileschedule)

Source: Internet
Author: User

For the push message service, generally through the WebService service to complete, but sometimes just to update the tile picture, which is a little bit large to use, it can be said that is too much trouble. Obviously should not have this kind of question, at this time uses the Shelltileschedule to appear very convenient. It takes a few lines of code to make it easy to handle.

ShellTileSchedule sechedule = new ShellTileSchedule();
sechedule.Recurrence = UpdateRecurrence.Onetime;//只更新一次
sechedule.RemoteImageUri = new Uri(@"http:\\www.contoso.com\myimage.png");
sechedule.StartTime = DateTime.Now;
sechedule.StartTime. AddHours(1);
sechedule.Start();

Or:

sechedule.Interval = UpdateInterval.EveryDay;//每天更新几次
sechedule.Recurrence = UpdateRecurrence.Interval;
sechedule.MaxUpdateCount = 8;
sechedule.RemoteImageUri = new Uri(@"http:\\www.contoso.com\myimage.png");
sechedule.Start();

But now only onetime can see the effect, for interval still don't know how to achieve.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.