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