1
string[] fruits = new string[] { "apple", "banana", "orange", "etc" };
public string[] Fruits
{
get { return fruits; }
set { fruits = value; }
}
public ApplicationPresenter(MainPage mainpage0, Adatok adatok0)
{
startPage = mainpage0;
startPage.DataContext = this;
uc_adatok = adatok0;
uc_adatok.DataContext = this;
Binding binding = new Binding(/*at here, May I set the property's item?
I imagine this for example "Fruits[0]" but it doesn't work*/);
BindingOperations.SetBinding(uc_adatok.Mennyiseg, TextBox.TextProperty, binding);
}
thx the answers;我可以綁定到數組的項目嗎? (indexer's item)