I have 10 Listboxes and an array of 1000 Lists of string. I need to fill the listboxes from the Array dpending on the Array Index. Is this possible with binding or have to do it manually?
2 Answers
<ListBox ItemsSource="{Binding MyArrayOfLists[0]}".../>
<ListBox ItemsSource="{Binding MyArrayOfLists[1]}".../>
<ListBox ItemsSource="{Binding MyArrayOfLists[3]}".../>
...
Is that what you mean?
2 Comments
Moon Walker
<ListBox ItemsSource="{Binding MyArrayOfLists[Index]}".../> <ListBox ItemsSource="{Binding MyArrayOfLists[Index+1]}".../> <ListBox ItemsSource="{Binding MyArrayOfLists[Index+2]}".../> So this is not possible right?
Pavlo Glazkov
@Moonwalker031 - In the binding expression you can only specify constant values (as in my example). Expressions will not work.