This is a follow up question to the post here: "http://blogs.infragistics.com/forums/t/66066.aspx". Now that I am using a connection callback I lose the functionality of the LineEndCaps.
I've found another solution that will add an arrow to the end of a line here: "http://stackoverflow.com/questions/5188877/how-to-have-arrow-symbol-on-a-line-in-c-wpf". However this approach makes it so the arrow is a fixed size and doesn't scale with the zooming in and out.
Is there a way to use the DefineConnectionCallback and still use LineEndCaps?
Kind Regards,
Daniel
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I can say that when you use the DefineConnectionCallback method you create new Paths and this way you cannot use the LineCaps. CodeSlingerX shared a sample in his other thread, where he added his custom arrows at the end of the lines, but if you want them to change their size according to the zoom level you should check how long is the Line/Path you draw and scale the arrow according to the length of the Line.
Hi! I have a similar requirement.
Could not understand the meaning of your statement.
"you can check how long is the line you draw and scale the arrow according to the length of the Line".
All I can do is set the StrokeLineCap property through the same callback method.Although it shows no change when applied.
Could you please help me with that?
Hello Daniel,
Thank you for your post. I have been looking into it and I can say that since you add new Path in the Callback method it is expected that the start and end caps don’t appear. In the approach you find you can check how long is the line you draw and scale the arrow according to the length of the Line.
Hope this helps you.