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

ParseXAttribute() private method

private ParseXAttribute ( XamlObjectElement element ) : void
element XamlObjectElement
return void
		private void ParseXAttribute (XamlObjectElement element)
		{
			switch (reader.LocalName) {
			case "Key":
				RegisterKeyItem (element, element.Parent, reader.Value);
				return;
			case "Name":
				RegisterNamedItem (element, reader.Value);
				return;
			case "Class":
				// The class attribute is handled when we initialize the element
				return;
			default:
				throw ParseException ("Unknown x: attribute ({0}).", reader.LocalName);
			}
		}