How can I bind a listbox selecteditem content to a textbox?

You have 2 problems with your binding: You are using the Source property instead of the ElementName to specify the list box name You are trying to bind to a Content property which (I am assuming) does not exist on your Player object. This happens because the SelectedItem property of the ListBox is an instance of Player when you specify an ItemsSource as you have To solve this you should change your binding to the following.

This binds the TextBox. Text to the ListBoxes - called listNames - SelectedItem, which contains Player objects, and you need its Name property.

Ahh, too slow :( – Miklós Balogh Sep 21 '11 at 18:26.

You should use RelativeSource to access the ListBox, e.g.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions