Forum Discussion
marinb
14 years agoContributor
aChildObjects =VBArray(oInitialObject.FindAllChildren(aProperty, aValue, 30, true)).toArray();
aProperty is an array with the properties (in this case only "Name", aValue is an array with the search strings (in this case *WPFObject("TextBlock", "*", 8)* )
-edit-
I notice another answer just while typing this :)
In this case, the only difference is in the Name property. Class is exactly the same. We want to avoid finding objects based on what is actual a caption or text value so we use Name (and often Enabled & Visibility settings), or unique identifiers such as ObjectIdentifier & Uid properties. But those are currently not available in highly dynamic WPF code.