ArrayList CtrlSpaceForAttributeName(string fileContent, XamlExpressionContext context) { if (context.ElementPath.Elements.Count == 0) { return(null); } QualifiedName lastElement = context.ElementPath.Elements[context.ElementPath.Elements.Count - 1]; XamlCompilationUnit cu = parseInfo.BestCompilationUnit as XamlCompilationUnit; if (cu == null) { return(null); } IReturnType rt = cu.CreateType(lastElement.Namespace, lastElement.Name); if (rt == null) { return(null); } ArrayList list = new ArrayList(); foreach (IProperty p in rt.GetProperties()) { if (p.IsPublic && p.CanSet) { list.Add(p); } } return(list); }
static IReturnType TypeFromXmlNode(XamlCompilationUnit cu, AXmlElement element) { return cu.CreateType(element.Namespace, element.LocalName); }
static IReturnType TypeFromXmlNode(XamlCompilationUnit cu, AXmlElement element) { return(cu.CreateType(element.Namespace, element.LocalName)); }
IReturnType TypeFromXmlNode(XamlCompilationUnit cu, XmlReader r) { return(cu.CreateType(r.NamespaceURI, r.LocalName)); }