Inheritance: Portable.Xaml.XamlWriter, IXamlLineInfoConsumer
		public static Object Load (XamlReader xamlReader)
		{
			if (xamlReader == null)
				throw new ArgumentNullException ("xamlReader");
			var w = new XamlObjectWriter (xamlReader.SchemaContext);
			Transform (xamlReader, w);
			return w.Result;
		}
示例#2
0
 private static object Load(XamlXmlReader reader)
 {
     var writerSettings = new XamlObjectWriterSettings();
     using (var writer = new XamlObjectWriter(context, writerSettings))
     {
         XamlServices.Transform(reader, writer);
         return writer.Result;
     }
 }
		public XamlObjectWriterInternal (XamlObjectWriter source, XamlSchemaContext schemaContext, XamlWriterStateManager manager)
			: base (schemaContext, manager)
		{
			this.source = source;
			this.sctx = schemaContext;
			var ext = source.Settings.ExternalNameScope;
			name_scope = ext != null && source.Settings.RegisterNamesOnExternalNamescope ? ext : new NameScope (ext);
		}