示例#1
0
        public Control Load()
        {
            var assembler = new PerspexObjectAssembler(_context);

            foreach (var xamlNode in _nodes)
            {
                assembler.Process(xamlNode);
            }

            return (Control)assembler.Result;
        }
示例#2
0
        public Control Load()
        {
            var assembler = new PerspexObjectAssembler(runtimeTypeSource);

            foreach (var xamlNode in nodes)
            {
                assembler.Process(xamlNode);
            }

            return (Control)assembler.Result;
        }
示例#3
0
        public IParser Create(Settings settings)
        {
            var xamlInstructionParser = new OrderAwareInstructionParser(new InstructionParser(runtimeTypeSource));

            IObjectAssembler objectAssembler = new PerspexObjectAssembler(runtimeTypeSource, settings);
            var phaseParserKit = new PhaseParserKit(
                new ProtoInstructionParser(runtimeTypeSource),
                xamlInstructionParser,
                objectAssembler);

            return(new XmlParser(phaseParserKit));
        }
示例#4
0
        public IParser Create(Settings settings)
        {
            var xamlInstructionParser = new OrderAwareInstructionParser(new InstructionParser(runtimeTypeSource));

            IObjectAssembler objectAssembler = new PerspexObjectAssembler(runtimeTypeSource, settings);
            var phaseParserKit = new PhaseParserKit(
                new ProtoInstructionParser(runtimeTypeSource),
                xamlInstructionParser,
                objectAssembler);

            return new XmlParser(phaseParserKit);
        }