{"record":{"id":"e2fb68aa2de7b5b3","repo":"dotnet/maui","slug":"xc0009","errorCode":"XC0009","errorMessage":"No property, BindableProperty, or event found for \"{0}\", or mismatching type between value and property.","messagePattern":"No property, BindableProperty, or event found for \"(.+?)\", or mismatching type between value and property\\.","errorType":"exception","errorClass":"BuildException","httpStatus":null,"severity":"error","filePath":"src/Controls/src/Build.Tasks/SetPropertiesVisitor.cs","lineNumber":1388,"sourceCode":"\t\t\t\treturn SetDynamicResource(parent, bpRef, valueNode as ElementNode, iXmlLineInfo, context);\n\n\t\t\t//If Value is a BindingBase and target is a BP, SetBinding\n\t\t\tif (CanSetBinding(bpRef, valueNode, context))\n\t\t\t\treturn SetBinding(parent, bpRef, valueNode as ElementNode, iXmlLineInfo, context);\n\n\t\t\t//If it's a BP, SetValue ()\n\t\t\tif (CanSetValue(bpRef, attached, valueNode, iXmlLineInfo, context))\n\t\t\t\treturn SetValue(parent, bpRef, valueNode, iXmlLineInfo, context);\n\n\t\t\t//If it's a property, set it\n\t\t\tif (CanSet(parent, localName, valueNode, context))\n\t\t\t\treturn Set(parent, localName, valueNode, iXmlLineInfo, context);\n\n\t\t\t//If it's an already initialized property, add to it\n\t\t\tif (CanAdd(parent, propertyName, valueNode, iXmlLineInfo, context))\n\t\t\t\treturn Add(parent, propertyName, valueNode, iXmlLineInfo, context);\n\n\t\t\tthrow new BuildException(MemberResolution, iXmlLineInfo, null, localName);\n\t\t}\n\n\t\tpublic static IEnumerable<Instruction> GetPropertyValue(VariableDefinition parent, XmlName propertyName, ILContext context, IXmlLineInfo lineInfo, out TypeReference propertyType)\n\t\t{\n\t\t\tvar module = context.Body.Method.Module;\n\t\t\tvar localName = propertyName.LocalName;\n\t\t\tvar bpRef = GetBindablePropertyReference(parent, propertyName.NamespaceURI, ref localName, out var attached, context, lineInfo);\n\n\t\t\t//If it's a BP, GetValue ()\n\t\t\tif (CanGetValue(parent, bpRef, attached, lineInfo, context, out _))\n\t\t\t\treturn GetValue(parent, bpRef, lineInfo, context, out propertyType);\n\n\t\t\t//If it's a property, get it\n\t\t\tif (CanGet(parent, localName, context, out _))\n\t\t\t\treturn Get(parent, localName, lineInfo, context, out propertyType);\n\n\t\t\tthrow new BuildException(PropertyResolution, lineInfo, null, localName, parent.VariableType.FullName);\n\t\t}","sourceCodeStart":1370,"sourceCodeEnd":1406,"githubUrl":"https://github.com/dotnet/maui/blob/f377ff1c5ee04d334d8a925f50c83a6b7afddf03/src/Controls/src/Build.Tasks/SetPropertiesVisitor.cs#L1370-L1406","documentation":"Thrown by SetStdtask after the compiler exhausts SetValue (BindableProperty), Set (plain property), and Add (existing collection) and none succeed for localName. It means no matching property, BindableProperty, or event exists on the type — or the value's type does not match the target.","triggerScenarios":"Setting an attribute/element whose name does not resolve to any public property, BindableProperty, or event on the parent type, or whose value type mismatches, e.g. `Clicked` on a type without that event or a misspelled property.","commonSituations":"Misspelled property/event name; attached BindableProperty field missing the `...Property` suffix or not public; value type incompatible with the property; namespace changed in a newer Maui version.","solutions":["Verify the member name exists and is public on the resolved type.","For BindableProperties, confirm the static `<Name>Property` field exists and is public/internal.","Check the value type matches the property/event (e.g. event handler signature, enum value).","Ensure the correct xmlns/namespace and Maui version are referenced."],"exampleFix":"<!-- before -->\n<Button Clic=\"OnClick\" />\n\n<!-- after -->\n<Button Clicked=\"OnClick\" />","handlingStrategy":"validation","validationCode":"// Confirm the member resolves as a property, BindableProperty, or event\nstatic bool MemberResolves(Type owner, string name)\n    => owner.GetProperty(name) != null\n       || owner.GetEvent(name) != null\n       || owner.GetField(name + \"Property\") != null;","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify property/event names exist and are public before referencing them in XAML.","Ensure BindableProperty fields follow the `<Name>Property` naming and are public/internal.","Confirm value types match the property/event signature."],"tags":["xaml","xamlc","property-resolution","bindableproperty","event"],"backgroundTag":null,"analyzedSha":"f377ff1c5ee04d334d8a925f50c83a6b7afddf03","analyzedAt":"2026-08-13T14:26:18.069Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}