Skip to content

Commit

Permalink
Fix resolving bindable properties
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival committed Mar 22, 2024
1 parent 4982f75 commit 5c82f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/src/Core/BindablePropertyConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static Type GetControlType(string typeName)
BindableProperty ConvertFrom(Type type, string propertyName, IXmlLineInfo lineinfo)
{
string name = propertyName + "Property";
FieldInfo bpinfo = type.GetField(name, BindingFlags.Public | BindingFlags.Static);
FieldInfo bpinfo = type.GetField(name, BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);
if (bpinfo == null || bpinfo.FieldType != typeof(BindableProperty))
throw new XamlParseException($"Can't resolve {name} on {type.Name}", lineinfo);
var bp = bpinfo.GetValue(null) as BindableProperty;
Expand Down

0 comments on commit 5c82f23

Please sign in to comment.