public TemplateContentToWpfXamlReaderAdapter(TemplateContent templateContent, AutoInflatingTypeFactory autoInflatingTypeFactory, XamlSchemaContext xamlSchemaContext) { this.templateContent = templateContent; SchemaContext = xamlSchemaContext; var hydrator = new Hydrator(autoInflatingTypeFactory.Inflatables, templateContent.TypeSource); var hydratedNodes = hydrator.Hydrate(templateContent.Nodes); nodeStream = hydratedNodes.GetEnumerator(); }
public TemplateContentToWpfXamlReaderAdapter(TemplateContent templateContent, AutoInflatingTypeFactory autoInflatingTypeFactory, XamlSchemaContext xamlSchemaContext) { this.templateContent = templateContent; SchemaContext = xamlSchemaContext; var hydrator = new Hydrator(autoInflatingTypeFactory.Inflatables, templateContent.Context); var hydratedNodes = hydrator.Hydrate(templateContent.Nodes); nodeStream = hydratedNodes.GetEnumerator(); }