コード例 #1
0
        /// <summary>
        /// Call this to initialize the item with new content. This can be called multiple times, and will clear the previous content.
        /// </summary>
        /// <param name="content"></param>
        /// <returns></returns>
        public ParseResult Initialize(XmlDocument content)
        {
            // TODO: Should be getting supported features via build/device family, not always getting exploritory.
            // But simply returned exploritory for now just to mock up stuff
            ParseResult result = _parser.ParseNewsFeedItem(content.GetXml(), FeatureSet.GetExperimental());

            if (result.IsOkForRender())
            {
                InitializeContent(result.NewsFeed);
            }

            return(result);
        }