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();
        }
Exemple #2
0
        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();
        }