public Control Load() { var assembler = new PerspexObjectAssembler(_context); foreach (var xamlNode in _nodes) { assembler.Process(xamlNode); } return (Control)assembler.Result; }
public Control Load() { var assembler = new PerspexObjectAssembler(runtimeTypeSource); foreach (var xamlNode in nodes) { assembler.Process(xamlNode); } return (Control)assembler.Result; }
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)); }
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); }