Translations:Viewprovider/7/en

In this example, we define two properties for the viewprovider, only if the properties don't already exist, and assign their default values. We also define the method that runs every time a property changes. We need to test the property by name, and then we will call one of two methods that will do the actual work of updating the pattern or setting its size.