private static void ParseChildXObjectToElement(ParserContext context, XObject xobject, string xmlValue, PropertyInfo propertyToBind) { if (!PropertyBinder.BindLiteralOrReference(context, xobject, xmlValue, propertyToBind)) { var xelement = xobject as XElement; IFrameworkItem frameworkItem = CreateFrameworkItemInstance(context, xelement, propertyToBind); if (frameworkItem != null) { PropertyBinder.BindFinalValue(propertyToBind, context.FrameworkItem, frameworkItem, xobject, true); RecursiveParseElement(new ParserContext(xelement, frameworkItem, context.Template, context.BimlFile, context.UnboundReferences, context.LanguageSettings)); return; } } }