wpfdrawingcap

How to draw an arrow in WPF programatically?


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?


Solution

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

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