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