Binded ObjectDataProvider
How to bind to an instance method of item in ItemsControl?
Like
<ListBox> <ListBox.ItemTemplate> <DataTemplate DataType="c:MyCollectionItem"> <DataTemplate.Resources> <ObjectDataProvider x:Key="myItems"ObjectInstance="{Binding .}"
MethodName="GetItems" />
</DataTemplate.Resources> <ComboBox ItemsSource="{Binding Source={StaticResource myItems}}" /> </DataTemplate> </ListBox.ItemTemplate> <c:MyCollectionItem /> <c:MyCollectionItem /> <c:MyCollectionItem /></ListBox>Unfortunately, binding is not allowed on ObjectInstance property of ObjectDataProvider..
Thanks for any hints, Jan

