/// <summary>
        /// Call this to initialize the Cortana card 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.ParseCortana(content.GetXml(), FeatureSet.GetExperimental());

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

            return(result);
        }
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            string str = value as string;

            if (str != null)
            {
                var parseResult = new XmlTemplateParser().ParseAdaptiveContent(str, FeatureSet.GetExperimental());
                if (parseResult.IsOkForRender())
                {
                    return(AdaptiveRenderer.Render(parseResult.AdaptiveContent, new Thickness(0)));
                }
            }

            return(null);
        }