UWP:Live Tile && Adaptive Tile &&
发布时间:2020-12-16 08:20:05 所属栏目:百科 来源:网络整理
导读:Live Tile要求 要求使用标准的处理XML DOM方式创建动态磁贴 要求采用 Adaptive Tile (覆盖至少small,medium,wide) 实现效果:要求每添加一条项目,磁贴能进行 Updating ,并且更新的内容循环展示。 尝试使用通知可视化工具(Notifications Visualizer) 美观
实现代码(已拆分,完整代码移步github) XmlDocument document = new XmlDocument(); document.LoadXml(System.IO.File.ReadAllText("Tile.xml"));
XmlNodeList textElements = document.GetElementsByTagName("text");
(2)实现更新同步的核心操作 TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
TileUpdateManager.CreateTileUpdaterForApplication().EnableNotificationQueue(true);
添加一个item 以上内容皆为本人观点,欢迎大家提出批评和指导,我们一起探讨! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |