data binding - WPF How to bind to a specific element in the Collection -


I want to make compelling for a particular element in the archive . But I can not understand the way to write compulsive code:

  public class mysaurus {.. public string SomeProp; Public iconback & lt; T & gt; my collection; ..} this.DataContext = New MySource (); & Lt; Text box text = {some padding} /> & Lt; Text box text = {binding FIRST_ELEMENT_OF_THE_MyCollection} / & gt; & Lt; Text box text = {binding SECOND_ELEMENT_OF_THE_MyCollection} / & gt; & Lt ;! - Ignore other elements - & gt;  

Try changing the binding string, please

thanks

  & lt; Text box text = "{binding microlux [0]}" /> & Lt; Text box text = "{binding microlux [1]}" />  

Comments