The property is read-only at bothdesign time andrun time. This error has the following cause and solution:

  • You tried to set or change a property whose value can only be read. Remove the reference to the property from your code or change the reference to only return the value of the property at run time.