How to draw an arrow in WPF programatically?

Daniel Peñalba picture Daniel Peñalba · May 23, 2013 · Viewed 9k times · Source

I need to draw an arrow in WPF programatically. I remember that Windows Forms had primitives to draw an arrow, setting the Cap to the Pen.

mMyPen.CustomEndCap =
    new AdjustableArrowCap(arrowSize, arrowSize, true);

Is it possible with WPF?

Answer

AlSki picture AlSki · May 23, 2013

I've used about Charles Petzold's ArrowLine before.

http://www.charlespetzold.com/blog/2007/04/191200.html