WPF ListBox ItemsSource with DataTemplate?

This syntax causes WPF to try to bind to an attached property which is not what you want to do.

Up vote 1 down vote favorite share g+ share fb share tw.

I have a ListBox with an ItemsSource pointing to a static variable, and a DataTemplate for the ListBox's ItemTemplate that should be displaying the Description property of the variable the ItemsSource points to I can put a break point on my application and view the ListBox. The ItemsSource does point to the variable I want and it looks like the ListBox is trying to display all the values because I can click and scroll down the it. However, no text is getting displayed so you can't actually tell what you're clicking.

Also, while the break point is on, it says that the list box contains 0 items, maybe it should because I'm binding it, not sure. Any suggestions? Wpf listbox datatemplate itemssource link|improve this question asked Mar 11 '11 at 0:58user647182821313 46% accept rate.

This syntax causes WPF to try to bind to an attached property, which is not what you want to do.

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