Tag Archives: PathGeometry

Draw rainbow compound lines in WPF and C#

The post Make compound lines in WPF and C# shows how to make compound lines, lines that are striped lengthwise. Once you know how to do that, it’s easy to make rainbow compound lines. The following code shows how this … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , , | 2 Comments

Make compound lines in WPF and C#

In order to draw an outlined path, the post Draw an outlined path in WPF and C# explained how to find the left and right edge points for a path. This post explains how to use those points to draw … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Draw an outlined path in WPF and C#

Most of the techniques needed to draw an outlined path are included in those you need to draw compound lines. For the basic idea behind compound lines and a technique that lets you draw symmetric compound lines relatively easily, see … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , | 3 Comments

Animate a rectangle moving along a path in WPF and C#

This example shows how to use a WPF storyboard to animate a rectangle moving along a path. You can do this all in XAML code, although it’s pretty complicated. The main window contains a Canvas that contains the red path … Continue reading

Posted in animation, wpf | Tagged , , , , , , , , , , , | Leave a comment