UserControl databinding with a treeview?

Have a look at this in MSDN . And also the BindableSelectedItemBehaviour here .

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

I have a UserControl which contains a treeview and a textblock : When I select an item of the treeview, I want do show some informations contained in the item (eg : the name of the selected item). My problem is that I don't know how doing this binding, because when I select an item, the setter IsSelected of the item class is called. Have you a best practice for doing that?

C# wpf data-binding treeview wpf-usercontrols link|improve this question asked Jul 2 '11 at 18:39malinois2,3291214 92% accept rate.

What is your style intended to do; it doesn't seem like it does anything to the default appearance of a tree view. – Adam Robinson Jul 2 '11 at 18:56 It's a treeview which looks like to .net Reflector, with an image and text. – malinois Jul 2 '11 at 19:00.

Have a look at this in MSDN. And also the BindableSelectedItemBehaviour here.

Interesting! I will look at this. – malinois Jul 2 '11 at 19:02 It works!

I have used the MSDN documentation. Thanks for your response – malinois Jul 2 '11 at 19:41.

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