Learn Windows Phone7 development together (12. 1 Tile Notification)

Source: Internet
Author: User

In push notification, Tile noftification is special (raw notification is actually the data received in http post mode; toast notification is implemented by the system), because during development, half is done by the system (that is, the image for updating the Quick Launch Area is done by the system), and half is done by development (making images as required and loading images ).

I. Requirements for using Tile images

2. WebService implementation

Tile Message:

"Content-Type: text/xml \ r \ nX-WindowsPhone-Target: token \ r \ n"

<? Xml version = "1.0" encoding = "UTF-8"?>

<Wp: Notification xmlns: wp = "WPNotification">

<Wp: Tile>

<Wp: BackgroundImage>

<Background image path> // enter the relative position of the image.

(For example, new Uri (@ "Images/" + weather + ". png", UriKind. Relative )))

</Wp: BackgroundImage>

<Wp: Count>

<Count>

</Wp: Count>

<Wp: Title>

<Title>

</Wp: Title>

</Wp: Tile>

</Wp: Notification>

3. Mobile Terminal Implementation

1. image loading:

You must set the loaded image attribute to "Content". Otherwise, the image cannot be displayed.

2. settings:

Set the initial text and image of Tile in program properties

Effect after setting:

Related Article

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.