Implemented interface member:
property
CollectionItems
Microsoft.Maui.Controls.Xaml.IListNode.CollectionItems
1 write to CollectionItems
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
163 CollectionItems = new List<INode>();
34 references to CollectionItems
Microsoft.Maui.Controls.Build.Tasks (16)
CompiledMarkupExtensions\StaticResourceExtension.cs (2)
20 if (!eNode.Properties.TryGetValue(name, out INode keyNode) && eNode.CollectionItems.Any()) 21 keyNode = eNode.CollectionItems[0];
CreateObjectVisitor.cs (12)
58 children.AddRange(node.CollectionItems); 81 node.CollectionItems.Clear(); 122 node.CollectionItems.Clear(); 202 if (node.CollectionItems.Count == 1 && (vnode = node.CollectionItems.First() as ValueNode) != null && 211 else if (node.CollectionItems.Count == 1 && (vnode = node.CollectionItems.First() as ValueNode) != null && 216 Context.IL.Emit(OpCodes.Ldstr, ((ValueNode)(node.CollectionItems.First())).Value as string); 395 var hasValue = node.CollectionItems.Count == 1 && node.CollectionItems[0] is ValueNode && 396 ((ValueNode)node.CollectionItems[0]).Value is string; 397 var valueString = hasValue ? ((ValueNode)node.CollectionItems[0]).Value as string : string.Empty;
SetPropertiesVisitor.cs (2)
434 if (!node.Properties.TryGetValue(new XmlName("", "Path"), out INode pathNode) && node.CollectionItems.Any()) 435 pathNode = node.CollectionItems[0];
Microsoft.Maui.Controls.Xaml (18)
CreateValuesVisitor.cs (5)
95 if (value == null && node.CollectionItems.Any() && node.CollectionItems.First() is ValueNode) 98 var converted = ((ValueNode)node.CollectionItems.First()).Value.ConvertTo(type, () => type, 134 foreach (var cnode in node.CollectionItems) 155 node.CollectionItems.Clear();
PruneIgnoredNodesVisitor.cs (3)
51 foreach (var prop in node.CollectionItems.ToList()) 56 node.CollectionItems.Remove(prop); 62 node.CollectionItems.Clear();
SimplifyOnPlatformVisitor.cs (2)
60 else if (node.CollectionItems.Count > 0) // syntax like {OnPlatform foo, iOS=bar} 65 parentEnode.Properties[name] = node.CollectionItems[0];
SimplifyTypeExtensionVisitor.cs (2)
68 if (node.CollectionItems.Count == 1 69 && node.CollectionItems[0] is ValueNode { Value: string } collectionValueNode)
XamlLoader.cs (2)
176 ((ElementNode)resources).CollectionItems.Add(resourcesEN); 182 ((ElementNode)resources).CollectionItems.Add(n);
XamlNode.cs (4)
184 foreach (var node in CollectionItems.ToArray()) 220 foreach (var p in CollectionItems) 221 clone.CollectionItems.Add(p.Clone()); 241 foreach (var node in CollectionItems.ToList())