Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 yWorks 2.5,并EdgeSegmentControlEdgeStyle以某些 DataTemplate 内容的形式绘制边缘。我设置EdgeSegmentControlEdgeStyle.SegementThickness为 20。但是据我了解,这种风格在内部使用PolylineEdgeStyle,并且我的控件仅对细中心线上的点击做出反应。如何使这种样式对 20px 高度矩形区域中的所有点击做出反应?
EdgeSegmentControlEdgeStyle
EdgeSegmentControlEdgeStyle.SegementThickness
PolylineEdgeStyle
您可以设置EdgeSegmentControlEdgeStyle.PathStyle为PolylineEdgeStyle具有适当宽度的新实例:
EdgeSegmentControlEdgeStyle.PathStyle
myEdgeStyle.PathStyle = new PolylineEdgeStyle { Pen = new Pen(null, 20) };