Loading Different Links in Palette

Hi, Need your help in Loading Different Links(Link Shapes) in the Palette, we have to load Link shapes in palette with Different Stroke(color),StrokeDashArraY,StrokeThickness

For ex:

Consider that we have two Link shapes in Palette, 1st Link Shape has a StrokeThickness:5,strokeDashArray [4,2] and Stroke:Red,
the 2nd Link Shape has StrokeThickness:2,strokeDashArray [2,2] and color is Blue

after selectiong 1st link Shape from palette, if a draw a Link between Shapes in the Diagram, Red Color Link with the strokeThickness of 5 has to be created

similarly selectiong 2st link Shape from palette, if a draw a Link between Shapes in the Diagram, BlueColor Link with the strokeThickness of 2 has to be created

Request you to reply for this post as soon as possible

Thanks & Regards
Amit kumar jha

Use data binding of all of the properties that you want to be saved in the model data.

please provide a sample code for binding the properties in Link data or provide a link for that

The Basic sample binds the Shape.stroke. Search the samples for any bindings of the other properties that you care about.