public LookupProperty ( XmlReader reader ) : |
||
reader | XmlReader | |
리턴 |
private void ParseAttribute (XamlObjectElement element, XamlAttribute ai) { Log ("\t\t\tParseAttribute {0}", ai.Name); if (ai.IsNsXaml) { ParseXAttribute (element, ai); return; } if (ai.IsXmlDirective) { ParseXmlDirective (element, ai); return; } XamlPropertySetter prop = element.LookupProperty (ai); if (prop == null) throw ParseException ("The property {0} was not found on element {1}.", ai.LocalName, element.Name); object value = ParseAttributeValue (element, prop, ai); Log ("\t\t\t\tSetting Property {0} {1} {2} {3}", prop, element.Object, ai, value); prop.SetValue (element, value); }
private void ParseAttribute (XamlObjectElement element) { if (IsMcAttribute ()) { ParseMcAttribute (element); return; } if (IsXmlnsMapping ()) { ParseXmlnsMapping (element); return; } if (IsXAttribute ()) { ParseXAttribute (element); return; } if (IsXmlDirective ()) { ParseXmlDirective (element); return; } if (IsIgnorable ()) { return; } XamlPropertySetter prop = element.LookupProperty (reader); if (prop == null) throw ParseException ("The property {0} was not found.", reader.LocalName); object value = ParseAttributeValue (element, prop); prop.SetValue (value); }
private void ParseAttribute (XamlObjectElement element) { if (IsMcAttribute ()) { ParseMcAttribute (element); return; } if (IsXmlnsMapping ()) { // These guys are handled when the element is first created return; } if (IsXAttribute ()) { ParseXAttribute (element); return; } if (IsXmlDirective ()) { ParseXmlDirective (element); return; } if (IsIgnorable ()) { return; } XamlPropertySetter prop = element.LookupProperty (reader); if (prop == null) throw ParseException ("The property {0} was not found on element {1}.", reader.LocalName, element.Name); object value = ParseAttributeValue (element, prop); prop.SetValue (element, value); }