In the onlline help it mentions you can access a given Field member of a FieldLayout.Fields collection using a key argument specified in Item
i.e. field = FieldLayouts(0).Fields.Item(key)
how do you know what value of key to use ? I tried using the field name but this doesn't work.
Hello SCurle,
You can accomplish what you need by using the key off of the FieldCollection itself like:
dim fld as Field = XDG.FieldLayouts(0).Fields("FieldName")
You have to define it in the Field definition.
x:Key="KeyName" in xaml