To overcome this limitation, you should be able to break down the Path into multiple Paths, skipping the areas without stroke. In the sample code, you could even keep it as a single Path by starting in the upper right corner and continuing counter-clockwise, ending in the lower right corner.

In more complex scenarios, having multiple Paths is a bit less clean than in WPF, but it should be a functional solution.