Hi I want to bind all the links of a diagram to a property curve and then select the current state. I mean not linking to the Data.Courve but to a diagram, or viewmodel or something general for all of them.
How can I do this? Thanks in advance Leo
I’m not sure I understand your question.
Maybe you could define a DependencyProperty on your Diagram (call it “Courve”) and then have your link template data-bind to it:
<DataTemplate x:Key="LinkTemplate"> <go:LinkPanel ...> <go:Link.Route> <go:Route Curve="{Binding Path=Link.Diagram.Courve}" ... /> </go:Link.Route> ... </go:LinkPanel> </DataTemplate>
Thanks a lot , that worked great .