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;
		}
Esempio n. 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;
     }
 }
Esempio n. 3
0
		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);
		}