예제 #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();
 }
예제 #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();
 }
예제 #3
0
 private ICollection<XamlInstruction> ExtractNodesFromPullParser(string xml)
 {
     var pullParser = new XamlInstructionParser(WiringContext);
     return pullParser.Parse(new XamlProtoInstructionParser(WiringContext).Parse(xml)).ToList();
 }
예제 #4
0
        private ICollection<XamlInstruction> ExtractNodesFromPullParser(string xml)
        {
            var pullParser = new XamlInstructionParser(WiringContext);

            using (var stream = new StringReader(xml))
            {
                var reader = new XmlCompatibilityReader(stream);
                return pullParser.Parse(new XamlProtoInstructionParser(WiringContext).Parse(reader)).ToList();
            }
        }