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);
}
}