Ejemplo n.º 1
0
 private IEnumerable<XamlInstruction> ConvertToNodes(Stream stream)
 {
     var reader = new XmlCompatibilityReader(stream);
     var wiringContext = WiringContext;
     var pullParser = new XamlInstructionParser(wiringContext);
     var protoParser = new XamlProtoInstructionParser(wiringContext);
     return pullParser.Parse(protoParser.Parse(reader)).ToList();
 }
Ejemplo n.º 2
0
 private IEnumerable<XamlInstruction> ConvertToNodes(Stream xaml)
 {
     var wiringContext = WiringContext;
     var pullParser = new XamlInstructionParser(wiringContext);
     var protoParser = new XamlProtoInstructionParser(wiringContext);
     return pullParser.Parse(protoParser.Parse(xaml)).ToList();
 }