Mono.Xaml.XamlParser.ParseString C# (CSharp) Method

ParseString() public method

public ParseString ( string str ) : object
str string
return object
		public object ParseString (string str)
		{
			object res = null;

			try {
				res = ParseReader (new StringReader (str));
			} catch (Exception e) {
				Console.WriteLine (e);
			}

			return res;
		}

Usage Example

Esempio n. 1
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);
		}
All Usage Examples Of Mono.Xaml.XamlParser::ParseString