示例#1
0
 public void SetBadgeGlyph(GlyphValue glyph)
 {
     BadgeGlyphNotificationContent badgeContent = new BadgeGlyphNotificationContent(glyph);
     BadgeNotification badgeNotification = new BadgeNotification(badgeContent.GetXml());
     badgeNotification.ExpirationTime = DateTimeOffset.UtcNow.AddHours(1);
     BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeNotification);
 }
示例#2
0
 /// <summary>
 /// Constructor to create a glyph badge content object with a glyph.
 /// </summary>
 /// <param name="glyph">The glyph to be displayed on the badge.</param>
 public BadgeGlyphNotificationContent(GlyphValue glyph)
 {
     m_Glyph = glyph;
 }
 /// <summary>
 /// Constructor to create a glyph badge content object with a glyph.
 /// </summary>
 /// <param name="glyph">The glyph to be displayed on the badge.</param>
 public BadgeGlyphNotificationContent(GlyphValue glyph)
 {
     m_Glyph = glyph;
 }
        void UpdateBadgeWithGlyph(GlyphValue index)
        {
            BadgeGlyphNotificationContent badgeContent = new BadgeGlyphNotificationContent(index);

            BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeContent.CreateNotification());
        }
 public BadgeGlyphNotificationContent([In] GlyphValue glyph)
 {
     this.m_Glyph = ~GlyphValue.None;
     this.m_Glyph = glyph;
 }
 public BadgeGlyphNotificationContent()
 {
     this.m_Glyph = ~GlyphValue.None;
 }
示例#7
0
        void UpdateBadgeWithGlyph(GlyphValue index)
        {
            BadgeGlyphNotificationContent badgeContent = new BadgeGlyphNotificationContent(index);

            BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeContent.CreateNotification());
        }
 public BadgeGlyphNotificationContent([In] GlyphValue glyph)
 {
     this.m_Glyph = ~GlyphValue.None;
     this.m_Glyph = glyph;
 }
 public BadgeGlyphNotificationContent()
 {
     this.m_Glyph = ~GlyphValue.None;
 }