Well, I’m trying to highlight(select) all the link connected to a node, when we focus on a node. I’m able to get all the LinkType of our system. Then in the DataTemplate of the LinkType, we defined the GoXam Link. I just don’t know on which type I should set the Part.IsSelected. Is it on the LinkPanel, the Link.Route, etc. ?
Why are you going through data binding for doing this highlighting of Links connected with a Node?
Do you really want to implement highlighting via selection?
And neither highlighting nor selection is something that belongs in the model, normally.
I’m not saying that you can’t have it that way, but it’s surprising to do both.
I’m sorry – I didn’t answer your actual issue, in that Part.IsSelected is not an attached property that you can easily data bind in a DataTemplate – it’s just a regular DependencyProperty.
I had thought you were asking about using a data Binding as the Value of a Style Setter.
So there’s no easy solution that I can think of at the moment, although I think what you want to do has been done before. I suppose you could add an attached property that you keep synchronized with Part.IsSelected.