コード例 #1
0
        static void UpdateContent(IXmlDocument xmldoc, IPredefinedToastNotificationInfo info)
        {
            string xml = ToastNotificationManager.GetXml((IXmlNodeSerializer)xmldoc);

            System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
            doc.LoadXml(xml);
            IPredefinedToastNotificationInfoGeneric infoGeneric = info as IPredefinedToastNotificationInfoGeneric;

            if (infoGeneric.UpdateToastContent != null)
            {
                infoGeneric.UpdateToastContent.Invoke(doc);
            }
            infoGeneric.UpdateToastContent = null;
            ToastNotificationManager.LoadXml((IXmlDocumentIO)xmldoc, doc.OuterXml);
        }