yWorks EdgeSegmentControlEdgeStyle hit test

69 Views Asked by At

I'm using yWorks 2.5 and I use EdgeSegmentControlEdgeStyle to draw edge in a form of some DataTemplate content. I set EdgeSegmentControlEdgeStyle.SegementThickness to 20. However as far as I understand this style uses internally PolylineEdgeStyle and my controls only react to a clicks in the thin central line. How can I make this style to react to all clicks in 20px height rectangular area?

1

There are 1 best solutions below

0
On BEST ANSWER

You can set EdgeSegmentControlEdgeStyle.PathStyle to a new instance of PolylineEdgeStyle with the proper width:

myEdgeStyle.PathStyle = new PolylineEdgeStyle { Pen = new Pen(null, 20) };