stroke dash array wpf

C#
myCircle.StrokeDashArray = new DoubleCollection() { 2 };
Source

Also in C#: