Example #1
0
        public XamlLegacyXibReader(string file)
        {
            IdToObjectMap = new Dictionary<string, XamlDomObject>();

            var objectNode = CreateXamlDom(XDocument.Load(file));
            var processor = new PostProcessor(objectNode);
            objectNode = processor.Process();

            _underlyingReader = new XamlDomReader(objectNode, objectNode.SchemaContext);
        }
Example #2
0
        public XamlXibReader(string file)
        {
            IdToObjectMap = new Dictionary <string, XamlDomObject>();

            var objectNode = CreateXamlDom(file);
            var processor  = new PostProcessor(objectNode);

            objectNode = processor.Process();

            _underlyingReader = new XamlDomReader(objectNode, objectNode.SchemaContext);
        }