SlideShare uma empresa Scribd logo
1 de 24
Square (1x1)

Wide (2x1)
JS: Creating a Basic Tile
var Notifications = Windows.UI.Notifications;

//Pick a template for your tile and get its XML contents
var tileXml = Notifications.TileUpdateManager.getTemplateContent(
Notifications.TileTemplateType.tileWideText03);
//Supply template content through document object model (DOM) methods
var tileAttributes = tileXml.getElementsByTagName("text");
tileAttributes[0].appendChild(tileXml.createTextNode("My very own tile notification"));
var squareTileImageAttributes = tileXml.getElementsByTagName("image");
squareTileImageAttributes[0].setAttribute("src", "ms-resource:images/graySquare.png");
//Create the notification based on the XML content you've specified
var tileNotification = new Notifications.TileNotification(tileXml);
//Send the notification to the app tile.
Notifications.TileUpdateManager.createTileUpdaterForApplication().update(tileNotification);
C#: Creating a Basic Tile
var updater = TileUpdateManager.CreateTileUpdaterForApplication();

//tell the updater to cycle through the queue
updater.EnableNotificationQueue(true
//use this for square image and text
var tileTemplate = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareImage);
var xDocument = System.Xml.Linq.XDocument.Parse(tileTemplate.GetXml());
xDocument.Root.Element("visual").
Element("binding").Element("image").Attribute(XName.Get("src")).Value = imageUri;
//set this for wide image and text
Windows.Data.Xml.Dom.XmlDocument xmlDocument = new Windows.Data.Xml.Dom.XmlDocument();
xmlDocument.LoadXml(xDocument.ToString());
var tileNotification = new TileNotification(xmlDocument);
updater.Update(tileNotification);
Square and Wide Tile in One XML
<tile>
<visual lang="en-US">
<binding template="TileSquareImage">
<image id="1" src="ms-appx:///images/graySquare.png"/>
</binding>
<binding template="TileWideImageAndText01">
<image id="1" src="ms-appx:///images/redWide.png"/>
<text id="1">This tile uses images</text>
</binding>
</visual>
</tile>
Badge

Badge
Updating a Badge
var Notifications = Windows.UI.Notifications;
// Select to display a number
var badgeXml = Notifications.BadgeUpdateManager.getTemplateContent(
Notifications.BadgeTemplateType.badgeNumber);

// Assign a value to the badge
var badgeAttributes = badgeXml.getElementsByTagName("badge");
badgeAttributes[0].setAttribute("value", "7");
// Create the badge notification and send it to the badge
var badgeNotification = new Notifications.BadgeNotification(badgeXml);
Notifications.BadgeUpdateManager.createBadgeUpdaterForApplication().update(
badgeNotification);
1. Request Channel URI

2. Register with your Cloud Service
3. Authenticate & Push Notification
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other
countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond
to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the
date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION

Mais conteúdo relacionado

Destaque

Почему Терминаторы нам пока не страшны
Почему Терминаторы нам пока не страшныПочему Терминаторы нам пока не страшны
Почему Терминаторы нам пока не страшныSergey Melekhin
 
Beitrag optimieren (seo)
Beitrag optimieren (seo)Beitrag optimieren (seo)
Beitrag optimieren (seo)Thomas Cook
 
Describing appearance worksheet
Describing appearance worksheetDescribing appearance worksheet
Describing appearance worksheetMaja Jancheva
 
5th grade-english-revision
5th grade-english-revision5th grade-english-revision
5th grade-english-revisionMaja Jancheva
 
Villa romana La Olmeda
Villa romana La OlmedaVilla romana La Olmeda
Villa romana La Olmedacuencaclasica
 
GESTIÓN TECNOLÓGICA REDES SOCIALES
GESTIÓN TECNOLÓGICA REDES SOCIALESGESTIÓN TECNOLÓGICA REDES SOCIALES
GESTIÓN TECNOLÓGICA REDES SOCIALESAnGiEpAoFlOrEz
 
Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)
Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)
Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)ITEA Conferences
 
Wise Elephant TV Slides
Wise Elephant TV SlidesWise Elephant TV Slides
Wise Elephant TV Slidesmccrodrigues
 

Destaque (18)

Curso ingles
Curso inglesCurso ingles
Curso ingles
 
