Moved 'pattern' from Property to StringProperty.