Tag Archives: Storyboard

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

Make a blinking label in WPF and C#

In Windows Forms, it’s trivial to make a blinking label. As for most other tasks, WPF makes this much harder but gives you some extra flexibility. In Windows Forms, you could add a Timer to a form and make it’s … Continue reading

Posted in animation, controls, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , | 3 Comments

Make a 3D cube with pictures on its sides with XAML and C#

This example extands the previous one Rotate a 3D cube using XAML and C# to draw a 3D cube with pictures on its sides. As I mention in the previous post, the GeometryModel3D object that defines the cube can display … Continue reading

Posted in graphics, wpf, XAML | Tagged , , , , , , , , , , , , , , | 1 Comment

Make a continuously spinning cube with WPF, XAML, and C#

This example is similar to the previous one Rotate a 3D cube using XAML and C# except it displays a continuously spinning 3D cube. The basic structure of the program’s 3D objects is similar to that of the previous example. … Continue reading

Posted in animation, graphics, wpf, XAML | Tagged , , , , , , , , , , , , , , | 3 Comments