Почему Терминаторы нам пока не страшны
Почему Терминаторы нам пока не страшныПочему Терминаторы нам пока не страшны
Почему Терминаторы нам пока не страшны
 
Beitrag optimieren (seo)
Beitrag optimieren (seo)Beitrag optimieren (seo)
Beitrag optimieren (seo)
 
Sin noticias de gurb
Sin noticias de gurbSin noticias de gurb
Sin noticias de gurb
 
Describing appearance worksheet
Describing appearance worksheetDescribing appearance worksheet
Describing appearance worksheet
 
Makalah permasalahan anak suriati
Makalah permasalahan anak  suriatiMakalah permasalahan anak  suriati
Makalah permasalahan anak suriati
 
Makalah permasalahan anak marlina b
Makalah permasalahan anak marlina bMakalah permasalahan anak marlina b
Makalah permasalahan anak marlina b
 
5th grade-english-revision
5th grade-english-revision5th grade-english-revision
5th grade-english-revision
 
Bombeira Marta
Bombeira MartaBombeira Marta
Bombeira Marta
 
Villa romana La Olmeda
Villa romana La OlmedaVilla romana La Olmeda
Villa romana La Olmeda
 
Grupo 3
Grupo 3Grupo 3
Grupo 3
 
Cartaz biblioteca a3 p net
Cartaz biblioteca a3 p netCartaz biblioteca a3 p net
Cartaz biblioteca a3 p net
 
GESTIÓN TECNOLÓGICA REDES SOCIALES
GESTIÓN TECNOLÓGICA REDES SOCIALESGESTIÓN TECNOLÓGICA REDES SOCIALES
GESTIÓN TECNOLÓGICA REDES SOCIALES
 
ARINC Investor Overview
ARINC Investor OverviewARINC Investor Overview
ARINC Investor Overview
 
Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)
Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)
Николайчук М.Я., Назаренко І.В., Козовик Н.І., Руденко О.Ю. (MZDTS-2013)
 
Trabajo de computacion
Trabajo de computacionTrabajo de computacion
Trabajo de computacion
 
Wise Elephant TV Slides
Wise Elephant TV SlidesWise Elephant TV Slides
Wise Elephant TV Slides
 
Perra sessione 1 10
Perra sessione 1 10Perra sessione 1 10
Perra sessione 1 10
 

Semelhante a Tiles and Notifications by Jason Fox

Engaging users with live tiles and notifications
Engaging users with live tiles and notificationsEngaging users with live tiles and notifications
Engaging users with live tiles and notificationsAlex Golesh
 
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Frédéric Harper
 
Learn about dot net attributes
Learn about dot net attributesLearn about dot net attributes
Learn about dot net attributessonia merchant
 
Knockoutjs databinding
Knockoutjs databindingKnockoutjs databinding
Knockoutjs databindingBoulos Dib
 
Local Notification Tutorial
Local Notification TutorialLocal Notification Tutorial
Local Notification TutorialKetan Raval
 
EE5111 a0195042 j_iot_project_report_update
EE5111 a0195042 j_iot_project_report_updateEE5111 a0195042 j_iot_project_report_update
EE5111 a0195042 j_iot_project_report_updateJingmingPeng1
 
Mobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhoneMobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhoneMohammad Shaker
 
Converting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile CloudConverting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile CloudRoger Brinkley
 
The Magic of WPF & MVVM
The Magic of WPF & MVVMThe Magic of WPF & MVVM
The Magic of WPF & MVVMAbhishek Sur
 
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...DataLeader.io
 
Windows 8 metro applications
Windows 8 metro applicationsWindows 8 metro applications
Windows 8 metro applicationsAlex Golesh
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studioAravindharamanan S
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studioAravindharamanan S
 

Semelhante a Tiles and Notifications by Jason Fox (20)

exa_cer_g23
exa_cer_g23exa_cer_g23
exa_cer_g23
 
Engaging users with live tiles and notifications
Engaging users with live tiles and notificationsEngaging users with live tiles and notifications
Engaging users with live tiles and notifications
 
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
 
Web components
Web componentsWeb components
Web components
 
Learn about dot net attributes
Learn about dot net attributesLearn about dot net attributes
Learn about dot net attributes
 
