Skip to content

Commit

Permalink
[X] Traverse ListNode when finding DataType
Browse files Browse the repository at this point in the history
- fix #20633
  • Loading branch information
StephaneDelcroix committed Feb 21, 2024
1 parent 9c7dc88 commit 7851fe4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controls/src/Build.Tasks/SetPropertiesVisitor.cs
Expand Up @@ -386,7 +386,10 @@ static IEnumerable<Instruction> CompileBindingPath(ElementNode node, ILContext c
{
if (n.Properties.TryGetValue(XmlName.xDataType, out dataTypeNode))
break;
n = n.Parent as IElementNode;
if (n.Parent is ListNode listNode)
n = listNode.Parent as IElementNode;
else
n = n.Parent as IElementNode;
}

if (dataTypeNode is null)
Expand Down

0 comments on commit 7851fe4

Please sign in to comment.