Exemple #1
0
		public override object CreateObjectFromReader (StreamReader reader, bool createNamescope)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ResourceBase = resourceBase,
			};

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

			return p.ParseFile (path);
		}
Exemple #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);
			}
		}
Exemple #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);
		}
Exemple #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);
		}