Exemplo n.º 1
0
		public override object CreateObjectFromReader (StreamReader reader, bool createNamescope)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ResourceBase = resourceBase,
			};

			return p.ParseReader (reader);
		}
Exemplo n.º 2
0
		public override object CreateObjectFromFile (string path, bool createNamescope)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ResourceBase = resourceBase,
			};

			return p.ParseFile (path);
		}
Exemplo n.º 3
0
		protected override void HydrateInternal (object value, Stream xaml, bool createNamescope, bool validateTemplates, bool import_default_xmlns)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ValidateTemplates = validateTemplates,
				HydrateObject = value,
				ResourceBase = resourceBase,
			};

			using (StreamReader reader = new StreamReader (xaml)) {
				object v = p.ParseReader (reader);
			}
		}
Exemplo n.º 4
0
		public override object CreateObjectFromString (string xaml, bool createNamescope, bool validateTemplates)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ValidateTemplates = validateTemplates,
				ResourceBase = resourceBase,
			};

			return p.ParseString (xaml);
		}
Exemplo n.º 5
0
		protected override void HydrateInternal (object value, string xaml, bool createNamescope, bool validateTemplates, bool import_default_xmlns)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ValidateTemplates = validateTemplates,
				HydrateObject = value,
				ResourceBase = resourceBase,
			};

			object v = p.ParseString (xaml);
		}