Add createShape() for WPF projects.