Skip to content

Commit

Permalink
[X] Traverse ListNode when finding DataType (#20742)
Browse files Browse the repository at this point in the history
- fix #20633
  • Loading branch information
StephaneDelcroix authored and rmarinho committed Feb 27, 2024
1 parent 73a414f commit 638f021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controls/src/Build.Tasks/SetPropertiesVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,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 638f021

Please sign in to comment.