Knockoutjs databinding
Knockoutjs databindingKnockoutjs databinding
Knockoutjs databinding
 
Local Notification Tutorial
Local Notification TutorialLocal Notification Tutorial
Local Notification Tutorial
 
W8 Tiles & Toasts SB
W8 Tiles & Toasts SBW8 Tiles & Toasts SB
W8 Tiles & Toasts SB
 
EE5111 a0195042 j_iot_project_report_update
EE5111 a0195042 j_iot_project_report_updateEE5111 a0195042 j_iot_project_report_update
EE5111 a0195042 j_iot_project_report_update
 
Mobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhoneMobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhone
 
Mpg Dec07 Gian Lorenzetto
Mpg Dec07 Gian Lorenzetto Mpg Dec07 Gian Lorenzetto
Mpg Dec07 Gian Lorenzetto
 
Converting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile CloudConverting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile Cloud
 
The Magic of WPF & MVVM
The Magic of WPF & MVVMThe Magic of WPF & MVVM
The Magic of WPF & MVVM
 
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
 
DOM and Events
DOM and EventsDOM and Events
DOM and Events
 
Windows 8 metro applications
Windows 8 metro applicationsWindows 8 metro applications
Windows 8 metro applications
 
Knockout.js
Knockout.jsKnockout.js
Knockout.js
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
#JavaFX.forReal()
#JavaFX.forReal()#JavaFX.forReal()
#JavaFX.forReal()
 

Último

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Último (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

Tiles and Notifications by Jason Fox

  • 1.
  • 2.
  • 3.
  • 4.
  • 6.
  • 7.
  • 8.
  • 9. JS: Creating a Basic Tile var Notifications = Windows.UI.Notifications; //Pick a template for your tile and get its XML contents var tileXml = Notifications.TileUpdateManager.getTemplateContent( Notifications.TileTemplateType.tileWideText03); //Supply template content through document object model (DOM) methods var tileAttributes = tileXml.getElementsByTagName("text"); tileAttributes[0].appendChild(tileXml.createTextNode("My very own tile notification")); var squareTileImageAttributes = tileXml.getElementsByTagName("image"); squareTileImageAttributes[0].setAttribute("src", "ms-resource:images/graySquare.png"); //Create the notification based on the XML content you've specified var tileNotification = new Notifications.TileNotification(tileXml); //Send the notification to the app tile. Notifications.TileUpdateManager.createTileUpdaterForApplication().update(tileNotification);
  • 10. C#: Creating a Basic Tile var updater = TileUpdateManager.CreateTileUpdaterForApplication(); //tell the updater to cycle through the queue updater.EnableNotificationQueue(true //use this for square image and text var tileTemplate = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareImage); var xDocument = System.Xml.Linq.XDocument.Parse(tileTemplate.GetXml()); xDocument.Root.Element("visual"). Element("binding").Element("image").Attribute(XName.Get("src")).Value = imageUri; //set this for wide image and text Windows.Data.Xml.Dom.XmlDocument xmlDocument = new Windows.Data.Xml.Dom.XmlDocument(); xmlDocument.LoadXml(xDocument.ToString()); var tileNotification = new TileNotification(xmlDocument); updater.Update(tileNotification);
  • 11. Square and Wide Tile in One XML <tile> <visual lang="en-US"> <binding template="TileSquareImage"> <image id="1" src="ms-appx:///images/graySquare.png"/> </binding> <binding template="TileWideImageAndText01"> <image id="1" src="ms-appx:///images/redWide.png"/> <text id="1">This tile uses images</text> </binding> </visual> </tile>
  • 13. Updating a Badge var Notifications = Windows.UI.Notifications; // Select to display a number var badgeXml = Notifications.BadgeUpdateManager.getTemplateContent( Notifications.BadgeTemplateType.badgeNumber); // Assign a value to the badge var badgeAttributes = badgeXml.getElementsByTagName("badge"); badgeAttributes[0].setAttribute("value", "7"); // Create the badge notification and send it to the badge var badgeNotification = new Notifications.BadgeNotification(badgeXml); Notifications.BadgeUpdateManager.createBadgeUpdaterForApplication().update( badgeNotification);
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23. 1. Request Channel URI 2. Register with your Cloud Service 3. Authenticate & Push Notification
  • 24. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION