Microsoft Developer Network > Página Inicial dos Fóruns > Windows Presentation Foundation (WPF) > Can you update the value of an ItemsSource item from the control?
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoCan you update the value of an ItemsSource item from the control?

  • quinta-feira, 2 de julho de 2009 17:45Kofoed Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Say, for example, I have a ListBox.  The ListBox has it's ItemsSource bound to some data object behind the scenes.  Is it possible to change the actual value of a data item behind the scenes by changing it's associated bound ListBoxItem content/text?

    I would think that in theory two-way binding would work here ... but some preliminary tests seem to not be working.  Am I missing something, or is two way binding not applicable in this case?

Respostas

Todas as Respostas